Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
174 views
Hi All,

I am using RadGrid control and creating one grid column programmatically but the problem is that when I use filter of that column it gives me an error radgrid is neither a DataColumn nor a DataRelation for table. I can view that column but when I try to filter the records using the date filter then it produces an error.

Also, how can I set the index of that column as I want to set the position of that column as number three because before that I have two more columns edit and delete.

Any help would be greatly appreciated.

Thanks in advance.


<telerik:RadGrid ID="rgList" Width="100%" AllowFilteringByColumn="true" Skin="Metro"
        CssClass="table table-bordered" AutoGenerateDeleteColumn="false" AutoGenerateEditColumn="false"
        EnableEmbeddedBaseStylesheet="true" AllowSorting="True" AllowPaging="false" PageSize="10"
        ShowHeader="true" runat="server" AutoGenerateColumns="true" ShowStatusBar="true">
        <MasterTableView TableLayout="Auto" CommandItemDisplay="Top">
            <CommandItemSettings ShowRefreshButton="false" ShowAddNewRecordButton="false" ShowExportToCsvButton="true"
                ShowExportToExcelButton="true" />
        </MasterTableView>
        <GroupingSettings CaseSensitive="false" />
    </telerik:RadGrid>
 
 
 Protected Sub rgList_ColumnCreated(ByVal sender As Object, ByVal e As GridColumnCreatedEventArgs) Handles rgList.ColumnCreated
 
        If e.Column.UniqueName = "AutoGeneratedDeleteColumn" Then 'auto generated delete column id
            Dim gridButtonColumn As GridButtonColumn = e.Column
            gridButtonColumn.ConfirmText = Constants.DELETE_CONFIRM_MESSAGE
        ElseIf e.Column.UniqueName = Constants.EDIT Then
            TryCast(e.Column, GridBoundColumn).AllowFiltering = False
            TryCast(e.Column, GridBoundColumn).HeaderText = ""
        ElseIf e.Column.UniqueName = Constants.DELETE Then 'hiding Delete column from database
            e.Column.Visible = False
        ElseIf e.Column.UniqueName.Contains("_") Then
            Dim sColType As String = e.Column.UniqueName.Split("_")(1)
            If sColType = "GridDateTimeColumn" Then
                Dim _GridDateTimeColumn As New GridDateTimeColumn
                _GridDateTimeColumn.DataField = e.Column.UniqueName
                _GridDateTimeColumn.HeaderText = "Callback Date"
                _GridDateTimeColumn.EnableRangeFiltering = True
                _GridDateTimeColumn.AutoPostBackOnFilter = True
                rgList.MasterTableView.Columns.Add(_GridDateTimeColumn)
            End If
        Else
            e.Column.AutoPostBackOnFilter = True
            e.Column.CurrentFilterFunction = GridKnownFunction.Contains 'setting filter for all other columns
        End If
 
    End Sub
 
Andrey
Telerik team
 answered on 06 Aug 2013
1 answer
358 views
Hi team,
Language : vb.net
I tried search in your forum and all the examples given. Most of them, only show in c# not in vb.net.
And the function for onclick is not available ..except oncheckedchanged.
My problem is.
I have a checkbox column in Radgrid and only one must be selected. If more than that it will show an error in textbox.

One more case :
If i use GridClientSelectColumn, how to add a function like on checkedchanged.

Can somebody guide me.
Thanks.
Angel Petrov
Telerik team
 answered on 06 Aug 2013
5 answers
218 views
Hi folks

Anyone know whether this control support optgroups as in html?

Thanks
Merin
Shinu
Top achievements
Rank 2
 answered on 06 Aug 2013
2 answers
66 views
Hello Everyone,

I want to keep my Filtered ,Pagged , Sorted data as it is untill i m not logged out from my application

currently i bind my grid using NeedData-source .
and also that will not affect my performance also.

Can anyone have any idea or source for that?
Thanks,
Kiresh
Top achievements
Rank 1
 answered on 06 Aug 2013
1 answer
132 views
Hi

I have updated my RadControls to the latest version and now the visual studio Design mode is not working. Whatever Radcontrols are added to the page I am getting an Error rendering controls shown in red. Wondering how type casting error can happen in Design mode that too on updating the controls.

Thanks,
Damian
Shinu
Top achievements
Rank 2
 answered on 06 Aug 2013
4 answers
134 views
Hello!
I would like to show the full list search when clicked within the control RadSearchbox, is it possible?
Without having to type anything ...

I also wonder if the use ButtonCommand I could create different searches. Example: Clicking the Globe Button I would use the criterion X.
To Favorites I would use the criterion Y.
Using the functionality I asked above. Clicking already carry automatically, without the need to type anything ...
Jorge
Top achievements
Rank 1
 answered on 05 Aug 2013
6 answers
668 views
Hi guys

Using any tweak, can I open a Radwindow in another browser view? The scenario is I need to open a radwindow on clicking a link button, but the radwindow should be opened independently (it should not open in the current page containing my link button)

Thanks
Antony
Antony
Top achievements
Rank 1
 answered on 05 Aug 2013
0 answers
46 views
Hello

Is there a way to disable page breaks between two reports in a ReportBook? 

Thanks, Raka
Raka
Top achievements
Rank 1
 asked on 05 Aug 2013
5 answers
181 views
Hi,

Ajax update panel is not working inside rad dock. Kindly address this issue and let us know whether this feature is available or not.


Thanks & Regards
Purojit
Marin Bratanov
Telerik team
 answered on 05 Aug 2013
3 answers
192 views
Hello,

I have a page (code below) that has a tabstrip on it.  Each tab loads a RadWindow.  Each window has a RadListBox in it configured to AllowTransfer="true".  Everything was working fine until I tried to style the header template.  Once I added the style, the header on the second ListBox incorrectly.

Has anyone experienced any issues related to the styling of the header template?

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ListBoxText.aspx.cs" Inherits="IgniteDM.Admin.vPacks.ListBoxText" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<head runat="server">
    <title></title>
    <style type="text/css">
        .OnDemandListBoxHeader
        {
            padding: 5px;
            font-family: Arial, Verdana;
            font-size: 14px;  
            line-height: 18px
        }       
        .PushListBoxHeader
        {
            padding: 5px;
            font-family: Arial, Verdana;
            font-size: 14px;  
            line-height: 18px
        }       
    </style>   
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server" />  
        <telerik:RadTabStrip ID="RadTabStrip1" runat="server" MultiPageID="RadMultiPage1" ShowBaseLine="true"
            SelectedIndex="0" Align="Left" ReorderTabsOnSelect="true" Width="530px">
            <Tabs>
                <telerik:RadTab Text="OnDemand" Font-Bold="true">
                </telerik:RadTab>
                <telerik:RadTab Text="Push" Font-Bold="true">
                </telerik:RadTab>
            </Tabs>
        </telerik:RadTabStrip>
        <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0"
            Width="530px" Height="550px">
            <telerik:RadPageView ID="RadPageView1" runat="server">
                <table border="0" cellpadding="0" cellspacing="0">
                    <tr><td> </td></tr>
                    <tr><td> </td></tr>
                    <tr>
                        <td>
                            <div style="padding-left: 20px;">
                                <telerik:RadListBox runat="server" ID="RadListBoxOnDemandSource" Height="200px" Width="230px"
                                    AllowTransfer="true" TransferToID="RadListBoxOnDemandDestination">
                                    <HeaderTemplate>
                                        <div class="OnDemandListBoxHeader">Available Groups</div>
                                    </HeaderTemplate>
                                    <Items>
                                        <telerik:RadListBoxItem Text="Engineering" />
                                        <telerik:RadListBoxItem Text="Operations" />
                                        <telerik:RadListBoxItem Text="Sales" />                                           
                                    </Items>
                                </telerik:RadListBox
                                <telerik:RadListBox runat="server" ID="RadListBoxOnDemandDestination" Height="200px" Width="200px">                             
                                    <HeaderTemplate>
                                        <div class="OnDemandListBoxHeader">Selected Groups</div>
                                    </HeaderTemplate>
                                </telerik:RadListBox
                            </div>
                        </td>
                    </tr>
                </table>                                   
            </telerik:RadPageView>
            <telerik:RadPageView ID="RadPageView2" runat="server">
                <table border="0" cellpadding="0" cellspacing="0">
                    <tr><td> </td></tr>
                    <tr><td> </td></tr>
                    <tr>
                        <td>
                            <div style="padding-left: 20px;">
                                <telerik:RadListBox runat="server" ID="RadListBoxPushSource" Height="200px" Width="230px"
                                    AllowTransfer="true" TransferToID="RadListBoxPushDestination">
                                    <HeaderTemplate>
                                        <div class="OnDemandListBoxHeader">Available Groups</div>
                                    </HeaderTemplate>                                        
                                    <Items>
                                        <telerik:RadListBoxItem Text="Engineering" />
                                        <telerik:RadListBoxItem Text="Operations" />
                                        <telerik:RadListBoxItem Text="Sales" />  
                                    </Items>
                                </telerik:RadListBox>
                                <telerik:RadListBox runat="server" ID="RadListBoxPushDestination" Height="200px" Width="200px">
                                    <HeaderTemplate>
                                        <div class="OnDemandListBoxHeader">Selected Groups</div>
                                    </HeaderTemplate>                                          
                                </telerik:RadListBox>
                            </div>
                        </td>
                    </tr>
                </table>    
            </telerik:RadPageView>
        </telerik:RadMultiPage>       
    </div>
    </form>
</body>
</html>
Dean
Top achievements
Rank 1
 answered on 05 Aug 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?