Click here to Skip to main content
15,903,523 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi, I'm new in using DevExpress, thank you first of all for checking my question.

Here is my problem:


I created a ASPxButton​ to hide/show a panelgraph, here are codes that I wrote:
<dx:ASPxButton ID="btHideShowChart"  runat="server" Text="Hide the chart" 
                                                                             önclick="btHideShowChart_Click" >
                                                                           <ClientSideEvents Click="function(s, e) {
                                                                                if(s.GetText().toString()== 'Hide the chart'){
	                                                                            callbackPanelGraph.SetVisible(false);
	                                                                            }
	                                                                            else{
	                                                                            callbackPanelGraph.SetVisible(true);
	                                                                            }
                                                                            }" />

at the same time, I wrote :

protected void btHideShowChart_Click(object sender, EventArgs e)
        {
            if (btHideShowChart.Text.ToString() == "Hide the chart")
            {
                btHideShowChart.Text = "Show the chart";
                return;
            }
            if (btHideShowChart.Text.ToString() == "Show the chart")
            {
                btHideShowChart.Text = "Hide the chart";
                return;
            }
        }


it does work well. But now, I'd like that once the chart is hidden, the width of another Panel beside​ could be bigger than before. ( There are two panels which are aligned: panelChart which I'd like to show/hide and panelDetail which I'd like to make it bigger when the panelChart is hidden. )

I'd tried callback..but it doesn't work....


thank you so much for helping!!​
Posted
Comments
Sandeep Mewara 12-Mar-13 10:18am    
Did you look at DevExpress documentation?
jessicachen12 12-Mar-13 11:05am    
yes...but I just don't understand...which root documentation I should look at?
jessicachen12 12-Mar-13 11:25am    
I used : callbackPanelDetail.SetWidth('200'), but it just didn't work :(

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900