Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
138 views
Hi All,

I have an ItemTemplate with a RadNumericTextBox bound as follows:-

<ItemTemplate> 
    <telerik:RadNumericTextBox ID="RadNumericTextBox_cost" Runat="server"  
            Culture="English (United Kingdom)"  
            Type="Currency"  
            Width="60px" Text='<%# Eval("cost") %>' MinValue="0" MaxValue="5500"  
            EnabledStyle-HorizontalAlign="Right" FocusedStyle-HorizontalAlign="Right"
        <FocusedStyle HorizontalAlign="Right" /> 
        <EnabledStyle HorizontalAlign="Right" /> 
    </telerik:RadNumericTextBox> 
</ItemTemplate> 

In some instances I wish to change the binding of the control at runtime ie costAdjust rather than cost

<ItemTemplate> 
    <telerik:RadNumericTextBox ID="RadNumericTextBox_cost" Runat="server"  
            Culture="English (United Kingdom)"  
            Type="Currency"  
            Width="60px" Text='<%# Eval("costAdjust") %>' MinValue="0" MaxValue="5500"  
            EnabledStyle-HorizontalAlign="Right" FocusedStyle-HorizontalAlign="Right"
        <FocusedStyle HorizontalAlign="Right" /> 
        <EnabledStyle HorizontalAlign="Right" /> 
    </telerik:RadNumericTextBox> 
</ItemTemplate> 

I have tried the following:-

Dim costAdjust As RadNumericTextBox = (DirectCast(dg_detailRecovery.MasterTableView.Items(0).FindControl("RadNumericTextBox_cost"), RadNumericTextBox)) 
 
costAdjust.Text = "<%# DataBinder.Eval(Container.DataItem, 'costAdjust') %>" 
 


But the .Items(0) returns an error.

Does anyone have any ideas how this can be achieved???

Thanx

Marcus

ItemTemplate
Marcus
Top achievements
Rank 1
 answered on 29 Mar 2010
3 answers
222 views
Hi

Is it possible to hide the dropdown arrow? I don't want people to click it at all.

Thanks
Jon
Jonathan Levy
Top achievements
Rank 1
 answered on 29 Mar 2010
4 answers
77 views
Hi,

I'm trying to figure out a way to translate the text on the Mozilla paste helper dialog programmatically using server side code. Is it possible? Also,  at the localization resource files, I noticed MozillaPasteHelper_Paste, and MozillaPasteHelper_UseControlVMessage. However, there is also a "Cancel" button. What resource name is used to translate the cancel button?

Thanks!
Rumen
Telerik team
 answered on 29 Mar 2010
1 answer
175 views
Telerik demos shows two cool features in "Related ComboBoxes" and "Load on demand" items.

However, bringing this together seems to be tricky.

If we have RadComboBox1 and RadComboBox2 on the page (both using Load on demand), and if the RadComboBox2 is dependent upon the text from RadComboBox1 how can one write  RadComboBox2_ItemsRequested method so that it also recognize the input provided in RadComboBox1. If I try it with RadComboBox1.Text, it returns empty string, of course since the text is provided on the Client side, and RadComboBox2_ItemsRequested runs on server side.

Thanks.
Drazan Kosic
Top achievements
Rank 1
 answered on 29 Mar 2010
3 answers
145 views
I need a visual indicator on the input controls to show unsaved changes.

Does anyone have an example of altering the background colour, border, or some other part of a control's UI to indicate the user has changed the value since saving?

Thanks,

Ken
Dimo
Telerik team
 answered on 29 Mar 2010
1 answer
468 views
I am populating the combo box from a column in the database.
Rather than having it load with the first item in the database,
I would like to have it load empty so the user does not have to delete any text when they first start typing.
Here are some of the things that I have tried, but did not work....

//this works with a regular drop down list, but not combo box.

//this.RadComboBox1.Items[0].Selected = false;

 

//this.RadComboBox1.SelectedValue = "";

 

 

//this.RadComboBox1.Item.Insert(0, new ListItem("--", ""));

 

 

//this.RadComboBox1.SelectedIndex = 0;

 

 


//this did not work
this
.RadComboBox1.Items[0].Selected = false;

 

 

this.RadComboBox1.SelectedValue = "";

How can I get it box to load blank or insert blank line?

 

Shinu
Top achievements
Rank 2
 answered on 29 Mar 2010
1 answer
111 views
I am looking for a way to provide a threaded discussion as part of a web application. Is there a Telerik control that provides this functionality?

Thanks
Veselin Vasilev
Telerik team
 answered on 29 Mar 2010
3 answers
258 views
If I have a pageview with content that gets changed by an ajax update, it would be nice to notify the user that something is changing on that pageview, even if it is not currently visible because a different tab is selected. The typical way to do this would be to display a loading image in the tab next to the tab text. I hae tried the following to include a loading image next to the tab text, however,even though I use IsSticky="true" I am finding it difficult to get the loading image to apear on the same line next to the tab text. Is this possible to do currenlty? If not, and even if it is through some sort of hack, this would be good out-of-the box functionality in the future.

<telerik:RadTab ID="tab3" runat="server" PageViewID="pvDR" Value="Report">  
                                                    <TabTemplate> 
                                                        Design Report  
                                                      <telerik:RadAjaxLoadingPanel id="lpReport" Runat="server" IsSticky="True"><asp:Image id="Image51" runat="server" AlternateText="Loading..." BorderWidth="0px" ImageUrl="~/global/images/loading.gif"></asp:Image></telerik:RadAjaxLoadingPanel> 
                                                    </TabTemplate> 
                                                </telerik:RadTab> 
Vesko
Top achievements
Rank 2
 answered on 29 Mar 2010
1 answer
61 views
Hi, i have no idea why is happening but in IE8 sometimes it blocks the page's texboxes, don't let me to be positioned for write... When that happen i restart aplication and then it works. Why???, maybe javascript from radgrid, you happened sometime?? thx
Iana Tsolova
Telerik team
 answered on 29 Mar 2010
1 answer
55 views
Guys I dont want some of the tool bar panel could some one help me to set the properties.

Thanks,
Ram
Shinu
Top achievements
Rank 2
 answered on 29 Mar 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?