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

radGrid SelectIndexChanged not firing

1 Answer 37 Views
Grid
This is a migrated thread and some comments may be shown as answers.
George Fahnbulleh
Top achievements
Rank 1
George Fahnbulleh asked on 22 Sep 2012, 12:20 AM
I have the following radGrid on a form.  I need to fire the selectedIndexchanged event in codebehind to open a window, what am I missing?
<telerik:RadGrid runat="server" AllowPaging="True" PageSize="3" ShowFooter="True" DataSourceID="SqlDataSource1" Skin="Office2007" CellSpacing="0" GridLines="None" Height="350px" Width="260px" ID="RadGrid1" ViewStateMode="Enabled">
            <ClientSettings AllowColumnsReorder="True" EnablePostBackOnRowClick="True" ReorderColumnsOnClient="True">
                <Selecting AllowRowSelect="True" />
            </ClientSettings>
            <MasterTableView DataKeyNames="ID" DataSourceID="SqlDataSource1" AutoGenerateColumns="False" ShowHeader="False">
                <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
 
                <RowIndicatorColumn Visible="False" FilterControlAltText="Filter RowIndicator column"></RowIndicatorColumn>
 
                <ExpandCollapseColumn Visible="False" FilterControlAltText="Filter ExpandColumn column"></ExpandCollapseColumn>
                <Columns>
                    <telerik:GridBoundColumn DataField="url" HeaderText="url" SortExpression="url" Visible="False" UniqueName="url" FilterControlAltText="Filter url column"></telerik:GridBoundColumn>
                    <telerik:GridImageColumn DataImageUrlFields="urlImage" ImageWidth="" ImageHeight="" HeaderText="urlImage" SortExpression="urlImage" UniqueName="urlImage" FilterControlAltText="Filter urlImage column"></telerik:GridImageColumn>
                    <telerik:GridBoundColumn DataField="description" HeaderText="description" SortExpression="description" UniqueName="description" FilterControlAltText="Filter description column">
                        <ItemStyle Font-Size="11pt"></ItemStyle>
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="ID" ReadOnly="True" HeaderText="ID" SortExpression="ID" Visible="False" UniqueName="ID" DataType="System.Int32" FilterControlAltText="Filter ID column"></telerik:GridBoundColumn>
                </Columns>
 
                <EditFormSettings>
                    <EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
                </EditFormSettings>
 
                <PagerStyle Mode="NumericPages" AlwaysVisible="True"></PagerStyle>
            </MasterTableView>
 
            <FilterMenu EnableImageSprites="False"></FilterMenu>
        </telerik:RadGrid>

CodeBehind
Private Sub RadGrid1_SelectedIndexChanged(sender As Object, e As EventArgs) Handles RadGrid1.SelectedIndexChanged
    Dim newwindow As New Telerik.Web.UI.RadWindow()
    newwindow.ID = "RadWindow1"
    newwindow.NavigateUrl = "http://www.google.com"
    newwindow.VisibleOnPageLoad = True
    RadWindowManager1.Windows.Add(newwindow)
End Sub

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 25 Sep 2012, 02:21 PM
Hello George,

I have created a sample RadGrid web site using the provided code snippet. On my side everything works as expected and the event fires successfully. Please check out the attached application and try to distinguish the crucial differences between our projects.

All the best,
Eyup
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
George Fahnbulleh
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or