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

I need a quick answer for this

2 Answers 40 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Boris
Top achievements
Rank 1
Boris asked on 11 Dec 2012, 03:21 PM
I have a RadGrid with a popup Editing template for adds and inserts. The template had RadComboboxes with custom validators.

The original code for insert mode was this.  (This works.)
 var editForm = $find("<%=RadGridSys.ClientID%>").get_masterTableView().get_insertItem();
 var combo = $telerik.findControl(editForm, "ddlService");
 args.IsValid = false;
if (combo != null)
   if (combo.get_value() != "-1" && combo.get_value() != "")
          args.IsValid = true;

How do I detect non-Telerik controls within a RadGrid template?  (Are these techniques for Telerik only?)

2 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 12 Dec 2012, 04:31 AM
Hi,

You can access non telerik controls using FindElement method.
JS:
var editForm = $find("<%=RadGrid1.ClientID%>").get_masterTableView().get_insertItem();
var txt = $telerik.findElement(editForm, "TextBox2");
alert(txt.value);

Thanks,
Shinu.
0
Jayesh Goyani
Top achievements
Rank 2
answered on 12 Dec 2012, 04:34 AM
Tags
Grid
Asked by
Boris
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Jayesh Goyani
Top achievements
Rank 2
Share this question
or