Hi all, i have a problem with RadGrid.
When i enter into a page where there is a RadGrid, i want that RadGrid Insert Form is opened.
I have looked for on the forum but i didint find any solution for my problem.
I tryed what you suggested in the following forum
http://www.telerik.com/community/forums/aspnet/grid/i-want-call-radgrid1-insertcommand-from-a-button-out-of-rad-grid.aspx#484224
but my case is a bit different.
I have tryed to call
radgrid1.Items[0].FireCommandEvent("InitInsert", string.Empty)
in Page_Load and this works if i have at least 1 item. If my RadGrid is empty, it fires and exception because the radgrid1.Items[0] doesn't exist. Can you give me a little advice?
Many thank
Alessandro
When i enter into a page where there is a RadGrid, i want that RadGrid Insert Form is opened.
I have looked for on the forum but i didint find any solution for my problem.
I tryed what you suggested in the following forum
http://www.telerik.com/community/forums/aspnet/grid/i-want-call-radgrid1-insertcommand-from-a-button-out-of-rad-grid.aspx#484224
but my case is a bit different.
I have tryed to call
radgrid1.Items[0].FireCommandEvent("InitInsert", string.Empty)
in Page_Load and this works if i have at least 1 item. If my RadGrid is empty, it fires and exception because the radgrid1.Items[0] doesn't exist. Can you give me a little advice?
Many thank
Alessandro