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

Rad Grid ClientEvents OnRowCreated Not working in Mozilla Firefox

3 Answers 160 Views
Grid
This is a migrated thread and some comments may be shown as answers.
vijay
Top achievements
Rank 1
vijay asked on 30 Mar 2011, 06:53 AM
Hello
     My problem is Row created event is not firing on using Mozilla Firefox.  But there is no problem when i am using on IE.

Please help me on this issue..
Thanks in advance...



<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">

        <script type="text/javascript" language="javascript">
            function LessionPlanViewRowCreated(sender, eventArgs) {
                var DataItem = eventArgs.get_gridDataItem().get_element();
                for (var i = 2; i < DataItem.cells.length; i++) {
                    if (DataItem.cells[i].innerText.trim() == "Red") {
                        DataItem.cells[i].style.backgroundColor = "Red";
                    }
                    else if (DataItem.cells[i].innerText.trim() == "Orange") {
                        DataItem.cells[i].style.backgroundColor = "Orange";
                    }

                    else if (DataItem.cells[i].innerText.trim() == "Green") {
                        DataItem.cells[i].style.backgroundColor = "Green";
                    }
                }
            }
         
        </script>

    </telerik:RadCodeBlock>
</asp:Content>


<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table>
        <tr>
            <td>
                
                <telerik:RadGrid ID="radGvrAcdamicYearPerformanceView" runat="server" GridLines="None"
                    Skin="Office2007" CellSpacing="1">
                    <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default" EnableImageSprites="True">
                    </HeaderContextMenu>
                    <MasterTableView>
                        <RowIndicatorColumn>
                            <HeaderStyle Width="20px" />
                        </RowIndicatorColumn>
                        <ExpandCollapseColumn>
                            <HeaderStyle Width="20px" />
                        </ExpandCollapseColumn>
                        <CommandItemSettings ExportToPdfText="Export to Pdf" />
                        <Columns>
                        </Columns>
                    </MasterTableView>
                    <ClientSettings>
                        <ClientEvents OnRowCreated="LessionPlanViewRowCreated" />
                    </ClientSettings>
                </telerik:RadGrid>
            </td>
        </tr>
    </table>
</asp:Content>

3 Answers, 1 is accepted

Sort by
0
Mira
Telerik team
answered on 01 Apr 2011, 03:04 PM
Hello Vijay,

I tried to replicate the issue which you described, but to no avail.
Attached to this message, you will find the code which I used for testing.

Please, take a look at it and let me know if there are any differences at your end, which I may be leaving out.

Greetings,
Mira
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
aaron
Top achievements
Rank 1
answered on 12 Oct 2011, 08:33 AM
i have a Rad combo Box with RadGrid as a item template ,i am using as a search engine.
there are client events with RowSelected(),RowClicked()

but these events are not firing in mozilla 3.0

Please reply to me
tocharankumar@gmail.com
0
Mira
Telerik team
answered on 14 Oct 2011, 02:06 PM
Hello Aaron ,

Please examine the Load on Demand Grid in Combobox demo to see how the desired funtionality can be implemented. In it the RowClick fires and is handled properly.

I hope this helps.

Greetings,
Mira
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
Grid
Asked by
vijay
Top achievements
Rank 1
Answers by
Mira
Telerik team
aaron
Top achievements
Rank 1
Share this question
or