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

[Solved] GridClientSelectColumn Not Available after Rebind()

5 Answers 159 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Craig Hinkel
Top achievements
Rank 1
Craig Hinkel asked on 04 Jan 2010, 04:52 PM
I have a grid using the GridClientSelectColumn and I also have a button that calls RadGrid.Rebind().
After the call to rebind, when a user tries to click on the grid row's checkbox nothing happens. here is the code (simplified).

Thanks!

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Sample.ascx.cs" Inherits="Touchstone.PT.Daimler.Web.Views.P2P.Sample" %> 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Charting" TagPrefix="telerik" %> 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
 
<telerik:RadAjaxLoadingPanel ID="AjaxLoadingPanel1" runat="server" Transparency="15" Width="800" BackColor="white">  
    <div style="height:30px">&nbsp;</div> 
    <img alt="Saving..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>' style="border: 0px; vertical-align: middle;" /> 
</telerik:RadAjaxLoadingPanel> 
 
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" UpdatePanelsRenderMode="Inline">  
    <AjaxSettings> 
        <telerik:AjaxSetting AjaxControlID="btnSearch">  
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="rgUsers" LoadingPanelID="AjaxLoadingPanel1" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
        <telerik:AjaxSetting AjaxControlID="rgUsers">  
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="rgUsers" LoadingPanelID="AjaxLoadingPanel1" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting>          
    </AjaxSettings> 
</telerik:RadAjaxManager> 
 
<asp:Button id="btnSearch" runat="server" Text="Search" OnClick="btnSearch_Click" /> 
<br /> 
<telerik:RadGrid ID="rgUsers" runat="server" Width="100%" ShowStatusBar="false" AllowSorting="true" AllowMultiRowSelection="True" OnNeedDataSource="rgUsers_NeedDataSource">  
    <MasterTableView AutoGenerateColumns="false" TableLayout="fixed" Width="100%" AllowNaturalSort="false">  
        <Columns>                          
            <telerik:GridClientSelectColumn Reorderable="False" UniqueName="ClientSelectColumn">  
                <HeaderStyle Width="42px"></HeaderStyle> 
            </telerik:GridClientSelectColumn> 
        </Columns> 
    </MasterTableView> 
    <PagerStyle NextPageText="Next" PrevPageText="Prev" Mode="NextPrevAndNumeric"></PagerStyle> 
    <ClientSettings AllowDragToGroup="True">  
        <Selecting AllowRowSelect="True"></Selecting> 
    </ClientSettings> 
</telerik:RadGrid>  


        protected void btnSearch_Click(object sender, EventArgs e)  
        {  
            rgUsers.MasterTableView.Rebind();  
        }  
 
        protected void rgUsers_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e)  
        {  
            rgUsers.DataSource = new string[] { "Bob""Tom""Gary" };  
        } 

5 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 04 Jan 2010, 05:47 PM
Hello Craig,

I'm unable to reproduce this behavior so I believe I'm missing something. Could you please provide more information about what is needed to recreate this scenario - e.g. browser version, RadControls version, etc.

I attached the project on this forum post, just in case.

Best regards,
Daniel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Craig Hinkel
Top achievements
Rank 1
answered on 04 Jan 2010, 05:52 PM
Hello

We are using IE 7, the latest DotNetNuke, and the following telerik version: 2008.3.1314.20

Thanks!
0
Craig Hinkel
Top achievements
Rank 1
answered on 05 Jan 2010, 03:15 PM

Any updates on my issue?

 

Thanks

0
Craig Hinkel
Top achievements
Rank 1
answered on 07 Jan 2010, 03:53 PM
Ok, this is a production issue that needs to be addressed? Please give me a status update. I am a paid customer and expect some support or feedback.
0
Daniel
Telerik team
answered on 07 Jan 2010, 04:41 PM
Hello Craig,

Unfortunately I am unable to recreate this scenario on my end. I would appreciate it if you could post a live URL and/or DNN module so I can try to debug it.

Best regards,
Daniel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Grid
Asked by
Craig Hinkel
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Craig Hinkel
Top achievements
Rank 1
Share this question
or