Actionsheet with databound grid and angular

8 posts, 0 answers
  1. Ladislav
    Ladislav avatar
    32 posts
    Member since:
    Jan 2009

    Posted 26 Jan 2015 Link to this post

    Hi Telerik,

    i have a databound grid and Actionsheet on it. I need to know the context (id) of the grid row and then proceed the action.
    Basically I need a grid version of http://demos.telerik.com/kendo-ui/actionsheet/angular.

    Probably I need to use the k-actionsheet-context. But how?

    Regards,
    Ladislav
  2. Petyo
    Admin
    Petyo avatar
    2438 posts

    Posted 28 Jan 2015 Link to this post

    Hi,

    the following demo does something similar to what you describe. You can also use the context attribute to provide additional data. 

    Regards,
    Petyo
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Kendo UI is VS 2017 Ready
  4. Ladislav
    Ladislav avatar
    32 posts
    Member since:
    Jan 2009

    Posted 28 Jan 2015 in reply to Petyo Link to this post

    Hi,

    I saw the demo. It uses static data. I need a demo with bound data.

    Regards,
    Ladislav
  5. Petyo
    Admin
    Petyo avatar
    2438 posts

    Posted 30 Jan 2015 Link to this post

    Hello,

    I am afraid that we don't have such demo available. However, the data-bound mode makes no difference for the Actionsheet widget, so this should not change the case too much. 

    Regards,
    Petyo
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  6. Ladislav
    Ladislav avatar
    32 posts
    Member since:
    Jan 2009

    Posted 30 Jan 2015 in reply to Petyo Link to this post

    Hi Petyo,

    this issue is a general telerik problem. You have some demos, some documentation some getting started. But if I don't find answer there I hitting a wall again and again.

    If it makes no big difference, please show us the solution.
    The only question is how to set the k-actionsheet-context="{{dataItem.ID}}" in Grid.

    Regards,
    Ladislav
  7. Alexander Valchev
    Admin
    Alexander Valchev avatar
    2875 posts

    Posted 03 Feb 2015 Link to this post

    Hello Ladislav,

    The only question is how to set the k-actionsheet-context="{{dataItem.ID}}" in Grid.

    You may use column.template to insert mobile button with k-actionsheet-context attribute that will open the ActionSheet widget.
    Alternatively you may insert other widget/HTML element hook up to its click event and call the open method of the ActionSheet widget. You may pass the context as a parameter of the open method.

    Regards,
    Alexander Valchev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  8. Ladislav
    Ladislav avatar
    32 posts
    Member since:
    Jan 2009

    Posted 03 Feb 2015 in reply to Alexander Valchev Link to this post

    Hi Alexander,

    it is probably possible. I think the more natural and what our customers demand is the invocation through simple click/touch.
    Please provide us a databound version of http://demos.telerik.com/kendo-ui/actionsheet/adaptive

    Regards,
    Ladislav
  9. Alexander Valchev
    Admin
    Alexander Valchev avatar
    2875 posts

    Posted 05 Feb 2015 Link to this post

    Hi Ladislav,

    Here you are: http://dojo.telerik.com/@valchev/omoYi

    Regards,
    Alexander Valchev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
Back to Top
Kendo UI is VS 2017 Ready