Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
82 views
I have a table in MSSQL database which can be loaded to a radgid via sqldatasource. Let's say this is devices table. I have another table where is store device types, for example: desktop,notebook,printer..etc.
Is it possible somehow, to display the conent of devices table, but when adding a new line, or modifying one existing line i would like to choose device type from a dropdownl list (populated form the other table)?

How should i start? I know there is a column type for dropdown list..but should i generate the columns from device table automatically of manually...or whatever :)

Thanks!
Viktor Tachev
Telerik team
 answered on 23 May 2014
1 answer
204 views
Hello,


 In My Grid  . insert sction no scroll bar is showing how to add scroll bar .while click insert section .

Please  Find the Attachment

  
  
Princy
Top achievements
Rank 2
 answered on 23 May 2014
1 answer
147 views
I have a Radtextbox in which i have given Maxlength property for eg:128 ,for English language its not allowing to type more than 128 characters which is fine,but when i select Japanese language and type its allow me to type more than 128 characters ,i dont want this to happen.



Please Suggest.


Thanks
Konstantin Dikov
Telerik team
 answered on 23 May 2014
1 answer
119 views
<%@ Page AutoEventWireup="false" CodeFile="PamTest.aspx.vb" Inherits="PamTest"  %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
  
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
 
 <html>
 <head>
    <title>ASP.NET RibbonBar Demo - Quick Access Toolbar</title>
</head>
<body>
 
    <form id="form1" runat="server">
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
    <telerik:RadFormDecorator ID="QsfFromDecorator" runat="server" DecoratedControls="All" EnableRoundedCorners="false" />
  
     <div class="qsf-demo-canvas">
        <telerik:RadRibbonBar runat="server" ID="RadRibbonBar1" Skin="Windows7" Width="860px">          
            <Tabs>
                <telerik:RibbonBarTab Text="Taxonomies" ToolTip="Taxonomies">
                    <telerik:RibbonBarGroup Text="Taxonomies">
                        <Items>
                            <telerik:RibbonBarSplitButton Text="Test">
                                <Buttons>
                                    <telerik:RibbonBarButton  Text="Test1"/>
                                    <telerik:RibbonBarButton  Text="Test2"/>
                                </Buttons>
                            </telerik:RibbonBarSplitButton>
                           <telerik:RibbonBarButton Text="Open" Value="Open">
                           </telerik:RibbonBarButton>
                           <telerik:RibbonBarButton Text="Close" Value="Close">
                           </telerik:RibbonBarButton>
                           <telerik:RibbonBarButton Text="Edit" Value="Edit">
                           </telerik:RibbonBarButton>
                           <telerik:RibbonBarButton Text="Copy" Value="Copy">
                           </telerik:RibbonBarButton>
                           <telerik:RibbonBarButton Text="Paste" Value="Paste">
                           </telerik:RibbonBarButton>
                           <telerik:RibbonBarButton Text="Print" Value="Print">
                           </telerik:RibbonBarButton>
                           <telerik:RibbonBarButton Text="Print Preview" Value="Print Preview">
                           </telerik:RibbonBarButton>                                                                         
                        </Items>
                    </telerik:RibbonBarGroup>
                </telerik:RibbonBarTab>
                <telerik:RibbonBarTab Text="Collections" ToolTip="Collections">
                     <telerik:RibbonBarGroup Text="Collections">
                        <Items>                           
                           <telerik:RibbonBarButton Text="Open" Value="Open">
                           </telerik:RibbonBarButton>
                           <telerik:RibbonBarButton Text="Close" Value="Close">
                           </telerik:RibbonBarButton>
                           <telerik:RibbonBarButton Text="Edit" Value="Edit">
                           </telerik:RibbonBarButton>
                           <telerik:RibbonBarButton Text="Copy" Value="Copy">
                           </telerik:RibbonBarButton>
                           <telerik:RibbonBarButton Text="Paste" Value="Paste">
                           </telerik:RibbonBarButton>
                           <telerik:RibbonBarButton Text="Print" Value="Print">
                           </telerik:RibbonBarButton>
                           <telerik:RibbonBarButton Text="Print Preview" Value="Print Preview">
                           </telerik:RibbonBarButton>                                                                         
                        </Items>
                    </telerik:RibbonBarGroup>
                </telerik:RibbonBarTab>
                 <telerik:RibbonBarTab Text="Indexes" ToolTip="Indexes">
                     <telerik:RibbonBarGroup Text="Indexes">
                        <Items>                           
                           <telerik:RibbonBarButton Text="Open" Value="Open">
                           </telerik:RibbonBarButton>
                           <telerik:RibbonBarButton Text="Close" Value="Close">
                           </telerik:RibbonBarButton>
                           <telerik:RibbonBarButton Text="Edit" Value="Edit">
                           </telerik:RibbonBarButton>
                           <telerik:RibbonBarButton Text="Copy" Value="Copy">
                           </telerik:RibbonBarButton>
                           <telerik:RibbonBarButton Text="Paste" Value="Paste">
                           </telerik:RibbonBarButton>
                           <telerik:RibbonBarButton Text="Print" Value="Print">
                           </telerik:RibbonBarButton>
                           <telerik:RibbonBarButton Text="Print Preview" Value="Print Preview">
                           </telerik:RibbonBarButton>                                                                         
                        </Items>
                    </telerik:RibbonBarGroup>
                </telerik:RibbonBarTab>
                 <telerik:RibbonBarTab Text="Research Reviews" ToolTip="Research Reviews">
                     <telerik:RibbonBarGroup Text="Research Reviews">
                        <Items>                           
                           <telerik:RibbonBarButton Text="Open" Value="Open">
                           </telerik:RibbonBarButton>
                           <telerik:RibbonBarButton Text="Close" Value="Close">
                           </telerik:RibbonBarButton>
                           <telerik:RibbonBarButton Text="Edit" Value="Edit">
                           </telerik:RibbonBarButton>
                           <telerik:RibbonBarButton Text="Copy" Value="Copy">
                           </telerik:RibbonBarButton>
                           <telerik:RibbonBarButton Text="Paste" Value="Paste">
                           </telerik:RibbonBarButton>
                           <telerik:RibbonBarButton Text="Print" Value="Print">
                           </telerik:RibbonBarButton>
                           <telerik:RibbonBarButton Text="Print Preview" Value="Print Preview">
                           </telerik:RibbonBarButton>                                                                         
                        </Items>
                    </telerik:RibbonBarGroup>
                </telerik:RibbonBarTab>
                <telerik:RibbonBarTab Text="Audit" ToolTip="Audit">
                     <telerik:RibbonBarGroup Text="Audit">
                        <Items>                           
                           <telerik:RibbonBarButton Text="Open" Value="Open">
                           </telerik:RibbonBarButton>
                           <telerik:RibbonBarButton Text="Close" Value="Close">
                           </telerik:RibbonBarButton>
                           <telerik:RibbonBarButton Text="Edit" Value="Edit">
                           </telerik:RibbonBarButton>
                           <telerik:RibbonBarButton Text="Copy" Value="Copy">
                           </telerik:RibbonBarButton>
                           <telerik:RibbonBarButton Text="Paste" Value="Paste">
                           </telerik:RibbonBarButton>
                           <telerik:RibbonBarButton Text="Print" Value="Print">
                           </telerik:RibbonBarButton>
                           <telerik:RibbonBarButton Text="Print Preview" Value="Print Preview">
                           </telerik:RibbonBarButton>                                                                         
                        </Items>
                    </telerik:RibbonBarGroup>
                </telerik:RibbonBarTab>
            </Tabs>
        </telerik:RadRibbonBar>
     </div>
  
    </form>
    <form id="form2" runat="server">   
    <telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" Skin="Silk" EnableRoundedCorners="False" DecoratedControls="All" />
     
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" UpdateInitiatorPanelsOnly="true">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadGrid1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />
                    <telerik:AjaxUpdatedControl ControlID="SortLabel" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="ConfiguratorPanel">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server">
    </telerik:RadAjaxLoadingPanel>
    <telerik:RadGrid ID="radGrid1" runat="server" AllowPaging="true"
        AllowSorting="True" GridLines="None">
        <MasterTableView AllowMultiColumnSorting="true">
               <PagerStyle AlwaysVisible="true" />
        </MasterTableView>         
        <SortingSettings SortedBackColor="#FFF6D6" EnableSkinSortStyles="false"></SortingSettings>
        <HeaderStyle Width="100px"></HeaderStyle>
    </telerik:RadGrid>
     
    </form>   
 
</body>
</html>



This is my Code Behind file



Imports Microsoft.VisualBasic
Imports Telerik.Web.UI
 
 
Partial Class PamTest
    Inherits System.Web.UI.Page
 
 
    Public Sub New()
        Dim data As New List(Of MyData)
        data.Add(New MyData With {.MyColumn1 = "aa", .MyColumn2 = "dd", .MyColumn3 = "rr"})
        data.Add(New MyData With {.MyColumn1 = "bb", .MyColumn2 = "yy", .MyColumn3 = "ff"})
        data.Add(New MyData With {.MyColumn1 = "cc", .MyColumn2 = "xx", .MyColumn3 = "dd"})
        radGrid1.DataSource = data
    End Sub
 
 
End Class
 
Class MyData
    Public Property MyColumn1 As Object
    Public Property MyColumn2 As Object
    Public Property MyColumn3 As Object
End Class




My problem is that

radGrid1.DataSource = data


Is giving an unknown entity error and I have no idea why


Thanks



Angel Petrov
Telerik team
 answered on 23 May 2014
1 answer
207 views
When a RadTextBox has text in it, a "X" is rendered at the right side of the textbox that clears out the text in the textbox when clicked.  Is there a ClientEvent for clicking on the "X"?  I'd like to disable a button when the "X" is clicked.
Shinu
Top achievements
Rank 2
 answered on 23 May 2014
1 answer
392 views
Hi,

I add textbox in code-behind like that :
    Public Sub New(ByVal cName As String)
 
        colname = cName
 
    End Sub
    Public Sub InstantiateIn(ByVal container As System.Web.UI.Control) Implements ITemplate.InstantiateIn
 
        textBox = New TextBox()
        textBox.Width = 27
        container.Controls.Add(textBox)
        AddHandler textBox.DataBinding, AddressOf textValue_DataBinding
 
    End Sub
 
    Sub textValue_DataBinding(ByVal sender As Object, ByVal e As EventArgs)
 
        Dim MyTextBox As TextBox = DirectCast(sender, TextBox)
        Dim container As GridDataItem = DirectCast(MyTextBox.NamingContainer, GridDataItem)
        MyTextBox.Text = DirectCast((DirectCast(container.DataItem, DataRowView))(colname), Integer)
 
    End Sub
 
End Class

So, i would like that my textbox will be visible if another field of that datasource =1 and every texbox will be visible or not(not all). Thanks!
Princy
Top achievements
Rank 2
 answered on 23 May 2014
5 answers
999 views
I want to iterate through values of a column "Name" in my radgrid. Based on a certain condition, I have to prepend it with a refresh icon and append it with a error message. [refreshIcon]Value[ErrorMessage].Please help me achieve this code-behind..
Shinu
Top achievements
Rank 2
 answered on 23 May 2014
3 answers
251 views
Hi
I need to find a combobox inside a gridtableview inside the detailtables when the grid is in insert and edit mode. I am using a formtemplate. I have managed to get my controls inside the mastertableview using the following code. All of this needs to happen outside of the grid when I click a button.

if (hdLineItemRow.Value == string.Empty)
           {
cbo = (RadComboBox)radGrid.MasterTableView.GetInsertItem().FindControl("cbo");
           }
           else
           {
               int itemIdex = Convert.ToInt32(hdLineItemRow.Value);
               cbo = (RadComboBox)radGrid.MasterTableView.Items[itemIdex].EditFormItem.FindControl("cbo");
           }
  
Thank you
Fred
SSirica
Top achievements
Rank 3
Iron
Iron
Iron
 answered on 22 May 2014
1 answer
108 views
Hi!,

Is it possible with RadGrid to add a vertical scrollbar when you put Allpaging to false(i want to show all data in 1 page)?

And in the same way:

Can i freeze panes on the first column(like in Excel)?

Thank you!
Isabelle
Top achievements
Rank 1
 answered on 22 May 2014
12 answers
2.4K+ views
I want to add rows to radgrid when i press add new button. it works first time fine. that mean it adds first row  properly when i press once agin it wont add new rows to grid.
Shri
Top achievements
Rank 1
 answered on 22 May 2014
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?