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

[Solved] how to enable\disable toolbar in grid

6 Answers 144 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Azeheruddin khan
Top achievements
Rank 1
Azeheruddin khan asked on 24 Aug 2010, 06:45 AM
dear all,

Based on user permission i want to make toolbar enable and disable.if user have permission for insert new record then toolbar will be visible for him,I want to implement this concept.help me out.

best rgds
Azeheruddin khan 

6 Answers, 1 is accepted

Sort by
0
Azeheruddin khan
Top achievements
Rank 1
answered on 24 Aug 2010, 10:20 AM
I am not posting forum to increase ur no. of post. This is a bad of telerik people they never reply on time.....
0
nachid
Top achievements
Rank 1
answered on 24 Aug 2010, 10:39 AM
They never said that they answer any request  up on its posting.
My understanding this is a free vonlontary support and you still have option  to buy support

Regarding your question, I would use JQuery to hide/show the tag holding the toolbar part.
0
Azeheruddin khan
Top achievements
Rank 1
answered on 24 Aug 2010, 10:45 AM
hi nachid,

I do't want to use jquery.There is any property for enable\disable,so that i can use value from viewdata and assign to property.

best rgds
azeherudin khan 
0
nachid
Top achievements
Rank 1
answered on 24 Aug 2010, 11:01 AM
On the client side, I don't see anything else than a client script
On the server side, there is nothing that I know
I guess, you still have the option to write a server side script that renders a grid with or without a toolbar according to your requirements
Here is the idea 

 

<%if (ViewData["showToolBar"] == true)
{%>
<%= Html.Telerik.Grid.Toolbar%>
<%} else {%>
<%= Html.Telerik.Grid.WithoutToolbar %>
<%}%>

 

 

 

0
Azeheruddin khan
Top achievements
Rank 1
answered on 24 Aug 2010, 11:10 AM
hi nachid,

can u show me sample of code using server side.I am trying but not getting.

best rgds
Azeheruddin khan
0
Anatoly
Top achievements
Rank 1
answered on 05 Sep 2010, 07:37 PM
Same question. I have grouping and I need to have it static - user must have no chance to change it. So I guess that should be a way to hide grouping toolbar
Tags
Grid
Asked by
Azeheruddin khan
Top achievements
Rank 1
Answers by
Azeheruddin khan
Top achievements
Rank 1
nachid
Top achievements
Rank 1
Anatoly
Top achievements
Rank 1
Share this question
or