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!!