Grid checkbox inline editing issue on a Mac

4 posts, 0 answers
  1. Victor
    Victor avatar
    24 posts
    Member since:
    Feb 2015

    Posted 16 May 2016 Link to this post

    Below is a sample of the column. For some strange reason it does not work with Firefox or Safari on a Mac.

    c.Bound(x => x.Active).Title("Active").Width(30).ClientTemplate("<center>#=Active ? 'Yes': 'No' #</center>").HtmlAttributes(new { style = "text-align:center;vertical-align: text-top;" });

    Even when i just have this code still won't work.

    c.Bound(x => x.Active).Title("Active").Width(30).HtmlAttributes(new { style = "text-align:center;vertical-align: text-top;" });

     

    What happening is, if the row is active it says Yes or No or in the second line it will say true of false. When I click on the column to change the status a checkbox will appear. in either case. But when I try to mark it as checked or not checked it will go back to the text and won't allow me to chenge the status.     

    Any ideas how to fix it?

     

     

  2. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 18 May 2016 Link to this post

    Hello,

    I tested checkbox column in mobile browsers as you described and it behaves as expected on my end. See the demo below and verify what the difference in your case is:
    http://demos.telerik.com/aspnet-mvc/grid/editing

    Regards,
    Maria Ilieva
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
  3. Victor
    Victor avatar
    24 posts
    Member since:
    Feb 2015

    Posted 18 May 2016 in reply to Maria Ilieva Link to this post

    I've never said Mobile browsers. I said on a Mac not iOS. Anyways, I have found a fix to the problem by using the following code with some additional JS.

    c.Template(@<text></text>).ClientTemplate("<center><input type='checkbox' #= Active ? 'checked': '' # class='chkbx' /></center>").HeaderTemplate("<center><input type='checkbox' id='masterCheckBox' onclick='checkAll(this)' /> Active</center>").Width(20);

  4. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 20 May 2016 Link to this post

    Hello,

    Excuse my previous misleading. I'm glad that you were able to fix the issue on your end. Do not hesitate to contact us back in case furtehr assistance is needed.

    Regards,
    Maria Ilieva
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
Back to Top