Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
166 views

Hello
I am using RadDatePicker  in my aspx page  

 

<table style="width:100%;">   
<tr> <td>   
<telerik:RadScriptManager ID="RadScriptManager1" runat="server">   
<Scripts>   
<asp:ScriptReference Path="~/App_Javascript/DatePickerClient.js" />   
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />   
 
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />   
   
</Scripts>   
   
</telerik:RadScriptManager>   
 
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">    
 
</telerik:RadAjaxManager>   
</td> </tr> <tr> <td>   
<asp:RadioButtonList ID="Rbl" runat="server" RepeatDirection="Horizontal">   
<asp:ListItem Value="Y">Yes</asp:ListItem>   
<asp:ListItem Value="N">No</asp:ListItem>   
</asp:RadioButtonList>    
</td> </tr>    
<tr> <td>   
<telerik:RadDatePicker ID="RadDatePicker1" Runat="server">   
</telerik:RadDatePicker>   
</td> </tr>   
</table> 

DatePickerClient.js contain a function

 

function EnableDisable() {   
var rblIsGranted = document.getElementById(arguments[1]);   
var opts = rblIsGranted.getElementsByTagName("input");   
var StartDatePicker = $find(arguments[0]);   
if (opts[0].checked) {   
StartDatePicker.set_enabled(true);   
}  
else {    
StartDatePicker.set_enabled(false);   
}  
}  
 
 
 

 

and in code behind I hoodedup the onclick event to radiobuttonlist

Rbl.Attributes.Add(
"onclick", "EnableDisable('"+RadDatePicker1.ID+"','"+Rbl.ID+"')");

 

 

I can disable and enable the radDatePicker1 by seleting the radiobuttonlist either yes or no but the calendar is generating error on click once I disable the radDatePicker control the errorgenerated in buildin telerik javascript

 

if(h==Telerik.Web.UI.Calendar.Utils.RENDERINROWS)
{
for(var a=l;

a<f.rows.length; //error f is null

a++)

 


any solution please I am missing somthing in the setting?

 

 

 

 

Veli
Telerik team
 answered on 20 Jan 2010
2 answers
114 views
Hello Telerik Team,

I have a grid that has 3 pages.
I click the edit command on one item in the first page, the edit form opens.
I click the insert new item command , and the new item form opens, but the edit row now its not the same row I previously clicked to edit, but it is the row from the last page (page 3 in my case) which has the same relative index with the row I clicked first to edit.

For example, if i click edit on the first row, and then insert new row, the edited item will become the first row from the last page.

How can I solve this problem?

I am using as a datasource a List of objects which is bound on the NeedDataSource event.
Yavor
Telerik team
 answered on 20 Jan 2010
1 answer
337 views
Hello,

I have a RadGrid that contains a DetailTable.  In the DetailTable, I wish to add ImageButtons that can change the order of the items in the DetailTable.

What I need to be able to determine is, how many records will be in the detail table.  I need to know this so that for Rows 2 through n-1 (where n is the number of items), I can show both the "Up" and "Down" buttons, and for row n, I can just display the "Up" button. 

How can I determine the number of records that will be in the detail table?  I have tried on DetailTableDataBind, ItemDataBound, etc. and so far nothing has worked.  Any suggestions?  Perhaps I need to use DetailTableDataBind or something I have already tried, but with different code?

Thanks!
Princy
Top achievements
Rank 2
 answered on 20 Jan 2010
1 answer
121 views
Hi Guys,

I am having a problem in add gridGroupfield programatically. Here is my code:

User currentProfile = SessionObject.GetCurrentUserProfile();
GridTableView tableViewOrders = new GridTableView(AwardsGrid);
GridGroupByExpression expression = new GridGroupByExpression();
GridGroupByField gridGroupByField = new GridGroupByField();

// SelectFields values (appear in header)
gridGroupByField = new GridGroupByField();
gridGroupByField.FieldName = currentProfile.FirstName;
gridGroupByField.HeaderText = "Firstname";

expression.SelectFields.Add(gridGroupByField);
gridGroupByField = new GridGroupByField();
gridGroupByField.FieldName = currentProfile.Surname;
gridGroupByField.HeaderText = "Lastname ";
expression.SelectFields.Add(gridGroupByField);

//GroupByFields values (group data)
gridGroupByField = new GridGroupByField();
gridGroupByField.FieldName = currentProfile.FirstName;
expression.GroupByFields.Add(gridGroupByField);
tableViewOrders.GroupByExpressions.Add(expression);


 

 



Many thanks

 

 

 

Erwin Floresca
Top achievements
Rank 1
 answered on 20 Jan 2010
2 answers
123 views
Hi,
  I worked two way binding in Telerik silverlight controls.Is it possible to have two way binding in Telerik Ajax controls dynamically using custom class.if so give me a small for this.

regards,
sathies
sathies
Top achievements
Rank 1
 answered on 20 Jan 2010
5 answers
179 views
I have a RadGrid with multiple columns. One of the columns is a GridTemplateColumn. It has a asp hyperlink control inside of it.

My ClientSetting for the grid is to enable RowHover and AllowRowSelect. When mouse is over a row, the background changes to dark gray and the text of the entire row changes to white, except the hyperlink text. Is there anyway I can change the hyperlink text as well to to white. Same thing with RowSelect as well.

 If there's no build-in feature to do this, is there any client-side way to do it? I don't want to do it in the server side.

Thanks.
Baal
Top achievements
Rank 1
 answered on 19 Jan 2010
2 answers
302 views
I am using RadEditor to create content for use in the HtmlTextBox report control. I have the following problem. The HtmlTextBox does not support <span style="text-decoration: underline;"> markup for underline and instead supports <u></u> but the RadEditor outputs <span style="text-decoration: underline;">. I assume this is because the RadEditor is XHTML compliant and the <u> tag is deprecated. Is there any workaround for this issue?  a content filter? a custom button?

Thanks,
Chris
Eric
Top achievements
Rank 1
 answered on 19 Jan 2010
2 answers
178 views
Hi,

I tried to follow http://www.telerik.com/help/aspnet-ajax/menu_appearancecreatingacustomskin.html to create menu web control with custom skin (OutlookRed), but the skin  is not working on the web control.

here is the code for the menu web control:

<%

@ Control Language="C#" AutoEventWireup="true" CodeBehind="CtrMenu.ascx.cs" Inherits="USC.Advancement.Web.CtrMenu" %>

 

<%

@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>

 

 

<link href="~/Controls/Menu/Skins/OutlookRed/Menu.OutlookRed.css"

 

 

rel="stylesheet" type="text/css" />

 

 

<

 

telerik:RadMenu runat="server" ID="RadMenu1" Width="100%" Skin="OutlookRed"

 

DataSourceID

 

="XmlDataSource1" OnItemDataBound="RadMenu1_ItemDataBound" EnableEmbeddedSkins="false"

 

DataTextField

 

="Text" style="z-index:2" DataNavigateUrlField="Url">

 

 

</telerik:RadMenu>

 

 

<div style="clear: both">

 

 

</div>

 

 

<

 

asp:XmlDataSource runat="server" ID="XmlDataSource1"

 

DataFile

 

="Menu.xml"

 

XPath

 

="/Menu/Item" />

 



It is working when I build custom skin on a aspx page, but not working on a menu web control.

please help.

Thanks

daniel
daniel liu
Top achievements
Rank 1
 answered on 19 Jan 2010
2 answers
76 views
I am using a RadPanelBar as a wizard.  When the page loads, every PanelBarItem is set to be disabled until the user starts the process.  The controls in the PanelBarItems are not disabled on page load, however when I enable the PanelBarItems using server side code, some of the controls are disabled.  For instance, the RadComboBoxes stay disabled.  Sure, I could probably go through and set the enabled property on these controls, but I shouldn't have to right?

Any help or insight is appreciated!

TIA
Seth
Top achievements
Rank 1
 answered on 19 Jan 2010
1 answer
160 views
I am posting a form with various fields and a file upload control to an external website(.aspx page). I need to show an upload progress bar. I have replaced the file upload control with a RadUpload and am trying to use the RadProgress Manager. I am not sure what parameters I need to pass to the RadProgressArea control. Do you have a sample project? I can see lots of examples where the radupload is used to upload files to a target folder, but none where the form is being posted.
Ex Form tag: <form id="form1" action="http://externalwebsite.com/landingpage.aspx" method="post" runat="server" >
I have the code to read the fields and save the file in 'landingpage.aspx'. 

But the progress bar parameters are dummy values, how do I tie the real values to the progress bar? Also in this example when I add the action tag to the form, the submit button click event is overridden. How do i avoid this. Any help is appreciated. 
Genady Sergeev
Telerik team
 answered on 19 Jan 2010
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?