Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
567 views
Suppose I have a RadGrid, such as the one in your demo, here: http://demos.telerik.com/aspnet-ajax/grid/examples/programming/filteringtemplatecolumns/defaultcs.aspx.

If I type liz in the Contact name filter box, and select Contains from the filter drop down, I get the three people in the list whose names contain the letters "liz". Pretty obvious.

Now, if I type liz and lin in the Contact name filter box, and select Contains from the filter drop down, I get an empty list, because no names in the list contain the string "liz and lin". Also, not too surprising.

But, if I type liz AND lin in the Contact name filter box (note the upper case AND), and select Contains from the filter drop down, the list contains the full set of names again. This also happens if I enter liz OR lin.

It appears that the RadGrid is trying to treat the uppercase strings AND and OR as a boolean operator, failing, and then punting and returning the entire list. Whatever the reason, this is causing us problems. Our users tend to copy and paste stuff into the filter box, and it is often in upper case, and it sometimes has the word AND or OR in the copied string. This causes the application to behave unexpectedly for them, and leads to complaints.

I haven't been able to find any way to turn this behavior off. Do you have any suggestions?

Thanks for any help.
-Ken
Eyup
Telerik team
 answered on 23 May 2014
1 answer
138 views
Here is the scenario. I have a bound table (batch edit)with 1 dropdown control in the grid.
Depending on which item is selected in the dropdown grid, certain cells are to be either enabled or disabled.
How do I do that?
Eyup
Telerik team
 answered on 23 May 2014
1 answer
64 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
156 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
120 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
98 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
161 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
333 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
887 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
220 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?