This is a migrated thread and some comments may be shown as answers.

Actionsheet with databound grid and angular

7 Answers 95 Views
ActionSheet
This is a migrated thread and some comments may be shown as answers.
Ladislav
Top achievements
Rank 1
Ladislav asked on 26 Jan 2015, 02:10 PM
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

7 Answers, 1 is accepted

Sort by
0
Petyo
Telerik team
answered on 28 Jan 2015, 08:48 AM
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!
 
0
Ladislav
Top achievements
Rank 1
answered on 28 Jan 2015, 12:40 PM
Hi,

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

Regards,
Ladislav
0
Petyo
Telerik team
answered on 30 Jan 2015, 08:44 AM
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!
 
0
Ladislav
Top achievements
Rank 1
answered on 30 Jan 2015, 08:49 AM
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
0
Alexander Valchev
Telerik team
answered on 03 Feb 2015, 09:12 AM
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!
 
0
Ladislav
Top achievements
Rank 1
answered on 03 Feb 2015, 09:47 AM
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
0
Alexander Valchev
Telerik team
answered on 05 Feb 2015, 08:44 AM
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!
 
Tags
ActionSheet
Asked by
Ladislav
Top achievements
Rank 1
Answers by
Petyo
Telerik team
Ladislav
Top achievements
Rank 1
Alexander Valchev
Telerik team
Share this question
or