Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
76 views
how to wrap text only for level 1 menu item? as I don't want to wrap text for the menu sub item, is this possible?

Many thanks
Shinu
Top achievements
Rank 2
 answered on 27 Nov 2013
3 answers
115 views
I've subclassed the RadGrid to be able to provide a consistent, customized behavior for it in my web application.

Right now I'm trying to customize the pagesize combobox in the RadGrid, so it will display more options than the default.
The page size combobox correctly displays the new list of options, but selecting one of them does nothing. No event is fired and the grid contents is not updated.

What do I need to do to make it work?

My code:
Protected Overrides Sub OnItemCreated(e As Telerik.Web.UI.GridItemEventArgs)
 
    If TypeOf e.Item Is GridPagerItem Then
        Dim l_oPageSize As RadComboBox = DirectCast(e.Item.FindControl("PageSizeComboBox"), RadComboBox)
 
        l_oPageSize.Items.Clear()
 
        Dim l_oItem As RadComboBoxItem
        For l_iIndex As Integer = 10 To 150 Step 10
            l_oItem = New RadComboBoxItem(l_iIndex)
            l_oPageSize.Items.Add(l_oItem)
        Next
 
        l_oItem = New RadComboBoxItem(200)
        l_oPageSize.Items.Add(l_oItem)
        l_oItem = New RadComboBoxItem(300)
        l_oPageSize.Items.Add(l_oItem)
        l_oItem = New RadComboBoxItem(300)
        l_oPageSize.Items.Add(l_oItem)
        l_oItem = New RadComboBoxItem(350)
        l_oPageSize.Items.Add(l_oItem)
        l_oItem = New RadComboBoxItem(400)
        l_oPageSize.Items.Add(l_oItem)
        l_oItem = New RadComboBoxItem(450)
        l_oPageSize.Items.Add(l_oItem)
        l_oItem = New RadComboBoxItem(500)
        l_oPageSize.Items.Add(l_oItem)
        l_oItem = New RadComboBoxItem(600)
        l_oPageSize.Items.Add(l_oItem)
        l_oItem = New RadComboBoxItem(700)
        l_oPageSize.Items.Add(l_oItem)
        l_oItem = New RadComboBoxItem(800)
        l_oPageSize.Items.Add(l_oItem)
        l_oItem = New RadComboBoxItem(900)
        l_oPageSize.Items.Add(l_oItem)
        l_oItem = New RadComboBoxItem(1000)
        l_oPageSize.Items.Add(l_oItem)
 
        Dim l_iW As Integer = l_oPageSize.Width.ToString.Substring(0, l_oPageSize.Width.ToString.IndexOf("px"))
        l_oPageSize.Width = Unit.Pixel(l_iW + 10)
    End If
 
    MyBase.OnItemCreated(e)
End Sub
Princy
Top achievements
Rank 2
 answered on 27 Nov 2013
1 answer
86 views
I get the following errors when I try to insert/edit a record in the Batch Editing demo at
http://demos.telerik.com/aspnet-ajax/grid/examples/data-editing/batch-editing/defaultcs.aspx

Angel Petrov
Telerik team
 answered on 27 Nov 2013
6 answers
98 views
I have a scheduler with two resources in the insert and edit forms. The first resource is the Employee, and the second is the customer. I am passing the customer id into the page and want to open the insert form and select the customer from the resource, based upon the customer id. How do I do this?
Plamen
Telerik team
 answered on 27 Nov 2013
1 answer
232 views
So I have Grids throughout my site that have static headers and footer. Currently, the heights are all hard-coded depending on the other content on the particular page. The problem is that in certain instances a grid may only be populated with a handful of records but the footer is staying static at the bottom of the page, leaving a huge space between the last record and the totals.

I can allow the grid do auto size the height but then I will lose the scrolling that I want at a certain height. How can I make the footer sticky to the last row unless it exceeds a specified height?
Venelin
Telerik team
 answered on 27 Nov 2013
5 answers
245 views

Hi all,

the option ImageStorageLocation="Session" for RadCaptcha I used earlier was working OK, until now.



The problem with the Captcha came right after the latest update of my RadControls was applied (Q3 2013). Simply put, instead of the image with captcha numbers, we now get no image at all.



Looking deeply at the problem, I discovered that if we change the Captcha's ImageStorageLocation to "Cache" the captcha image is rendered as expected. However, I have to use the Session option, because other options was not appropriate (not working) in my hosting environement.



Can anyone help please, or is it a bug in the latest Q3 2013 update.

Slav
Telerik team
 answered on 27 Nov 2013
1 answer
54 views

It took telerik 5 years to fix the case sensitive seeach in the combobox..

New control Radsearch, same old defect, all over again..



Argh...

Plamen
Telerik team
 answered on 27 Nov 2013
1 answer
474 views
I have several separate forms that I want to add a "reset" or "clear" button to. What I'd like is a way to blanket reset all controls to their initial state.

The forms are built entirely from Telerik controls.

What is the best to do this? I'd like the ability to use a single piece of code (javascript) to be included in all pages.
Shinu
Top achievements
Rank 2
 answered on 27 Nov 2013
5 answers
106 views
Hi,
I am facing Combobox Bind issue in grid while using custom template in editmode,
table data comes to datatable but while providing datasource it gives error.
protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
   {
       if (e.Item is GridEditableItem)
       {
           GridEditableItem edit = (GridEditableItem)e.Item;
           RadComboBox cmbUserType = (RadComboBox)edit.FindControl("cmbusertype");
           DataTable dt1 = ObjGlobas.UserType();
           cmbUserType.DataSource = dt1;
           cmbUserType.DataTextField = "UserType";
           cmbUserType.DataValueField = "UserTypeId";
           cmbUserType.DataBind();
       }
   }
Thanks
Swapnil
Top achievements
Rank 1
 answered on 27 Nov 2013
13 answers
437 views
I have a grid whose table view's EditMode is set to batch.
One of the columns of the grid is a GridDropDownColumn, and the inner input is a select element (DropDownControlType="DropDownList").

The values are displayed properly in the read mode. When I open a row for editing, the drop down appears with the first item selected, not the value of the cell.
When I call
$find("gv").get_batchEditingManager().getCellValue(document.querySelectorAll(".rgBatchCurrent")[5])
on the grid I get the text value displayed while on read only mode, not the underlying value (5 is the index of the drop down column).
For example, the previous call returns "Employee (non-sales)" but it should return "EM".

If I use the rad combo box editor instead, it works well, but I don't want it for this simple form. I want to use the plain drop down list.
أشرف
Top achievements
Rank 1
 answered on 27 Nov 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?