This is a migrated thread and some comments may be shown as answers.

[Solved] Radgrid in Ajax Panel

1 Answer 111 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Praveen
Top achievements
Rank 1
Praveen asked on 11 May 2009, 06:29 PM
             
<ClientSettings EnableRowHoverStyle="true"
                    <Selecting AllowRowSelect="True" /> 
</ClientSettings> 
I have a grid with the above client settings. The grid is placed in an AjaxPanel.

When user select one row and try to hit the Edit button, in the button click, I try to make the row editable as

rgvEmployeeCareer.MasterTableView.Items[rgvEmployeeCareer.SelectedIndexes[0]].Edit = true
BindGrid(); 




When the RadAjaxPanel EnableAJAX="False" it works fine. But when I set it to true, it gives me a javascript error 'Object reference not set...'

What is the issue?

Thanks
PraveenVenu

1 Answer, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 14 May 2009, 11:54 AM
Hello Praveen,

At the first place, why do you need to explicitly put the selected item in edit mode on EditButton click, as the EditButton would do it by itself, e.g. automatically, when it comes from GridEditCommandColumn or has CommandName set to "Edit"? Additionally, in which event are executing the preceding code and how is your grid bound?

Find more about editing with RadGrid in the below demos:

http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/alleditablecolumns/defaultcs.aspx
http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/templateformupdate/defaultcs.aspx

All the best,
Iana
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
Praveen
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Share this question
or