Nov 07, 2013, 9:11 AM
[CLOSED] Gridpanel: How to insert new row in the gridpanel store
I have a gridpanel whiwch is filled via its related store.
I want to add new row to the store so that it will be shown in the gridpanel.
Someone can help Me?
I want to add new row to the store so that it will be shown in the gridpanel.
Someone can help Me?
[DirectMethod]
protected void treePanelChecked_Changed(object sender, DirectEventArgs e)
{
List<SubmittedNode> selectedNode= ((Ext.Net.TreeSelectionModel)(TreePanel1.GetSelectionModel())).SelectedNodes;
if (selectedNode != null && selectedNode.Count > 0)
{
SubmittedNode currentNode= selectedNode[0];
DTO grd = Lst.FirstOrDefault(g => g.Id.ToString() == currentNode.NodeID);
if (!currentNode.Checked)
{
Store grdstore=GridPanel1.GetStore();
grdstore.Insert(0, grd);
grdstore.DataBind();
}
}
Last edited by Daniil; Nov 12, 2013 at 9:22 AM.
Reason: Please use [CODE] tags, [CLOSED]