Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
133 views
Hi, I would like to know if its possible to change the readonly property of a textbox in an input manager from clientside. The thing is depending of certain validation in my page, i have to set the state of the textbox to readonly. And i can't use server side to do this i need to change the value from client side. Is there a way to change that property???

Thx and have a nice day!!

Guillaume
asim
Top achievements
Rank 1
 answered on 06 Aug 2009
1 answer
248 views
I have a button inside a RadAjaxPanel, when the button is clicked. There is a server-side call. I want it to execute a Javascript function defined in the page by using RegisterStartupScript . However, it is not working. If I remove RadAjaxPanel or move the button beyond of the panel, it does work. The client code is just like following
 <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="LoadingPanel1"> <div id="app_layer" runat="server">  <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Button" /> </div> </telerik:RadAjaxPanel<telerik:RadAjaxLoadingPanel ID="LoadingPanel1" runat="server" />

Your help is appreciated.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Princy
Top achievements
Rank 2
 answered on 06 Aug 2009
1 answer
97 views
To create a Linkbutton column that supports filtering and sorting, I'm using the technique shown here:

http://www.telerik.com/community/code-library/aspnet-ajax/grid/filtering-and-sorting-for-gridbuttoncolumn.aspx

Here's my existing markup:

                    <custom:GridButtonColumnWithFilteringSorting HeaderText="Company" UniqueName="Company" 
                        HeaderStyle-Width="150px" ItemStyle-Width="150px" SortExpression="Company" Reorderable="false" 
                        Resizable="false" DataTextField="Company" DataField="Company" CommandName="Edit" 
                        ButtonType="LinkButton">  
                        <HeaderStyle Width="150px"></HeaderStyle> 
                        <ItemStyle Width="150px"></ItemStyle> 
                    </custom:GridButtonColumnWithFilteringSorting> 
 
I  need to know how to substitute a space (&nbsp;) character when there's no data in a column. Otherwise, I'm getting cells with no lines.

How do I add a space character to a custom grid button column?

BTW, if there's a better technique than the GridButtonColumnWithFilteringSorting solution, I'd be glad to see it.

Thanks,

Ken
Yavor
Telerik team
 answered on 06 Aug 2009
3 answers
112 views
Despite the thread title, this is not meant to be a bash of Telerik. When it comes to AJAX, i believe their controls are second to none. However, there are a couple instances where I believe they can imporve. This all has to do with the use of their controls in medium trust environments. Now, I am not a network admin, nor do I know a great deal about webserver setup, so I am coming to this as a novice. However, I do know that the vast majority of third party hosts use medium trust in their environments, and it is even becoming more prevelant to use this in dedicated server systems. So I think it is a huge problem, and only getting bigger.

My understanding of the issue is that lmitations in MS AJAX itself (the framework upon which Rad Ajax is built) produce the problems. Ok, that is certainly credible. However, it is very dfficult to find info on this on the Terlik site. On the "changes and backward compatibility" section of the Ajax help files, there is a small section that deals with this titled "Full DNN support". If you don't use DNN, I don't know why this would ever catch your eye. Also, this is not just a DNN issue. It effects all sorts of functionality. Telerik has two recommended approaches to avoid these issues in medium trust environments. The first is to set the AjaxManager RestoreOriginalRenderDelegate property to False. The second is to inherit your page from RadAjaxPage instead of the ASP.NET Page class. I will have more comments on these solutions below....

I
n my case I was introduced to this problem when I was trying to dynamically load usercontrols (with Ajax) that had javascript on them. I, and I am sure lots of other people, have spent a great deal of time trying to figure out why this doesn't work, as was described in this forum thread:

http://www.telerik.com/community/forums/aspnet-ajax/ajax/radajax-manager-does-not-load-js-files-in-dynamically-loaded-user-control.aspx

there is also a blog relating to this issue, though the blogger doesn't seem to be responsive to comments.

http://blogs.telerik.com/tervelpeykov/posts/08-10-20/AJAX_Using_AJAX_to_load_a_usercontrol_that_has_JavaScript_declared_in_it.aspx

Anyhow, I was once again reintroduced to the Ajax limitations when trying to implement Telerik's ToolTipified grid example. I thought I was doing everyhting they were, but I just couldn't get the example to work properly. As it turns out, setting the AjaxManager RestoreOriginalRenderDelegate property to false did not allow the example to work properly. I haven't tested it out, but I bet a great deal of telerik's examples having to do with ajax don't work properly when this ajaxmanager property is set. So, in my opinion, this is not a particularly good solution to working in medium trust environments, if much of the functionality is limited or lost. And, as for inheriting from RadAjaxPage, I have not seen if that works perfectly, but it simply isn't an option in the majority of project I work on, becasue most of the projects I develop inherit from some other custom base class (not Page).

So, I have one suggestion and two questions regarding all fo this..

Suggestion: Please document these issues better. I'm sure its not a great sales practice to admit your product has problems in a widespread environment, however, I think people will be much happier if they save themselves some time instead of spending countless hours debugging their code when the issue was so easy to diagnose. I know I would have. Every one of your Ajax-related examples should have a note that they may not function properly if the AjaxManager RestoreOriginalRenderDelegate property is set to false (as you require to work in medium trust environments).

Quesiton 1: As I stated before, I accept that this whole issue stems from limitations in the MS Ajax framework, and asside from the documentation of it, I don't have a beef with what Telerik has done regarding the controls. However, given the large-scale reach of these limitations and their effect on so many projects, is Telerik investigating implementing their own work-arounds? If you can get to a point where your own examples work in medium trust environments without doing something as drastic as inheriting from a Telerik base classs, I think that would be sufficient.

Question 2: Does Telerik have any knowledge of Microsoft working on improving these limitations?

Sebastian
Telerik team
 answered on 06 Aug 2009
2 answers
118 views
How can i databind an editable grid (RadGrid2) that is placed inside a formtemplate of another grid (RadGrid1)? And how can I render the RadGrid2 to open all the rows editable at the same time? Using OnNeedDataSource in RadGrid2 doesn't seem to work.
Roy Halvorsen
Top achievements
Rank 1
 answered on 06 Aug 2009
7 answers
140 views
Hi,

Please follow these steps to reproduce the problem

  • Open the calendar using popup button
  • Click the Year/Month to open another popup for selecting Year
  • Change the Year (Do not click the OK/CANCEL or TODAY button)
  • Now click on any date ( at first popup )

Note: Error is also reproducible at http://www.telerik.com/DEMOS/ASPNET/Prometheus/Calendar/Examples/Design/Sunny/DefaultCS.aspx

Sebastian
Telerik team
 answered on 06 Aug 2009
1 answer
81 views
Hi,

Reposting it with the linked account to get better support.

The solution provided below has the following issues:

a. Although the column names disappear from the group header, the information being displayed is all messed up. What I required was that the Sum/Percentage values should have appeared underneath the respective columns.

b. I am still unable to find the collective percentage at the group level. (This is giving me a weird runtime error)

http://www.telerik.com/community/forums/aspnet-ajax/grid/grid-grouping-group-header.aspx
Tsvetoslav
Telerik team
 answered on 06 Aug 2009
1 answer
229 views
We are in the process of evaluating the RadControls for ASP.NET and are curious to know if there are site templates available either through predefined master pages or some other framework other than SiteFinity?

Thanks in advance!
Ivo
Telerik team
 answered on 06 Aug 2009
3 answers
178 views
Hi

I have Q1 2009 installed now and want to upgrade to the production release of Q2,
as there seem to be some great productivity gains to be had, and the style editor looks
like an answer to a maiden's prayer. (Well done Telerik developers!)

I am using MS VWD 2008, SP1

1 ) Is the version that is in my account download area now the production release? (2009.2 701 )

2 ) Can I use the msi file or is it the manual process to follow?

Thanks

Clive
Ivo
Telerik team
 answered on 06 Aug 2009
1 answer
80 views
Hi, I'm having troubles using RadGrid.
I am using the following declaration to create a TemplateColumn:
<rad:GridTemplateColumn UniqueName="masterpage" HeaderText="<%$ Resources:Grids,Portals_MasterPage %>" > 
    <ItemTemplate><asp:Label ID="labelMasterPage" runat="server" Text='<%# GetFileName(Eval("masterpagefile").ToString()) %>' /></ItemTemplate>  
    <EditItemTemplate> 
        <asp:DropDownList ID="dropDownFileNames" runat="server" DataSource='<%# GetMasterPages(Eval("homedirectory").ToString()) %>' /> 
    </EditItemTemplate> 
</rad:GridTemplateColumn> 
I want to modify the SelectedValue property of the DropDownList in the EditItemTemplate when the row goes in Edit Mode.
But the problem is that whenever I search the dropdownlist in a GridEditableItem (inside EditCommand event, for example), I receive the 'NullReferenceException'.
How can I solve this problem?
Thanks in advance.
PS: I'm using RadControl 3.5 in ASP.NET 3.5.
hk proj
Top achievements
Rank 1
 answered on 06 Aug 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?