Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
142 views
In my application, I need several tables showing a summary of data items.
Depending on the user's permissions, he should be able to VIEW, EDIT, or DELETE the associated data item.

Since the table is just a summary and the real records the grid items represent are spread over 20+ tables, I don't think I can use the built-in edit function. (Q1: is that correct? I have a DataSet providing the summary data and I also have a set of stored procedures performing the rather complex update- and delete-operations)

So I thought to give my grid 3 columns with Select buttons called View, Edit, Delete.

I assumed I'd be able to use the respective event handler to then simply call the appropriate stored procedures depending on which button the user clicked.

But these View, Edit, Delete buttons are not to be enabled at all times: depending on the users permissions, I want to e.g. disable the delete button on certain rows.

How do I do that?

Thanks so much!

s.


P.S. I am new to ASP & Prometheus - so I hope you can forgive me for asking basic questions.
Vlad
Telerik team
 answered on 10 May 2008
1 answer
145 views
I have a grid that I've enabled SEO paging and set the querystring.  However, when the page renders the paging links are javascript postbacks and the querystring is not part of the href.

I've enabled custom paging since not all records are available to the grid at binding.  I would think that I would get a querystring link.  What am I missing here?

Here's part of the markup:
<telerik:RadGrid ID="ProductListGrid" runat="server"
GridLines="None" Width="800px"
OnNeedDataSource="ProductListGrid_NeedDataSource"
AutoGenerateColumns="False"
onitemcommand="ProductListGrid_ItemCommand"
AllowPaging ="true" AllowCustomPaging="true" >
<MasterTableView DataKeyNames="Id" EnableNoRecordsTemplate="true">
<NoRecordsTemplate>
There are no available products in this category.
</NoRecordsTemplate>
<PagerStyle NextPageText="Next" PrevPageText="Prev" Mode="NextPrevAndNumeric" EnableSEOPaging="true" SEOPagingQueryStringKey="currentpage"></PagerStyle>
<Columns>
...

The link renders something like:
<span>1</span><a href="javascript:__doPostBack('ctl00$MainContent$CategoryInfo1$ctl00$ProductListGrid$ctl00$ctl03$ctl01$ctl04','')">2</a><span>



Vlad
Telerik team
 answered on 10 May 2008
1 answer
227 views
Hi. I've downloaded the demo and what I'm not seeing or am unable to figure out is whether or not you can dynamically generate columns that have different control types.

Here's one example: I have a grid that has two columns. The first column is just text, values generated from reading from a table (these values can always be different and of varying count). The second column needs to either have a control that is a DropDownList or some version of a TextBox depending on the dataType of the field value read from the database.

Is it somehow possible to make a column vary in the types of controls it displays and uses when the grid is dynamically generated?

Thanks.
Vlad
Telerik team
 answered on 10 May 2008
3 answers
173 views
I am binding a rad grid to a generic collection of objects with custom properties.

I can get the grid to filter on the custom properties if I toggle EnableViewState, of course that removes the ability to page and sort. If EnableViewstate is toggled to true then paging and sorting work fine, but I can no longer filter against the properties that are not part of the base object.

Is there a solution for this?
Vlad
Telerik team
 answered on 10 May 2008
1 answer
147 views
Hi there

I was playing around on your demo page http://www.telerik.com/DEMOS/ASPNET/Prometheus/Editor/Examples/TreeviewAndEditor/DefaultCS.aspx and after I drag an image onto page, right click image to edit image properties I am unable to edit anything. Is this by design for this demo? The modal pop up is disabled. I tried in IE7, Firefox 2 & Safari for Windows and get the same results.

On another note is there a way after resizing an image using image properties dialog to resize to the original image size?

Regards
Alex
Rumen
Telerik team
 answered on 10 May 2008
3 answers
144 views
I am setting up a ToolBar with an XML datasource.

The XML is very basic, and I've configured the data source but now the toobar itself in both design view and when I run it says:

System.Web.Ui.WebControls.XmlDataSourceNodeDescriptor

I've done some searching but cannot figure this out.

Erjan Gavalji
Telerik team
 answered on 10 May 2008
5 answers
307 views
I think we need a little better documentation regarding skins because there are many places where they can be set and the "cascade" isn't apparent.

I've set the global skin in web.config, however the RadMenu does not change based on the value.
<appSettings>
        <add key="Telerik.Skin" value="Hay"/>
</appSettings>

With this setting the control's div renders as:
<div id="ctl00_SiteMenu_RadSiteMenu" class="RadMenu RadMenu_" style="width: 800px; z-index: 7000;">

When I set the Skin in the control's properties for the control the div renders as:
<div id="ctl00_SiteMenu_RadSiteMenu" class="RadMenu RadMenu_Hay" style="width: 800px; z-index: 7000;">

There is a theme enabled in my application and when I set a theme in the .skin file the control does pick it up.  But overriding the skin at the control level does not override the .skin setting.  I got around this by setting the control's SkinID to a non-existent .skin SkinId.  I'm not sure if this is supported behavior though.

Is there something else I need to do to enable the controls to accept the global settings in web.config when a theme is set or am I stuck using the .skin file?

I'm also up for a hotfix to override the global setting on individual controls.
T. Tsonev
Telerik team
 answered on 10 May 2008
5 answers
268 views
hi all,
does anyone know how i can add a custom button to my toolbar that either has a textbox beside it - or pops up a text box so i can paste some text into there. I figured out how to add a custom button, but i want to allow the user to
a) click this button
b) paste in a url
c) have the button render the content i want into the editor.

just unsure about the "Best practice" for this type of thing.  i realize i can use all JS to create a popup or display a hidden div with an input in it - but i was thinking maybe the editor (or any of the other controls included ) would be better suited to this.

thanks in advance,
mcm
Rumen
Telerik team
 answered on 10 May 2008
1 answer
86 views
Right now I'm trying out the lite version of the RadEditor in MOSS.
When I open up a page with several radE:RadHtmlFields in edit mode, the different fields are nicely displayed in IE6 (under each other), but in IE7 they are all through and above and under each other, without the possibility to bring the ones that are on the background to the front.

Does anyone recognize this scenario and / or has a simple solution?

Thanks a lot.
George
Telerik team
 answered on 10 May 2008
3 answers
103 views
Hi, All:

I had implemented this:

<rad:RadAjaxPanel ID="rapGrid" runat="server" Height="200px" Width="300px" LoadingPanelID="alpLoading" >


it works very good for my RadGrid control inside my page.  However,
when my page is loading up, for the first time,  I have no similar AjaxLoadingPanel control for the entire page. So my page is now blank for 20 seconds for the loading-up.  It would be very nice, to implement similar AjaxLoadingPanel for the entire page, when the page is first loaded.

Please give some idea.

Stanley Huang
Iana Tsolova
Telerik team
 answered on 10 May 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?