Radgrid with checkbox

5 posts, 0 answers
  1. Rajeswari
    Rajeswari avatar
    27 posts
    Member since:
    May 2013

    Posted 09 Dec 2014 Link to this post

    Hi I have a radgrid with a checkbox in gridtemplatecolumn that has headercheckbox in heder template and all check box in item template. Grid is inside  an asp panel. I have a label and image outside the grid I am calling two server side functions on headercheckbox and itemcheckbox . If the header checkbox is checked I am setting the label with the grids row count and setting the image url in that function in server side. Even though i see the count of the label  when i debug , But its not  setting. I have the grid in the ajax settings, and the label and the image as the updated controls of the grid. Still its not updating. And when the page load i see the label is also wrapped .
    Thanks,
    Rajeswari Raman
  2. Eric
    Eric avatar
    16 posts
    Member since:
    Feb 2013

    Posted 09 Dec 2014 in reply to Rajeswari Link to this post

    Can you provide the markup of your page, with the ajax settings? Also, one thing you could try in the meantime, is wrap your controls in an RadAjaxPanel, and see if it updates properly. If it does, then the problem is most likely in the ajax manager's settings.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Rajeswari
    Rajeswari avatar
    27 posts
    Member since:
    May 2013

    Posted 09 Dec 2014 in reply to Eric Link to this post

    Hi .
    I wrapped the label inside radajaxpanel , now its not wrapping when the page loads . i also added the panel as ajax updated control in the ajaxsetting of the grid , still the label is not updating with the values.
    Rajeswari Raman
  5. Eric
    Eric avatar
    16 posts
    Member since:
    Feb 2013

    Posted 09 Dec 2014 in reply to Rajeswari Link to this post

    You need to wrap all of the controls you intend to update in the RadAjaxPanel, The grid, image, label... everything. And comment out the RadAjaxManager.
  6. Eyup
    Admin
    Eyup avatar
    3012 posts

    Posted 12 Dec 2014 Link to this post

    Hi Rajeswari,

    Please note that RadGrid already provides a built-in selection column:
    http://demos.telerik.com/aspnet-ajax/grid/examples/functionality/selecting/row-selection/defaultcs.aspx

    As for the observed issue, can you temporarily disable any ajaxification on the page and enable your script debugger(FireBug or F12) to see whether there are any script errors interfering?

    Regards,
    Eyup
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017