Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
146 views
I have a combobox in each row of a hierarchical grid. Each combobox is wired up to the same OnClientSelectedIndexChanged event. Within the client event I'm looping all child rows and all decendents and setting the combobox value to the selected value in the parent row.

However, when I use item.select() it is actually triggering the OnClientSelectedIndexChanged event for each child combobox.

How can I prevent this from happening and still keep one js function to handle all eventualities?

I've tried item.set_value and item_set_text. They do seem to work, but only work once.

Do you have an example that illustrates how this can be done?

thanks,

Steve
Veselin Vasilev
Telerik team
 answered on 30 Oct 2009
2 answers
232 views
Hello,

I have a scenario where I have a RadWindow that is opened from a LinkButton click (after some fields are validated). The RadWindow is created, added to RadWindowManager and opened through server side code. On the Radwindow there are two LinkButtons. I create a session variable and assign that session variable a value based on which link button is clicked. Also, each linkbutton closes the RadWindow when clicked. Now, based on the value in the session variable, I would like to call the Insert of a SqlDataSource and then rebind a RadGrid OR do nothing. I have no problem with setting this up to do nothing. The issue I have is trying to call the Insert of the SqlDataSource and then rebinding the RadGrid.

Any clues as to how to do this? I've tried to do so using an Ajax request, but either I did it wrong or it won't work from the click of a LinkButton.

Thanks,
Casey
Casey
Top achievements
Rank 1
 answered on 30 Oct 2009
1 answer
77 views
Hi,
I am using RadPannelbar and its default orientation is vertical and I change it to Horizontal???

--Thanx
Paul
Telerik team
 answered on 30 Oct 2009
6 answers
298 views
I have dates on the x-axis labels. They are too long to all fit. And I can't leave any of them out. And when I rotate them, the text does not look correct. I don't want to rotate them. Is there a way to make them alternate? Like the first date is a bit higher, and the next date is a bit lower, and so forth and so forth? That would just make everything so much easier.

Any help would be very much appreciated.

Thank you.

Sincerely,

Jeff
Conrad
Top achievements
Rank 1
 answered on 30 Oct 2009
7 answers
141 views
Hi All,

Is there any way to display an image on a button that is styled by the formdecorator?  Essentially I'd like to do something similar to what is done with the buttons on this page (Post, reply etc).   My normal currently text only buttons (currently styled as Web20) would look much better having an image to the left of the text.

Regards,

Jon

Jon
Top achievements
Rank 1
 answered on 30 Oct 2009
1 answer
106 views
Hi there,

I'm currently displaying several floating docks. How do I initiate the docks so they are always in front of pre-existing docks? There doesn't appear to be an obvious method or example to do this.

Can I just say that whilst I love your controls your documentation is some of the worst I've seen. It appears to be random examples of each controls feature set. Isn't it about time you document clearly and concisely every feature of every control?

Cheers,

CW
Pero
Telerik team
 answered on 30 Oct 2009
1 answer
144 views
Hello,

I am trying to import my own CSS file into RedEditor so the classes appear in the dropdown list of 'Apply CSS Class', I would like to do it by putting the refference in the ToolsFile.xml. I tryed (I think) everything and it won't work! Can't someone tell me what I'm doing wrong? I Have read all the help topics...

This is my code:

ToolsFile.xml
<root>
other things
<cssFiles>
    <item name="~/css/test.css" />
</cssFiles>
</root>

CSS file (placed in wwwroot\css\):
.title {color:red}


Can someone help me?
Rumen
Telerik team
 answered on 30 Oct 2009
1 answer
138 views

I am using customvalidor in a radajaxpanel but clientside script not make any validation. my aspx code is:
Thsi is my user control

 

 

 

<table> 
 
<tr> 
 
<td> 
 
SampleRequired  
 
</td> 
 
<td> 
 
<asp:CheckBox id="chSampleRequired" runat="server">  
 
</asp:CheckBox> 
 
 
</td> 
 
</tr> 
 
<tr> 
 
<td> 
 
Sample Dead Line  
 
</td> 
 
<td> 
 
<telerik:RadDateTimePicker ID="deSampleDeadLine" runat="server">  
 
</telerik:RadDateTimePicker> 
 
 
<asp:CustomValidator ID="CustomValidator1" runat="server"   
 
ClientValidationFunction="SampleInfoValidation" ControlToValidate="deSampleDeadLine" 
 
 
ErrorMessage="CustomValidator"></asp:CustomValidator> 
 
 
 
 
 
</td> 
 
</tr> 
 
<tr> 
 
<td> 
 
SampleAttentionTo  
 
</td> 
 
<td> 
 
<telerik:RadTextBox ID="tbSampleAttentionTo" runat="server" Width="170px">  
 
</telerik:RadTextBox> 
 
 
</td> 
 
</tr> 
 
<tr> 
 
<td> 
 
SampleAddress  
 
</td> 
 
<td> 
 
<telerik:RadTextBox ID="tbSampleAddress" runat="server" Width="170px">  
 
</telerik:RadTextBox> 
 
</td> 
 
</tr> 
 
</table> 
 


only chSampleRequired checkbox checked validation can occur, for this reason  i want ro use a custom validtator.


My aspx page
<head runat="server">  
 
<title></title>  
 
<script language="javascript" type="text/javascript">  
 
function SampleInfoValidation(source, agruments) {  
 
 
arguments.IsValid = true;  
 
 
}  
 
</script> 
 
</head> 
 
<body> 
 
<form id="form1" runat="server">  
 
<telerik:RadScriptManager ID="RadScriptManager1" runat="server">  
 
</telerik:RadScriptManager> 
 
<div> 
 
<telerik:RadAjaxLoadingPanel runat="server" ID="LoadingPanel1" IsSticky="true" > 
 
 
</telerik:RadAjaxLoadingPanel>   
 
<telerik:RadScriptBlock ID="RadScriptBlock2" runat="server">  
 
<script type="text/javascript">  
 
// on upload button click temporarily disables ajax to perform  
 
// upload actions  
 
function conditionalPostback(sender, args) {  
 
args.set_enableAjax(false);  
 
 
}  
 
</script> 
 
</telerik:RadScriptBlock> 
 
<telerik:RadAjaxPanel ID="RadAjaxPanel1" 
 
runat="server" Width="100%" Height="200px" LoadingPanelID="LoadingPanel1">  
 
<div style="float:left;width:200px">  
 
<telerik:RadTabStrip runat="server" ID="tabNewTender" MultiPageID="mpNewTender" Orientation="VerticalLeft"/>  
 
</div> 
 
<div style="float:left;width:300px">  
 
<telerik:RadMultiPage runat="server" ID ="mpNewTender"   
 
onpageviewcreated="mpNewTender_PageViewCreated" SelectedIndex="0" > 
 
 
 
</telerik:RadMultiPage> 
 
</div> 
 
<div style="clear:both; margin-left:200px">  
 
<tw:pager runat="server" ID ="twpager" /> 
 
</div> 
 
</telerik:RadAjaxPanel> 
 
</div> 
 
</form> 
 
</body> 
 
</html> 
 
 

I load user control dynamically.

O'Man
Top achievements
Rank 1
 answered on 30 Oct 2009
2 answers
92 views
Hi,
My question:
I'm adding some all-day appointments to my WeekView. When I don't have OverflowBehavior.Expand set on my RadScheduler control its height stays constant, allday strip height is growing and you could end up with situation that calendar area becoming invisible because of these allday events. Is there a way to set max height or to enable some kind of scrollbar to allday strip?

Thanks
Marek Witczak
Marek Witczak
Top achievements
Rank 1
 answered on 30 Oct 2009
2 answers
167 views
Bonjour,
    I'm trying to use the blockconfirm function in an Hyperlink but it doesn't work in FirewFox.
Is there any solution or idea?
here my c#code:
protected void Page_Load(object sender, EventArgs e) 
    { 
        LinkLogout.Attributes.Add("onclick", "return blockConfirm('" + Resources.Labels.MasterPageLblConfirmDisconnecting.Replace("'", "''") + "', event, 330, 100,'','Prescrire');"); 
//.................... 

here the asp.net code:
 <asp:HyperLink ID="LinkLogout" Text="<%$ Resources:Labels, MasterPageLinkLogout %>" 

Mounir Maghraoui
Top achievements
Rank 1
 answered on 30 Oct 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?