Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
232 views
I'm new do telerik-rad-controls and using your examples for learning. Following your "Input" expl. I get an "Error Rendering Control" when ever I add an label to a RadMaskedTextBox, RadNumericText etc. That's the case, even if I open your example code. However, the Label are shown OK on the web-pages when viewed by browser.
I have RadControls for Ajax 2008_Q2, VS2008 SP1, NET 3.5.
What's to do?
PMM

Iana Tsolova
Telerik team
 answered on 18 Aug 2009
3 answers
806 views
Hi,

I have grid with filtering enabled. Filtering seems to be working well except when I use '>' or '<' chars in filter box.

When I type for example "> 50%" and select "contains" from the menu it returns all the rows in datasource. It seems that  RadGrid.MasterTableView.FilterExpression is allways empty when using less than or greater than signs.

Also when I try to access the filter textbox on server-side(see below) it's empty when using those chars.
            GridFilteringItem filterItem = (GridFilteringItem)grid1.MasterTableView.GetItems(GridItemType.FilteringItem)[0]; 
            TextBox txtFilter = (TextBox)filterItem["answer"].Controls[0]; 
            string searchFor = txtFilter.Text; 



However the filter value is available in __EVENTARGUMENT hidden field.
  • FireCommand:grid1$ctl00;Filter;answer|> 50%|Contains


So my question is:
Why FilterExpression is empty and how can easily fix filtering with less than and greater than signs?




By the way.. Using single apostrophe causes filtering not to work and javascript error because string is not escaped in postback function.
__doPostBack('grid1','FireCommand:grid1$ctl00;Filter;answer|abc's|Contains') 


I'm using version 2008.2.826.35.


Regards,
Arsi
Mira
Telerik team
 answered on 18 Aug 2009
2 answers
145 views
I have a three-tiered hierarchical grid.  I am trying to use the Window / Edit Dialog for Grid example to insert / edit records.  The example works fine for a single-tier grid, but I can't follow what I need to do to edit the command item template and the template columns at the higher levels.

I'll apologize up front.  This is my first attempt at using a hierarchical grid and I'm finding the documentation and examples very confusing and/or sparse.

My three tiers are:
  DeviceClass
    DeviceGroup
      Devices

For example, the CommandItemTemplate at the first level looks like:
<CommandItemTemplate> 
  <a href="#" onclick="return ShowClassInsert();">Add new Device Class</a> 
</CommandItemTemplate> 
and the template column contains
<telerik:GridTemplateColumn UniqueName="EditClass">  
  <ItemTemplate> 
    <asp:HyperLink ID="EditClassLink" runat="server" Text="Edit" /> 
  </ItemTemplate> 
</telerik:GridTemplateColumn> 
 
In the code-behind, I have
Protected Sub gridDevices_ItemCreated(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles gridDevices.ItemCreated  
 
        If TypeOf e.Item Is GridDataItem Then  
 
            Dim editClass As HyperLink = DirectCast(e.Item.FindControl("EditClassLink"), HyperLink)  
            If Not (editClass Is Nothing) Then  
                editClass.Attributes("href") = "#"  
                editClass.Attributes("onclick") = String.Format("return ShowClassEdit('{0}','{1}');", _  
                 e.Item.OwnerTableView.DataKeyValues(e.Item.ItemIndex)("DeviceClass"), _  
                 e.Item.ItemIndex)  
            End If  
 
        End If  
    End Sub 

This works just fine and opens the window like it should - but only for the first tier. 

What I need now is that when I click on the 'Add new Group' command at the top of the grid, I need to be able to pass the key of the parent DeviceClass, and when I click on the Edit command in the grid for a DeviceGroup, to pass both the parent DeviceClass and the current DeviceGroup.  For the 'Add...' I want the onclick code to look like 'return ShowGroupInsert('parentClass');' and on the template column, I need for the onclick to look like 'return ShowGroupEdit('parentClass','selectedGroup');'

To take this to the third level, it would be the same except for the 'Add...' I want the onclick code to look like 'return ShowDeviceInsert('parentClass','parentGroup');' and on the template column, I need for the onclick to look like 'return ShowGroupEdit('parentClass','parentGroup','parentType');'.

I have included all of my code thus far below if you need it for reference.

Many thanks!
Steve

Here is all of my aspx code. 
<%@ Page Title="" Language="VB" MasterPageFile="~/CTMNet.master" AutoEventWireup="false" CodeFile="devs.aspx.vb" Inherits="devs" %> 
 
<asp:Content ID="Content1" ContentPlaceHolderID="cphHead" Runat="Server">  
</asp:Content> 
<asp:Content ID="Content2" ContentPlaceHolderID="cphBody" Runat="Server">  
    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">  
        <script type="text/javascript">  
            function ShowClassEdit(dc, rowIndex) {  
                var grid = $find("<%= gridDevices.ClientID %>");  
                var rowControl = grid.get_masterTableView().get_dataItems()[rowIndex].get_element();  
                grid.get_masterTableView().selectItem(rowControl, true);  
                window.radopen("EditDeviceClass.aspx?dc=" + dc, "DeviceClassDialog");  
                return false;  
            }  
 
            function ShowClassInsert() {  
                window.radopen("EditDeviceClass.aspx?dc=new", "DeviceClassDialog");  
                return false;  
            }  
 
            function ShowGroupEdit(dc, dg, rowIndex) {  
                var grid = $find("<%# gridDevices.ClientID %>");  
                var rowControl = grid.get_masterTableView().get_dataItems()[rowIndex].get_element();  
                grid.get_masterTableView().selectItem(rowControl, true);  
                window.radopen("EditDeviceGroup.aspx?dc=" + dc + "&dg=" + dg, "DeviceClassDialog");  
                return false;  
            }  
 
            function ShowGroupInsert(dc, rowIndex) {  
                window.radopen("EditDeviceGroup.aspx?dc=" + dc + "&dg=new", "DeviceClassDialog");  
            }  
 
            function ShowDeviceEdit(dc, dg, dt, rowIndex) {  
                var grid = $find("<%# gridDevices.ClientID %>");  
                var rowControl = grid.get_masterTableView().get_dataItems()[rowIndex].get_element();  
                grid.get_masterTableView().selectItem(rowControl, true);  
                window.radopen("EditDevice.aspx?dc=" + dc + "&dg=" + dg + "&typ=" + dt, "DeviceClassDialog");  
                return false;  
            }  
 
            function ShowDeviceInsert(dc, dg, rowIndex) {  
                window.radopen("EditDevice.aspx?dc=" + dc + "&dg=" + dg + "&typ=new", "DeviceClassDialog");  
            }  
 
            function refreshGrid(arg) {  
                if (!arg) {  
                    $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("Rebind");  
                }  
                else {  
                    $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("RebindAndNavigate");  
                }  
            }  
        </script> 
    </telerik:RadCodeBlock> 
    <h3>Device Maintenance</h3> 
    <telerik:RadGrid ID="gridDevices" runat="server" AutoGenerateColumns="False"   
        ShowStatusBar="True" GridLines="None" DataSourceID="dsClasses">  
        <MasterTableView DataKeyNames="DeviceClass" Width="100%" CommandItemDisplay="Top" DataSourceID="dsClasses" Name="DeviceClass">  
            <DetailTables> 
                <telerik:GridTableView DataKeyNames="DeviceClass, DeviceGroup" DataSourceID="dsGroups" Name="DeviceGroups"   
                    Width="100%" runat="server" CommandItemDisplay="Top" BorderColor="#800000" BorderWidth="3px">  
                    <ParentTableRelation> 
                        <telerik:GridRelationFields DetailKeyField="DeviceClass" MasterKeyField="DeviceClass" /> 
                    </ParentTableRelation> 
                    <DetailTables> 
                        <telerik:GridTableView DataKeyNames="DeviceClass, DeviceGroup, DeviceType" DataSourceID="dsDevices"   
                            Name="Devices" width="100%" runat="server" CommandItemDisplay="Top" BorderColor="#008000" BorderWidth="3px">  
                            <ParentTableRelation> 
                                <telerik:GridRelationFields DetailKeyField="DeviceClass" MasterKeyField="DeviceClass" /> 
                                <telerik:GridRelationFields DetailKeyField="DeviceGroup" MasterKeyField="DeviceGroup" /> 
                            </ParentTableRelation> 
                            <Columns> 
                                <telerik:GridBoundColumn DataField="DeviceNum" HeaderText="Device" MaxLength="7" UniqueName="DeviceNum" /> 
                                <telerik:GridBoundColumn DataField="DeviceDescription" HeaderText="Description"   
                                    MaxLength="70" UniqueName="DeviceDescription" /> 
                                <telerik:GridCheckBoxColumn DataField="Active" HeaderText="Active" UniqueName="Active"   
                                    ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center" /> 
                                <telerik:GridBoundColumn DataField="CostingType" HeaderText="Costing Tab" MaxLength="50" 
                                    UniqueName="CostingType" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center" /> 
                                <telerik:GridNumericColumn DataField="DirectCosts" HeaderText="Direct Costs" DataFormatString="{0:c}" 
                                    UniqueName="DirectCosts" ItemStyle-HorizontalAlign="Right" HeaderStyle-HorizontalAlign="Right" /> 
                                <telerik:GridNumericColumn DataField="OptionsDirect" HeaderText="Direct Options" 
                                    DataFormatString="{0:c}" UniqueName="OptionsDirect" ItemStyle-HorizontalAlign="Right" 
                                    HeaderStyle-HorizontalAlign="Right" /> 
                                <telerik:GridDateTimeColumn DataField="ModifiedOn" HeaderText="Last Updated On" UniqueName="ModifiedOn" /> 
                                <telerik:GridBoundColumn DataField="ModifiedBy" HeaderText="Last Updated By"   
                                    MaxLength="30" UniqueName="ModifiedBy" />   
                                <telerik:GridTemplateColumn UniqueName="EditDevice">  
                                    <ItemTemplate> 
                                        <asp:HyperLink ID="EditDevice" runat="server" Text="Edit" /> 
                                    </ItemTemplate> 
                                </telerik:GridTemplateColumn> 
                            </Columns> 
                            <CommandItemTemplate> 
                                <a href="#" onclick="return ShowDeviceInsert();">Add new Device</a> 
                            </CommandItemTemplate> 
                        </telerik:GridTableView> 
                    </DetailTables> 
                    <ExpandCollapseColumn Visible="true" /> 
                    <Columns> 
                        <telerik:GridBoundColumn DataField="DeviceGroup" HeaderText="Device Group" MaxLength="2" UniqueName="DeviceGroup" /> 
                        <telerik:GridBoundColumn DataField="GroupDescription" HeaderText="Group Description"   
                            MaxLength="30" UniqueName="GroupDescription" /> 
                        <telerik:GridTemplateColumn UniqueName="EditGroup">  
                            <ItemTemplate> 
                                <asp:HyperLink ID="EditGroup" runat="server" Text="Edit" /> 
                            </ItemTemplate> 
                        </telerik:GridTemplateColumn> 
                    </Columns> 
                    <CommandItemTemplate> 
                        <a href="#" onclick="return ShowGroupInsert();">Add new Device Group</a> 
                    </CommandItemTemplate> 
                </telerik:GridTableView> 
            </DetailTables> 
            <ExpandCollapseColumn Visible="true" /> 
            <Columns> 
                <telerik:GridBoundColumn DataField="DeviceClass" HeaderText="Class" MaxLength="2" UniqueName="DeviceClass" /> 
                <telerik:GridBoundColumn DataField="ClassDescription" HeaderText="Description" MaxLength="30" UniqueName="ClassDescription" /> 
                <telerik:GridNumericColumn DataField="LaborRate" HeaderText="Labor Rate" MaxLength="7" DataFormatString="{0:c}" UniqueName="LaborRate" Visible="true" /> 
                <telerik:GridTemplateColumn UniqueName="EditClass">  
                    <ItemTemplate> 
                        <asp:HyperLink ID="EditClassLink" runat="server" Text="Edit" /> 
                    </ItemTemplate> 
                </telerik:GridTemplateColumn> 
            </Columns> 
            <CommandItemTemplate> 
                <a href="#" onclick="return ShowClassInsert();">Add new Device Class</a> 
            </CommandItemTemplate> 
        </MasterTableView> 
    </telerik:RadGrid> 
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Default" /> 
    <telerik:RadWindowManager ID="RadWindowManager1" runat="server">  
        <Windows> 
            <telerik:RadWindow ID="DeviceClassDialog" runat="server" Title="Device Class Maintenance" Height="400px" Width="300px" Left="150px" 
                ReloadOnShow="true" ShowContentDuringLoad="false" Modal="true" /> 
        </Windows> 
    </telerik:RadWindowManager> 
    <asp:SqlDataSource ID="dsClasses" runat="server" ConnectionString="<%$ ConnectionStrings:MM %>" 
        ProviderName="System.Data.SqlClient" SelectCommand="select DeviceClass, ClassDescription, LaborRate from tblCBO_DeviceClass" /> 
    <asp:SqlDataSource ID="dsGroups" runat="server" ConnectionString="<%$ ConnectionStrings:MM %>" 
        ProviderName="System.Data.SqlClient" SelectCommand="select DeviceClass, DeviceGroup, DeviceClassGroup, GroupDescription from tblCBO_DeviceGroup where DeviceClass = @DeviceClass">  
        <SelectParameters> 
            <asp:SessionParameter Name="DeviceClass" SessionField="DeviceClass" Type="String" /> 
        </SelectParameters> 
    </asp:SqlDataSource> 
    <asp:SqlDataSource ID="dsDevices" runat="server" ConnectionString="<%$ ConnectionStrings:MM %>" 
        ProviderName="System.Data.SqlClient" SelectCommand="select DeviceNum, DeviceDescription, isnull(Active,0) as Active, CostingType, isnull(DirectCosts,0) as DirectCosts, isnull(OptionsDirect,0) as OptionsDirect, DeviceClass, DeviceGroup, DeviceType, ModifiedBy, ModifiedOn from tblDevices where DeviceClass = @DeviceClass and DeviceGroup = @DeviceGroup">  
        <SelectParameters> 
            <asp:SessionParameter Name="DeviceClass" SessionField="DeviceClass" Type="String" /> 
            <asp:SessionParameter Name="DeviceGroup" SessionField="DeviceGroup" Type="String" /> 
        </SelectParameters> 
    </asp:SqlDataSource> 
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">  
    </telerik:RadAjaxManager> 
</asp:Content> 
 
 
Likewise, here is my entire code-behind as well:
Imports System.Data  
Imports System.Data.SqlClient  
Imports Telerik.Web.UI  
 
Partial Class devs  
    Inherits System.Web.UI.Page  
 
    Protected Sub gridDevices_ItemCreated(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles gridDevices.ItemCreated  
 
        If TypeOf e.Item Is GridDataItem Then  
 
            Dim editClass As HyperLink = DirectCast(e.Item.FindControl("EditClassLink"), HyperLink)  
            If Not (editClass Is Nothing) Then  
                editClass.Attributes("href") = "#"  
                editClass.Attributes("onclick") = String.Format("return ShowClassEdit('{0}','{1}');", _  
                 e.Item.OwnerTableView.DataKeyValues(e.Item.ItemIndex)("DeviceClass"), _  
                 e.Item.ItemIndex)  
            End If  
 
        End If  
    End Sub  
 
    Protected Sub RadAjaxManager1_AjaxRequest(ByVal sender As Object, ByVal e As Telerik.Web.UI.AjaxRequestEventArgs) Handles RadAjaxManager1.AjaxRequest  
 
        Select Case e.Argument  
            Case "Rebind"  
                gridDevices.MasterTableView.SortExpressions.Clear()  
                gridDevices.MasterTableView.GroupByExpressions.Clear()  
                gridDevices.Rebind()  
            Case "RebindAndNavigate"  
                gridDevices.MasterTableView.SortExpressions.Clear()  
                gridDevices.MasterTableView.GroupByExpressions.Clear()  
                gridDevicesgridDevices.MasterTableView.CurrentPageIndex = gridDevices.MasterTableView.PageCount - 1  
                gridDevices.Rebind()  
        End Select  
 
    End Sub  
End Class  
 

Steve LaForge
Top achievements
Rank 1
 answered on 18 Aug 2009
3 answers
163 views
Hiya ... I seem to have the opposite issue of many in the searches I did on Grid and Width and Scrolling. Most seem to get the Browser horizontal scroll bar and want the grid to scroll not the page. With our last release we'd set our page to be a fixed width, and added a div around the Grids so that the grids could be scrolled independent of the page itself. Users are clamoring to have it back to the old way. Unfortunately, with our last release I also updated the control suite to the ASP .NET AJAX as well, and now when I remove the div we placed to scroll the grid, the page scroll does not appear.

Instead, the grid takes up as much of the screen as is available, but the times when the width of the populated columns is greater than the page width, the grid border ends, the data columns extend off the page, but no browser horizontal scroll bar appears.

Help? :)

RadControls for ASPNET AJAX Q1 2009
Microsoft Internet Explorer 7.x

Below is the grid aspx ... I've tried setting both the full RadGrid and the MasterTableView and both to 100% and no change.

<telerik:RadGrid ID="RadGrid1" runat="server" Skin="Office2007" 
    OnNeedDataSource="RadGrid1_NeedDataSource" AllowSorting="True"   
    EnableAJAX="True" EnableAJAXLoadingTemplate="True"  AllowMultiRowSelection="true" 
    LoadingTemplateTransparency="25" AllowPaging="false"   
    onitemcommand="RadGrid1_ItemCommand" GridLines="None"   
    onitemcreated="RadGrid1_ItemCreated" ShowFooter="True">  
    <PagerStyle AlwaysVisible="True" Mode="NextPrevAndNumeric" Position="Top" HorizontalAlign="Left" /> 
    <MasterTableView CommandItemDisplay="None" > 
        <ExpandCollapseColumn Visible="False" Resizable="False">  
            <HeaderStyle Width="20px" /> 
        </ExpandCollapseColumn> 
        <RowIndicatorColumn Visible="False">  
            <HeaderStyle Width="20px" /> 
        </RowIndicatorColumn> 
        <Columns> 
            <telerik:GridClientSelectColumn UniqueName="SelectCheckbox" /> 
        </Columns> 
        <CommandItemTemplate> 
            <div id="my_command_template">  
                <asp:LinkButton ID="LinkButton_exportToExcel" runat="server"  CommandName="ExportToExcel" ToolTip="Export to Excel"></asp:LinkButton> <asp:CheckBox ID="CheckBox_ignorePaging" Checked="true" runat="server" Text="... include data on all pages." />   
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:LinkButton ID="LinkButton_excludedAssets" runat="server" CommandName="ExcludedAssetsShow"></asp:LinkButton> 
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:LinkButton ID="LinkButton_exportToExcel_mass" runat="server"  CommandName="ExportToExcel_mass" ></asp:LinkButton>   
            </div> 
        </CommandItemTemplate> 
    </MasterTableView> 
        <HeaderContextMenu EnableTheming="True" Skin="Office2007">  
            <CollapseAnimation Duration="200" Type="OutQuint" /> 
        </HeaderContextMenu> 
    <AlternatingItemStyle BackColor="FloralWhite" /> 
        <ClientSettings> 
            <Selecting AllowRowSelect="True" /> 
        </ClientSettings> 
        <FilterMenu EnableTheming="True" Skin="Office2007">  
            <CollapseAnimation Duration="200" Type="OutQuint" /> 
        </FilterMenu> 
</telerik:RadGrid> 
Dimo
Telerik team
 answered on 18 Aug 2009
3 answers
258 views

This is not working for me:

 

 

<HeaderStyle HorizontalAlign="Left" />

I want to left-align the day header labels (S, M, T, W, etc.). I think the above should override the values set in any skin shouldn't it?

Thank you

 

Dimo
Telerik team
 answered on 18 Aug 2009
4 answers
135 views
Hi guys,

I'm pretty new to Telerik and was undering if anyone could help. Apologies if this post is in the wrong forum.
I have a RadGrid which contains several RadComboBoxes one of which enables or disables other TextBox controls on the grid at edit. When I add a new row to the RadGrid and select an entry from the ComboBox it correctly disables/enables the TextBoxes on the data entry form. When I return to the same record in the RadGrid to update the entry the TextBoxes are all enabled. Where should I be setting the TextBox state? I've tried to do this in ItemDataBound and ItemCreated.

The other issue can wait until I've got my head around this one.

Thanks for your time.
Nik Yacc
Top achievements
Rank 1
 answered on 18 Aug 2009
3 answers
321 views
I am trying to Refresh my tree view in an update panel on the right hand side of my page when the user drag's and drop's a single or multiple nodes. on the nodeDrop event it pops up an ajax pop up and takes the quantites for the given node to be dropped, on clicking the ok button it saves it to the database and then i want it to do a refresh on the destination node to bring the new quantities through.

am using the new web service method because where loading +5000 nodes.

Protected Sub DataStoreTreeView_NodeDrop(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadTreeNodeDragDropEventArgs)

        Dim sourceNode As RadTreeNode = e.SourceDragNode
        Dim destNode As RadTreeNode = e.DestDragNode
        Dim dropPosition As RadTreeViewDropPosition = e.DropPosition

        Session("SourceDragNode") = sourceNode
        Session("DropPosition") = dropPosition
        Session("DestDragNode") = destNode

        If destNode IsNot Nothing Then
            If sourceNode.TreeView.SelectedNodes.Count <= 1 Then

                'Capture the Quantity
                Me.QuantityTextBox.Text = "1"
                Me.PartListQtyModalPopupExtender.Show()
                Me.OKButton.Attributes.Add("onFocus", "javascript.this.select();")
                CType(Master.FindControl("AJAXScriptManager"), ScriptManager).SetFocus(Me.OKButton)
                Me.DataStoreUpdatePanel.Update()

                PerformDragAndDrop(dropPosition, sourceNode, destNode)

            ElseIf sourceNode.TreeView.SelectedNodes.Count > 1 Then
                For Each node As RadTreeNode In sourceNode.TreeView.SelectedNodes

                   'need to sort
                Next
            End If
        End If

        destNode.Expanded = True
        sourceNode.TreeView.ClearSelectedNodes()
    End Sub

HERE IS THE OK BUTTON I WANT TO REFRESH AFTER.
 Protected Sub OKButton_Click(ByVal sender As Object, ByVal e As System.EventArgs)
        'Add the dragged item as a new Part List Item

        Dim strDestValue As String = ""
        Dim intEnd As Integer
        ReDim intPLParent(0)

        If CType(Session("DestDragNode"), Telerik.Web.UI.RadTreeNode).Value = "0" Then
            intPLParent(0) = 1
        ElseIf Left(CType(Session("DestDragNode"), Telerik.Web.UI.RadTreeNode).Value, 2) = "PL" Then
            strDestValue = CType(Session("DestDragNode"), Telerik.Web.UI.RadTreeNode).Value
            intEnd = InStr(strDestValue, "~")

            If intEnd > 0 Then
                intPLParent(0) = Mid(strDestValue, 3, intEnd - 3)
            Else
                intPLParent(0) = Mid(strDestValue, 3)
            End If
        Else
            strDestValue = CType(Session("DestDragNode"), Telerik.Web.UI.RadTreeNode).Value
            intEnd = InStr(strDestValue, "~")

            If intEnd > 0 Then
                intPLParent(0) = Mid(strDestValue, 3, intEnd - 3)
            Else
                intPLParent(0) = Mid(strDestValue, 3)
            End If

        End If

        'Adds the Selected nodes from data store to the DB for creating a PartList.
        AddPartListItem(Session("SourceDragNode"), Session("DropPosition"), Session("DestDragNode"))

        If Me.PartListTreeView.Nodes(0).Nodes.Count > 0 Then
            Me.imgDeletePartList.Visible = True
        Else
            Me.imgDeletePartList.Visible = False
        End If

    End Sub

Yana
Telerik team
 answered on 18 Aug 2009
7 answers
800 views
Hi,

I have a RadTextbox and I'd like to set the value with javascript. Here is my code:
            var textbox = $get('<%= RadTextbox1.ClientID%>' + '_text');  
            textbox.set_value('Test');  
 

But I get an error message Object doesn't support this property or method and if I look in detail I can't find any method like set_value in my object on textbox. I use the last Asp.Net Ajax Controls version.
Jon
Top achievements
Rank 1
 answered on 18 Aug 2009
1 answer
114 views
Hello,

I have a RadComboBox in ListVIew control.  So I can't do:

<tel:radComboBox ... SelectedValue='<%# Bind("") %>' />

because I'm currently getting a binding error?

Why is that, and is there a remedy outside of code?  I understand I can manually assign, but it seems like I shouldn't have to tap into the ItemDataBound event just to set SelectedValue property.

Thanks.
Veselin Vasilev
Telerik team
 answered on 18 Aug 2009
6 answers
167 views
I am using wcf service to bind rad grid(Q1 2009) via client. I am using item template column and when I change page size, I need to bind grid server side(because when I change page size just data retrieve and template column can't load).

anyone help me?
thank.

Tsvetoslav
Telerik team
 answered on 18 Aug 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?