+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / RadGrid ajax not refreshing in views

RadGrid ajax not refreshing in views

6 posts, 0 answered
  1. Pierre
    Pierre avatar
    433 posts
    Registered:
    16 Feb 2006
    30 Jan 2010
    Link to this post
    Hi Team,

    I use one radgrid as usercontrol linked to one TemplateView of GC Module for Edit/Insert. I´m not able to mamage the ajax resfreshing more than 2 times. After that, no other command are firing, no postbacks, no paging. If you use same sample in one external page all is normal. Some cache issue?
    Master page use EnablePartialRendering="true".

    Thanks Romi

    <telerik:RadAjaxManager ID="RadAjaxManager1" EnableAJAX="true" runat="server">  
        <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="RadGridPlanning">  
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="RadGridPlanning" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
        </AjaxSettings> 
    </telerik:RadAjaxManager> 
     
    <telerik:RadGrid ID="RadGridPlanning" runat="server" Skin="WebBlue"  GridLines="None" Width="100%" 
    OnNeedDataSource="RadGridPlanning_NeedDataSource" 
    OnItemCreated="RadGridPlanning_ItemCreated" 
    AutoGenerateColumns="True" ShowStatusBar="true" AllowPaging="True">  
         <MasterTableView DataKeyNames="Week" Width="100%" CommandItemDisplay="Top"  PageSize="14">  
                       <Columns> 
                         <telerik:GridTemplateColumn UniqueName="CheckBoxTemplateColumn">  
                                <HeaderTemplate> 
                                 <asp:CheckBox id="headerChkbox" OnCheckedChanged="ToggleSelectedState" AutoPostBack="True" runat="server"></asp:CheckBox> 
                                </HeaderTemplate> 
                                <ItemTemplate> 
                                    <asp:CheckBox id="CheckBox1" OnCheckedChanged="ToggleRowSelection" AutoPostBack="True" runat="server"></asp:CheckBox> 
                                </ItemTemplate> 
                        </telerik:GridTemplateColumn>                    
                    </Columns> 
                    </MasterTableView> 
        <ClientSettings EnableRowHoverStyle="true">  
              
        </ClientSettings> 
         <PagerStyle Mode="NumericPages"></PagerStyle> 
    </telerik:RadGrid> 


  2. Pierre
    Pierre avatar
    433 posts
    Registered:
    16 Feb 2006
    31 Jan 2010
    Link to this post
    Hi,

    I have moved now this radgrid outside external usercontrol and added as template of view directly like sugest Georgi in sf blog. I have fixed others issues like code blocks from radeditor. The problem is the same. In the fact the command are working but the server response is always the same response (cached). When i push over my radgrid selecting checkboxes or command button one "Post" is generated everytime seeing in firebug console:
    http://localhost:50243/xx/Admin/Modules.aspx?module=vVac&route=vVacControlPanel.vVacItemsView.vVacItemNew&ParentId=00000000-0000-0000-0000-000000000000 but the response is always the same. I have added cacheSubstitution method to templates (vVacItemNew) using this radgrid but not have any positive issue; May be need to modify the cache method of my modules page. RadGrid Ajax is not refreshing.
    Regards, Romi
     but the response is always the same. I have added cacheSubstitution method to templates () using this radgrid but not have any positive issue; May be need to modify the cache method of my modules page. RadGrid Ajax is not refreshing.Regards, Romi
  3. Pierre
    Pierre avatar
    433 posts
    Registered:
    16 Feb 2006
    03 Feb 2010
    Link to this post
    Advice please. This solution is working perfect outside admin side or alone in one simple template but not working as need if used in one ContentView and Grid is server side demanding. Romi
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    05 Feb 2010
    Link to this post
    Hello Pierre,

    1. Try to register the RadAjaxManager in Sitefinity/Admin/Admin.master

    <telerik:RadAjaxManager runat="server" ID="RadAjaxManager1"></telerik:RadAjaxManager>

    Then call the RadAjaxManager in PageLoad event of the template code behind

    RadAjaxManager ajaxManager = RadAjaxManager.GetCurrent(this.Page);
    ajaxManager .AjaxSettings.AddAjaxSetting(this.Panel1, this.Panel1)

    Wrap the controls you want to update in ASP.NET Panel. There are some problems with the ajax manager and backend for 3.x. The ajax manager is loading too late so you need to move it to Admin.master as suggested.

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team

    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
    Follow the status of features or bugs in PITS and vote for them to affect their priority.
  5. Pierre
    Pierre avatar
    433 posts
    Registered:
    16 Feb 2006
    05 Feb 2010
    Link to this post
    Hi Ivan,

    Thanks is the way! is better but my page is performing one big postback of all click, no way to get better result?

    regards

  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    07 Feb 2010
    Link to this post
    Hello Pierre,

    I tried several ways, but I am not able to find another way around this. Another option would  be client side binding and working with client evens of RadGrid control.

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team

    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
    Follow the status of features or bugs in PITS and vote for them to affect their priority.
Register for webinar
6 posts, 0 answered