Restricting inputs in cells

5 posts, 0 answers
  1. Marcus
    Marcus avatar
    35 posts
    Member since:
    Aug 2012

    Posted 01 Dec 2014 Link to this post

    Dear support,

    is there a way to validate the users input? For example I only want to accept inputs of CellValueType.Number. Is it possible?

    Thanks in advance

    Marcus
  2. Tanya
    Admin
    Tanya avatar
    402 posts

    Posted 02 Dec 2014 Link to this post

    Hello Marcus,

    I am afraid that this feature is still not supported, but we are working on it. You can track its status on our public portal: Data Validation.

    Please do not hesitate to contact us if you have any other questions.

    Regards,
    Tanya
    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.

     
  3. UI for WPF is Visual Studio 2017 Ready
  4. Marcus
    Marcus avatar
    35 posts
    Member since:
    Aug 2012

    Posted 02 Dec 2014 in reply to Tanya Link to this post

    Hi Tanya,

    is there another way to achieve this? Like using an cell-exit-event for the check of the cell-content?

    Regards
    Marcus
  5. Tanya
    Admin
    Tanya avatar
    402 posts

    Posted 02 Dec 2014 Link to this post

    Hi Marcus,

    You can subscribe to selections' ActiveCellModeChanged event. Please find attached a sample project demonstrating how this can be achieved. The sample validates if the input is number between 1 and 1000 when the cell mode is changed to Display.

    Hope this helps.

    Regards,
    Tanya
    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.

     
  6. Marcus
    Marcus avatar
    35 posts
    Member since:
    Aug 2012

    Posted 03 Dec 2014 in reply to Tanya Link to this post

    Hi Tanya,

    thank you very much. I will use it.

    Regards
    Marcus
Back to Top
UI for WPF is Visual Studio 2017 Ready