Aug 10, 2012, 2:11 PM
[CLOSED] keep the same ColumnModel during a function call
Hello,
menuItem calls a function in my C # code with DirectMethod.
The problem is that I lost some of my GridPanel column because they are loaded dynamically.
So I end up with a ColumnModel.Columns.count to 19 in the Load ()
and only 14 in my function.
How could I do to have the same model as in the load and my function?
and I would like to recover the order of columns displayed on the screen.
Maybe it's two problems are linked by one single solution?
Part of the structure of GridPanel
Code behind
Thank you in advance
menuItem calls a function in my C # code with DirectMethod.
The problem is that I lost some of my GridPanel column because they are loaded dynamically.
So I end up with a ColumnModel.Columns.count to 19 in the Load ()
and only 14 in my function.
How could I do to have the same model as in the load and my function?
and I would like to recover the order of columns displayed on the screen.
Maybe it's two problems are linked by one single solution?
Part of the structure of GridPanel
<ext:GridPanel ID="GridPanel1"
<Bin>
<ext:MenuItem ID="MenuItem10" runat="server" Text="Save States">
<Listeners>
<Click Handler="SaveStatesCall();return false;" />
</Listeners>
</ext:MenuItem>
</Bin>
<ColumnModel ID="GPSearchColumnModel" runat="server">
<Columns>
<ext:Column ColumnID="ID>
<ext:Column ColumnID="Name>
<ext:Column ColumnID="Number>
</Columns>
</ColumnModel>
<Listeners>
<BeforeRender Fn="onBeforeRender" />
</Listeners>
Code call method in aspx.cs<script type="text/javascript">
var SaveStatesCall = function () { Consult.SaveStates(); };
</script>
Code behind
[DirectMethod(ShowMask = true, Namespace = "Consult")]
public void SaveStates()
{
//this function for keep order of the GridPanel
SaveStatesTotal(GridPanelSearch);
}
I hope this post is well written and clear enoughThank you in advance
Last edited by Daniil; Aug 13, 2012 at 12:52 PM.
Reason: [CLOSED]