Andreas Kaech
Top achievements
Rank 1
Andreas Kaech
asked on 23 Jun 2008, 07:39 PM
Hi Telerik,
I define a DropDown (sitting in a TemplateColumn) ClientEvent in RadGrid1_DataBound:
var itemreorder = ((GridDataItem) gitem)["ColumnName"];
var ddl = (RadComboBox) itemreorder.FindControl("ddl");
ddl.OnClientSelectedIndexChanged = "onSelectedIndexChanged";
In IE there is no problem to find this function.
But Firefox complains: "onSelectedIndexChanged is not defined".
Why?
Best regards,
Andreas
I define a DropDown (sitting in a TemplateColumn) ClientEvent in RadGrid1_DataBound:
var itemreorder = ((GridDataItem) gitem)["ColumnName"];
var ddl = (RadComboBox) itemreorder.FindControl("ddl");
ddl.OnClientSelectedIndexChanged = "onSelectedIndexChanged";
In IE there is no problem to find this function.
But Firefox complains: "onSelectedIndexChanged is not defined".
Why?
Best regards,
Andreas
4 Answers, 1 is accepted
0
Hello Andreas Kaech,
Thank you for contacting us.
It looks like you are missing your client side onSelectedIndexChanged function declared. Please make sure that it is available on the page. Also find the attached example I've prepared for your convenience.
Sincerely yours,
Nikolay
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
Thank you for contacting us.
It looks like you are missing your client side onSelectedIndexChanged function declared. Please make sure that it is available on the page. Also find the attached example I've prepared for your convenience.
Sincerely yours,
Nikolay
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0
Andreas Kaech
Top achievements
Rank 1
answered on 25 Jun 2008, 03:30 PM
Hello Nikolay,
sorry for having disturbed you ;-)
The problem was in a "lazy" selection of an "intellisense item".
Firefox didn't like <script type="text/jscript">.
Changing to <script type="text/javascript"> made the code visible for all browsers, not only for IE.
Thanks and best regards,
Andreas
sorry for having disturbed you ;-)
The problem was in a "lazy" selection of an "intellisense item".
Firefox didn't like <script type="text/jscript">.
Changing to <script type="text/javascript"> made the code visible for all browsers, not only for IE.
Thanks and best regards,
Andreas
0
Andreas Kaech
Top achievements
Rank 1
answered on 25 Jun 2008, 05:15 PM
Hi again,
one more issue:
In this code-snippet
***********
var dropdownCell = masterTable.getCellByColumnUniqueName(dropdown[0], "DropDownColumn");
alert(dropdownCell.childNodes.length);
***********
the result in IE is 1 and in Firefox 3. So its difficult to reach the appropriate childNode.
Any suggestion?
Thanks and best regards,
Andreas
one more issue:
In this code-snippet
***********
var dropdownCell = masterTable.getCellByColumnUniqueName(dropdown[0], "DropDownColumn");
alert(dropdownCell.childNodes.length);
***********
the result in IE is 1 and in Firefox 3. So its difficult to reach the appropriate childNode.
Any suggestion?
Thanks and best regards,
Andreas
0
Hello Andreas Kaech,
Thank you for getting back to us. The difference is caused by the browser implementation of DOM. That's why in Firefox you have two extra empty text nodes. You can iterate through childNodes and check the nodeType as well.
If you provide more information what you are actually trying to achieve I can help you further. Thanks!
Greetings,
Nikolay
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
Thank you for getting back to us. The difference is caused by the browser implementation of DOM. That's why in Firefox you have two extra empty text nodes. You can iterate through childNodes and check the nodeType as well.
If you provide more information what you are actually trying to achieve I can help you further. Thanks!
Greetings,
Nikolay
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center