Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
86 views
I have a database fields that stores RTF strings. How do I bind it to a GridHTMLEditorColumn in RadGrid?

When I tried binding it directly, it shows RTF tags like "{rtf\..."

Thanks!
Daniel
Telerik team
 answered on 28 Apr 2011
2 answers
78 views
I just upgraded to Q1 2011 SP1 from Q1 2011 and found that my RadMaskedTextboxes for phone numbers, SSNs, etc. won't initially show their value when a page loads.  These are fields that are bound in a form view.  When you put the form view into edit mode, the values aren't visible until you click into and then out of the field.

I know the values are there because you can re-save and the data still is present.  It seems to be some kind of initialization issue or something where once the page is fully loaded, the values disappear.

Has anybody else noticed or seen this?
Martin
Telerik team
 answered on 28 Apr 2011
1 answer
96 views
I have an ASP.NET page that pops up a RadWindow with 3 small fields in it.  The user adds data, clicks save and once the data is saved, the window should close.  The Save is working, but if I try to say:

RadWindowManager1.Windows[0].Visible=False;

I get a javascript error:  Microsoft JScript runtime error: 'undefined' is null or not an object

I'm sure it's some type of timing issue with the postback/RadWindow, but I'm not sure how to fix it.  Below is my HTML for the RadWindow and a small portion of the code behind.

Thanks

mark

<telerik:RadWindowManager ID="RadWindowManager1" Behaviors="Close" 
runat="server"><BR>                                    
<Windows><BR>                                        
<telerik:RadWindow ID="radWinAddCredit" 
OpenerElementID="btnAddCreditForTalent" 
runat="server"<BR>                                            
Modal="true" AutoSize="true" Title="Add/Edit Credit" 
VisibleStatusbar="false"<BR>                                            
VisibleOnPageLoad="False" Skin="WebBlue" Height="300px" 
ShowContentDuringLoad="False"<BR>                                            
Width="375px" 
Behaviors="Close"><BR>                                            
<ContentTemplate><BR>                                                
<table class="form" 
width="100%"><BR>                                                    
<tr><BR>                                                        
<td class="formLabel-RightAlign" 
align="left"><BR>                                                            
Craft<BR>                                                        
</td><BR>                                                        
<td><BR>                                                            
<telerik:RadComboBox ID="cboCrafts" Skin="WebBlue" Width="205px" 
ZIndex="5000" 
MarkFirstMatch="true"<BR>                                                                
EmptyMessage="Type to Select..." 
runat="server"><BR>                                                            
</telerik:RadComboBox><BR>                                                            
<asp:RequiredFieldValidator ID="valCreditCrafts" 
ControlToValidate="cboCrafts" 
runat="server"<BR>                                                                
ErrorMessage="Required" InitialValue="Type to Select..." 
ValidationGroup="CreditGroup"></asp:RequiredFieldValidator><BR>                                                        
</td><BR>                                                    
</tr><BR>                                                    
<tr><BR>                                                        
<td 
class="formLabel-RightAlign"><BR>                                                            
Title<BR>                                                        
</td><BR>                                                        
<td><BR>                                                            
<telerik:RadComboBox ID="cboShowTitles" Skin="WebBlue" ZIndex="5000" 
Width="205px"<BR>                                                                
EnableAutomaticLoadOnDemand="true" EmptyMessage="Type to Search..." 
MarkFirstMatch="true"<BR>                                                                
runat="server" EnableLoadOnDemand="True" 
ItemsPerRequest="100"><BR>                                                                
<WebServiceSettings Method="GetShowTitles" 
Path="../Admin/Controls/AdminService.asmx" 
/><BR>                                                            
</telerik:RadComboBox><BR>                                                            
<asp:RequiredFieldValidator ID="valCreditShows" 
ControlToValidate="cboShowTitles"<BR>                                                                
runat="server" ErrorMessage="Required" InitialValue="Type to Search..." 
ValidationGroup="CreditGroup"></asp:RequiredFieldValidator><BR>                                                        
</td><BR>                                                    
</tr><BR>                                                    
<tr><BR>                                                        
<td 
class="formLabel-RightAlign"><BR>                                                            
Comment<BR>                                                        
</td><BR>                                                        
<td><BR>                                                            
<asp:TextBox ID="txtCreditComment" CssClass="textFields" runat="server" 
Width="200px"></asp:TextBox><BR>                                                        
</td><BR>                                                    
</tr><BR>                                                    
<tr><BR>                                                        
<td align="right" 
colspan="2"><BR>                                                            
<telerik:RadButton ID="btnSaveCredit" Skin="WebBlue" runat="server" 
Text="Save" 
ValidationGroup="CreditGroup"<BR>                                                                
OnClick="btnSaveCredit_Click"><BR>                                                            
</telerik:RadButton><BR>                                                        
</td><BR>                                                    
</tr><BR>                                                
</table><BR>                                            
</ContentTemplate><BR>                                        
</telerik:RadWindow><BR>                                    
</Windows><BR>                                
</telerik:RadWindowManager>

Partial code behind for btnSave_Click method...

<P> if (isUpdate)<BR> {<BR>        
talentCredit.UpdateTalentCredit(credit);<BR> }<BR> else<BR> {<BR>                        <BR>        
talentCredit.CreateTalentCredit(credit);</P>
<P> }<BR> SiteMaster masterPage = 
(SiteMaster)Page.Master;<BR> masterPage.SetAlertMessage("Credit has been 
Saved.", "green");</P>
<P> loadCredits(talentId);<BR> radgridCredits.DataBind();</P>
<P> <BR> RadWindow rw = 
RadWindowManager1.Windows[0];<BR>{<BR>      
rw.Visible=false;<BR>}<BR></P>

NOTE:  This code is in a Try/Catch and DOES NOT error out there.  It just errors out in VS2010 with the Javascript Error listed above after RadWindow.Visible=false gets called.

Marin Bratanov
Telerik team
 answered on 28 Apr 2011
1 answer
112 views
Hi
I'm just trying controls in demo page
My browser is Google Chrome 4.0.206.1
It seems there is a problem in these pages: 
http://demos.telerik.com/aspnet-ajax/rotator/examples/default/defaultcs.aspx
(there is no possibility to change any option from drop down lists , no mouse click responses)

or
http://demos.telerik.com/aspnet-ajax/upload/examples/async/validation/defaultcs.aspx
(there is a black box as upload control)

Are these my browser problems?
Thanks for your feedbacks
Bozhidar
Telerik team
 answered on 28 Apr 2011
1 answer
167 views
I am getting some odd behaviour of RadWindow which might be related to me having just updated vs2010 to SP1 and also patching to the latest Telerik distribution.

The following code works fine on my production server:

function GetRadWindow()
{
    var oWindow = null;
    if (window.radWindow) oWindow = window.radWindow; //Will work in Moz in all cases, including clasic dialog
    else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;//IE (and Moz az well)         
    return oWindow;
}


But when run in debug mode I get a javascript error:

"uncaught type error: Cannot read property 'radwindow' of undefined"

I've trawled the forums and have seen several threads that tie a similar-ish behaviour to mixing http/https pages in radwindows - however I am 100% http (no https anywhere).  I should probably add that I'm using the radwindow in a masterpage/content scenario.

Am scratching my head here - not a showstopper as the code works in production, but it means I can't debug it.
Georgi Tunev
Telerik team
 answered on 28 Apr 2011
1 answer
174 views
Hello !

   I would like to know if it is possible to set a radtextbox to invalid from code behind ?

   I have a server side validation and i want that my control pass in invalid mode when i come back if it needs.I've tried to set the CssClass to radInvalidCss_Default, but it doesn't seems to work...

    I would like to do as in javascript 
       Mycontrol._invalid = true; 
       Mycontrol.updateCssClass();

thx.
Shinu
Top achievements
Rank 2
 answered on 28 Apr 2011
8 answers
164 views
After creating a new project and adding the AdvancedForm Template for the scheduler I find that it doesn't post back or respond after the AdvancedForm pops up.

Example1 is what it looks like after hitting cancel.
Example2 is what it looks like after hitting save.
Example3 is different than example 2 in that when I add info to the appointment and click save it flickers and then hangs.

This is the straight up, unedited advancedform template...I would think it should work...?
Veronica
Telerik team
 answered on 28 Apr 2011
5 answers
113 views
I am using a MVC Project using RadScheduler. My problems begins with the multi-valued resources. I use MultipleResourceValue parameter, but, in the advanced editing form, my resource appears as a DropDownList.

How can I change the DropDwonList for a CheckBoxList?

Thanks
Veronica
Telerik team
 answered on 28 Apr 2011
2 answers
94 views
I have a page set up like the following example outlined here: http://demos.telerik.com/aspnet-ajax/grid/examples/hierarchy/nestedviewtemplate/defaultcs.aspx

I have exporting turned on for the parent (top) grid.
I have exportdataonly, and ignorepaging set to true on both the parent and child grids.
I have MasterTableView.HierarchyDefaultExpanded = true; for the parent grid

However.. the export contains elements that are not in the grids... things like the contents of the filter menu, the tab titles, date calendar  controls.

Any ideas why this is happening?

Perhaps someone could try this example here (http://demos.telerik.com/aspnet-ajax/grid/examples/hierarchy/nestedviewtemplate/defaultcs.aspx) for exporting and see if it also exports non data elements?

Thanks
Daniel
Telerik team
 answered on 28 Apr 2011
1 answer
86 views
Hello,

I have ASP.NET application running on Intranet.
Lately, I started receiving the following errror:

"RadUpload Ajax callback error. Source urk returned error: 401

Unauthorized

../Telerik.RadUploadProgressHandler.ashx?RadUrid=9386cd0d...etc..........
Did you register the RadUploadProgressHandler in web.config?

Please, see the help for more details: RadUpload for ASP.NET Ajax - Configuration - RadUPloadProgressHandler"

Any idea ?

Your support is very much appreciated!

Roy

Peter Filipov
Telerik team
 answered on 28 Apr 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?