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

Find Control In Insert Item Grid Client Side

3 Answers 83 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Rasool
Top achievements
Rank 1
Rasool asked on 30 Mar 2015, 11:51 AM
Hi dear

How we can find controls(Radcombobox) in insert item of radgrid on client side.

Thanks

3 Answers, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 02 Apr 2015, 10:27 AM
Hello Rasool,

Generally, you can use the OnClientLoad event handler of the combo to achieve this requirement. Alternatively, you can use the $telerik.findControl and $telerik.findElement methods to access any controls on the client. I am attaching a sample RadGrid web site to demonstrate a more advanced scenario.

Hope this helps.

Regards,
Eyup
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
0
Rasool
Top achievements
Rank 1
answered on 08 Apr 2015, 10:11 AM

Hi Eyup

I use the code :

function rcb_kala_OnClientSelectedIndexChanged(sender, args) {
                   
                    var grid = $find('<%=rg_anbarSanadSub.ClientID%>');
                    var insertItemForm = grid.get_masterTableView().get_insertItem();
                    if (insertItemForm) {
                        var rtxt_NameKala = $telerik.findControl(editForm, "rtxt_NameKala");
                        rtxt_NameKala.set_value("1");
                    }
                }

 

but get_insertItem() return always null.Why?

 

Please help me

Thanks

 

0
Eyup
Telerik team
answered on 13 Apr 2015, 07:53 AM
Hello Rasool,

Could you share which edit mode do you use and verify that the Insert form is open at the moment when the script runs?
<MasterTableView ... EditMode="EditForms">

Regards,
Eyup
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
Tags
Grid
Asked by
Rasool
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Rasool
Top achievements
Rank 1
Share this question
or