Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
137 views
I want to bind each node of the tree with its type.
I am getting data into the data table.
For binding text we have DataTextField, for Id we have DataValueField,....
Is there any chance to bind the type of the node.


Atanas Korchev
Telerik team
 answered on 30 May 2008
5 answers
203 views
Hi,
I am updating the content of one combo box with another combo box through AjaxManager.

    <asp:ScriptManager ID="ScriptManager1" runat="server" />
    <telerik:RadAjaxManager ID="AjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="ddlProductGroup">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="ddlProductCategory"></telerik:AjaxUpdatedControl>
                    <telerik:AjaxUpdatedControl ControlID="ddlCategory"></telerik:AjaxUpdatedControl>
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>

In the code above ddlProductGroup and ddlProductCategory are RadComboBox and ddlCategory is a standard asp:dropdownlist.  Upon callback, I bind the same datasource object to ddlProductCategory and ddlCategory; however only ddlCategory is populated with data and ddlProductCategory has no data. 

Here is the code for binding controls:
        private void ddlProductGroup_SelectedIndexChanged(object o, RadComboBoxSelectedIndexChangedEventArgs e)
        {
            this.ProductCategories = _presenter.EligibleProductCategories();
            this.Categories = _presenter.EligibleProductCategories();
        }

When I replace the Ajax callback with a standard postback, the problem goes away.  Does anyone have a solution for this? 

Thanks,
Chris
Veselin Vasilev
Telerik team
 answered on 30 May 2008
3 answers
484 views
I have a masked input that is only supposed to accept a phone number. The problem is that people can enter spaces, or even if you type a letter, it won't allow it, but it will put a space instead. Does anyone know how to not allow spaces? This is how my masked input looks like:

                            <telerik:RadMaskedTextBox ID="PhoneRadMaskedTextBox" runat="server"
                                Mask="(###) ### - #### Ext. #####"
                                PromptChar="">
                            </telerik:RadMaskedTextBox> 
Konstantin Petkov
Telerik team
 answered on 30 May 2008
2 answers
191 views
Hi,

I am working with "RadControls for ASPNET AJAX Q1 2008" which is Trial version.

I am facing a problem when I upload my site on remote server with telerik controls.

Error : Server Error in '/' Application.Runtime Error
Description: An application error occurred on the server..........

When I upload my site without "RadControls for ASPNET AJAX Q1 2008"
everything is ok.

Is this any limitation hosting website on remote server.

Please reply me soon.

Thanks
Shinu
Top achievements
Rank 2
 answered on 30 May 2008
7 answers
137 views

 In datagrid Itemtemplate column i have placed the textboxes(2 columns are textboxes and rest of the columns are label).Text 1 is amount text2 is percentage.
 Using JS calculated the percentage and amount in the onblur event.if user changes the data without saving the data then goes to page 2 then back to page 1 user lost the changes at that i want ask the user to save data then go to page 2.

 When the page index is changed, we lost the values of other pages.
When i change the page and then turn back, all the changes have been lost.

 while woking with DataGrids on the PageIndexChanged event i want to take a confirmation from the user to continue for the next page or not.
 
  How could i do this?

Regards
Sangeetha

Princy
Top achievements
Rank 2
 answered on 30 May 2008
1 answer
267 views
Hi All,
         i want to show update progress of the Update panel at the center of update panel & when the update progress is visible i need to show updateProgress with transparent gray background.(similar to modal popup).
Please reply me if you have any idea regarding this.

Thanks in advance,

Regards,
Ganesh K

Daniel
Telerik team
 answered on 30 May 2008
1 answer
177 views
Hi!

We are trying to use the radajax panel from codebehind.  Using the rendercontrol method we can't get the ajaxpanel to work.  We always have the  following error:

 Script control 'upCats' is not a registered script control. Script controls must be registered using RegisterScriptControl() before calling RegisterScriptDescriptors().



Here's some of our code:

'UPDATEPANEL START------------------ 
Dim upPanel As New Telerik.Web.UI.RadAjaxPanel 
Dim sw As New IO.StringWriter() 
Dim tw As New HtmlTextWriter(sw) 
Dim content As New Literal 
upPanel.ID = "upCats" 
upPanel.Page = Me.Page 
'----------------------------------- 
 
''Filling content here 
''Code stripped 
 
'UPDATEPANEL STOP------------------ 
upPanel.Controls.Add(content) 
upPanel.RenderControl(tw) 'ERROR COMES HERE 
strCatsOverview &= sw.ToString() 
'----------------------------------- 

Thx for your quick response!
Shinu
Top achievements
Rank 2
 answered on 30 May 2008
1 answer
266 views
Hi,
  How can i set the numerictextbox background color using javascript.

Thanks.
Raju
Princy
Top achievements
Rank 2
 answered on 30 May 2008
7 answers
412 views
Hi

I need some help with a group header.

I am going to simplify the data in my grid to help with this example. Lets says my grid has a column called row no and that the rows in the grid are ordered into groups which have intervals of 10. So for example the first group is rows 1 to 10 and the second group is rows 1 to 20.

I would like the header for group 1 to say 'Rows 1 to 10' and the header for group 2 to say 'Rows 2 to 20'

This would require knowing information about the first and last row in the group when the it comes to creating the group header. I normally create group headers like this:

Private Sub dgStock_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.WebControls.GridItemEventArgs) Handles dgStock.ItemDataBound

If TypeOf e.Item Is GridGroupHeaderItem Then

Dim item As GridGroupHeaderItem = CType(e.Item, GridGroupHeaderItem)

Dim groupDataRow As DataRowView = CType(e.Item.DataItem, DataRowView)

'Clear the present text of the cell

item.DataCell.Text =

""

Dim column As DataColumn

For Each column In groupDataRow.DataView.Table.Columns

'item.DataCell.Text = item.DataCell.Text & " " & column.ColumnName

'Check the condition and add only the field you need

If column.ColumnName = "StockType" Then

item.DataCell.Text = groupDataRow(

"StockType").ToString()

Exit For

End If

Next column

Naturally this method of adding a group header won't let me do what i want to do so I was hoping you could please advise.

thanks

Yavor
Telerik team
 answered on 30 May 2008
2 answers
111 views
Hello admin!

Its Shrawan from Hyderabad,

In my project I need to place a radUpload control where i can upload multiple images, along with images titles(will shown below the image) 

i mean if the number of controls are fixed i can place text boxes for each, But here i cant fix the no.of  images to be upload, So when we click on add button of Upload control to upload one more image i want to add text box along with it?

can any one please help me to solve the case

Thank you

regards
Sravan Kumar T
Shrawan
Top achievements
Rank 1
 answered on 30 May 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?