Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
77 views
I am trying to display a table content using the RadTabStrip control. However, when I build the table within, it will appear disfigured or does not appear right. Could anyone give me some pointers?

<telerik:RadTabStrip ID="RadTabStrip1" runat="server" SelectedIndex="0" >
    <Tabs>
    <telerik:RadTab runat="server" Text="Tab 1" Selected="True">
        <TabTemplate>
        <table width="950px">
            <tr>
                <td>testing</td>
            </tr>
        </table>
        </TabTemplate>
    </telerik:RadTab>
</Tabs>
<Tabs>
    <telerik:RadTab runat="server" Text="Tab 2" Selected="True">
        <TabTemplate>
        <table width="950px">
            <tr>
                <td>testing</td>
            </tr>
        </table>
        </TabTemplate>
    </telerik:RadTab>
</Tabs>
</telerik:RadTabStrip>

or

<telerik:RadTabStrip ID="RadTabStrip1" runat="server" SelectedIndex="0" >
    <Tabs>
    <telerik:RadTab runat="server" Text="Tab 1" Selected="True">
        <TabTemplate>
        <table width="950px">
            <tr>
                <td>testing</td>
            </tr>
        </table>
        </TabTemplate>
    </telerik:RadTab>
    <telerik:RadTab runat="server" Text="Tab 2" Selected="True">
        <TabTemplate>
        <table width="950px">
            <tr>
                <td>testing</td>
            </tr>
        </table>
        </TabTemplate>
    </telerik:RadTab>
</Tabs>
</telerik:RadTabStrip>
Benjamin
Top achievements
Rank 1
 answered on 29 Jan 2013
1 answer
380 views
HI!!!
I had been researching about this issue, I tried all the solutions but nothing is working for me!....

I have 2 RadListBox!. When transfers occurs I get the following issue:

  1. Uncaught RangeError: Maximum call stack size exceeded
    1. I
    2. f.event.remove
    3. f.event.remove
    4. f.event.remove
    5. f.event.remove


I need fix this. 

I'm using "Telerik.Web.UI_2012_3_1212_Dev_hotfix"
This is my Code:


ASPX:

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DocumentTypeForm.aspx.cs"
    Inherits="WebSearch.UI.Admin.DocumentTypeForm" %>

<%@ Register TagPrefix="UC" TagName="Settings" Src="~/UI/Admin/UserControls/Form/Settings.ascx" %>
<%@ Register TagPrefix="UC" TagName="GeneralInformation" Src="~/UI/Admin/UserControls/Form/Information.ascx" %>
<%@ Register TagPrefix="UC" TagName="ValidationText" Src="~/UI/Admin/UserControls/Form/ValidationText.ascx" %>
<%@ Register TagPrefix="UC" TagName="Notification" Src="~/UI/UserControls/Notification.ascx" %>
<%@ Register TagPrefix="UC" TagName="Information" Src="~/UI/UserControls/Information.ascx" %>
<%@ Register TagPrefix="UC" TagName="Buttons" Src="~/UI/Admin/UserControls/Form/Buttons.ascx" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
  <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
  
    <link href="../../UI/Style/Admin/Form.css" rel="stylesheet" type="text/css" />
     <link href="../../UI/Style/Admin/DocumentType.css" rel="stylesheet" type="text/css" />


      <script type="text/javascript" src="../../UI/Scripts/CommonFunctions.js"></script>
<script type="text/javascript" src="../../UI/Scripts/Grid.js"></script>
<script type="text/javascript" src="../../UI/Admin/Scripts/Form.js"></script>
<script type="text/javascript" src="../../UI/Admin/Scripts/ListBox.js"></script>
    
    <telerik:RadCodeBlock ID="RadCodeBlock2" runat="server">
        <script type="text/javascript">

            function GridCreated(sender, eventArgs) { sender.add_rowDragging(RowDraggingIcon); }
            function RowDraggingIcon(sender, eventArgs) { rowDraggingIcon(sender, eventArgs); }

            function refreshForm(args) {
                var ajaxManager = $find("<%= RadAjaxManager1.ClientID %>");

                if (args != null) ajaxManager.ajaxRequest(args);
            }

            function refreshField() {
                var ajaxManager = $find("<%= RadAjaxManager1.ClientID %>");
                ajaxManager.ajaxRequest("RefeshForm");
            }


            function openEditForm() {
                var id = document.getElementById('FieldID').value;
                if (id != null) {
                    var oBrowserWnd = GetRadWindow().BrowserWindow;
                    var oWindow = oBrowserWnd.radopen("FieldForm.aspx?ID=" + id, "FieldFormDialog");
                    oWindow.set_iconUrl('~/UI/Images/field_list.png');
                    SetCommonProperties(oWindow);
                }


                return false;
            }

            function trim(myString) {
                var valueString = LeftTrim(myString);
                return (valueString);
            }

            function pageLoad() { reDesignControls(); }


            function reDesignControls() {
                var $ = $telerik.$;
                var height = 600;
                var multipageHeight = (83 * height) / 100;
                var multiPage = $find("<%=RadMultiPage1.ClientID %>");

                multiPage.get_element().style.height = multipageHeight + "px";
                var multipageHeight = (70 * multipageHeight) / 100;
                var multiPage = $find("<%=RadMultiPage2.ClientID %>");

                multiPage.get_element().style.height = multipageHeight + "px";


                var container = $find("listMask_Manage");

                if (container != null) {
                    container.style.height = ((90 * multipageHeight) / 100) + "px";

                }

                var container = $find("listMask_MyGrid");

                if (container != null) {
                    container.get_element().style.height = ((98 * multipageHeight) / 100) + "px";
                    container.repaint();
                }

                var container = $find("listMask_MyGridPanel");

                if (container != null) {
                    container.get_element().style.height = ((98 * multipageHeight) / 100) + "px";
                    container.repaint();
                }


                var container = $find("stringMask_MyGrid");

                if (container != null) {
                    container.get_element().style.height = ((85 * multipageHeight) / 100) + "px";

                    container.repaint();
                }

                container = $find("stringMask_MyGridPanel");

                if (container != null) {
                    container.get_element().style.height = ((85 * multipageHeight) / 100) + "px";
                    container.repaint();
                }

                var cell = document.getElementById('tblField').offsetWidth;
                document.getElementById('hddWidthCell').value = cell;


            }

            function confirmCallBackFn(arg) {
                var ajaxManager = $find("<%= RadAjaxManager1.ClientID %>");
                if (arg == true)
                { ajaxManager.ajaxRequest("RemoveDocumentType"); }

            }




            function closeAndRebind(args) {
                var oWnd = GetRadWindow();
                //get a reference to the second RadWindow       

                var dialogB = oWnd.get_windowManager().getWindowByName("LibraryDialog");
                if (dialogB == null) CloseAndRebind(args);
                else {

                    var libraryForm = oWnd.get_windowManager().getWindowByName("DocumentTypeDialog");
                    if (libraryForm != null) libraryForm.close();
                    dialogB.setActive();
                    dialogB.get_contentFrame().contentWindow.refreshDocumentType();

                }
            }

            function RequestStart(sender, args) {
                debugger;
                if (args.EventTarget == "<%= rlbChosen.UniqueID %>") {
                    $find(args.EventTargetElement.id).set_enabled(false);
                }
            }
            function ResponseEnd(sender, args) {
                debugger;
                if (args.EventTarget == "<%= rlbChosen.UniqueID %>") {
                    $find(args.EventTargetElement.id).set_enabled(true);
                }
            }

            function cancel() { Cancel(); }

            function disableTab() {

                var radTabs = $find("<%= RadTabStrip1.ClientID %>");
                var tab = radTabs.findTabByValue("Fields");
               

                var name = document.getElementById('GeneralInformation_txtName').value;
                var id = document.getElementById('hddId').value;

                name = trim(name);

                if (tab && (name.length == 0)) {

                    radTabs.trackChanges();
                    tab.disable();

                    radTabs.commitChanges();


                } else if (tab && name != null) {

                    radTabs.trackChanges();
                    tab.enable();
                    radTabs.commitChanges();


                    var chkPostBack = '<%= Page.IsPostBack ? "true" : "false" %>';
                    DisableTab(chkPostBack);
                }





            }

            function filterList() {
                var listbox = $find("<%= rlbAvailable.ClientID %>");
                var textbox = $find('<%= tbAvailableFilter.ClientID %>');

                clearListEmphasis(listbox);
                createMatchingList(listbox, textbox.get_textBoxValue());
            }

            function filterListChosen() {
                var listbox = $find("<%= rlbChosen.ClientID %>");
                var textbox = $find('<%= tbChosenFilter.ClientID %>');
                clearListEmphasis(listbox);
                createMatchingList(listbox, textbox.get_textBoxValue());
            }


            function clearListEmphasis(listbox) { ClearListEmphasis(listbox); }

            function createMatchingList(listbox, filterText) { CreateMatchingList(listbox, filterText); }

            function rlbAvailable_OnClientTransferring(sender, eventArgs) {
                clearListEmphasis(sender);
                clearFilterText();
                createMatchingList(sender, "");
                reDesignControls();
            }



            function rbtnClear_OnClientClicking(sender, eventArgs) {
                clearFilterText();
                var listbox = $find("<%= rlbAvailable.ClientID %>");
                clearListEmphasis(listbox);
                createMatchingList(listbox, "");
            }


            function chosenClear_OnClientClicking(sender, eventArgs) {
                clearFilterText();
                var listbox = $find("<%= rlbChosen.ClientID %>");
                clearListEmphasis(listbox);
                createMatchingList(listbox, "");
            }


            // Clears the text from the filter.
            function clearFilterText() {
                var textbox = $find('<%= tbAvailableFilter.ClientID %>');
                textbox.clear();
            }
            

        </script>
    </telerik:RadCodeBlock>
</head>
<body onload="return LoadTitle();">





   

    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager2" runat="server" EnablePageMethods="true">
        <Scripts>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
        </Scripts> 
    </telerik:RadScriptManager>
    <telerik:RadAjaxLoadingPanel runat="server" ID="LoadCombo" Height="90%" />
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest" RequestQueueSize="50000">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="rlbChosen">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadMultiPage2" LoadingPanelID="LoadCombo" />
                    <telerik:AjaxUpdatedControl ControlID="EditField" />
                    <telerik:AjaxUpdatedControl ControlID="EditPanel" />
                    <telerik:AjaxUpdatedControl ControlID="FinishEdit" />
                    <telerik:AjaxUpdatedControl ControlID="RadTabStrip2" />
                    <telerik:AjaxUpdatedControl ControlID="FieldID" />
                    <telerik:AjaxUpdatedControl ControlID="litProperties" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="rlbAvailable">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadMultiPage2" LoadingPanelID="LoadCombo" />
                    <telerik:AjaxUpdatedControl ControlID="EditField" />
                    <telerik:AjaxUpdatedControl ControlID="EditPanel" />
                    <telerik:AjaxUpdatedControl ControlID="FinishEdit" />
                    <telerik:AjaxUpdatedControl ControlID="RadTabStrip2" />
                    <telerik:AjaxUpdatedControl ControlID="FieldID" />
                    <telerik:AjaxUpdatedControl ControlID="litProperties" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadMultiPage2" LoadingPanelID="LoadCombo" />
                    <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel1" LoadingPanelID="LoadCombo" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="btnEdit">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadMultiPage2" LoadingPanelID="LoadCombo" />
                    <telerik:AjaxUpdatedControl ControlID="FinishEdit" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="btnCancelEdit">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadMultiPage2" LoadingPanelID="LoadCombo" />
                    <telerik:AjaxUpdatedControl ControlID="EditPanel" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="btnEditFinish">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadMultiPage2" LoadingPanelID="LoadCombo" />
                    <telerik:AjaxUpdatedControl ControlID="EditPanel" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
        <ClientEvents OnRequestStart="RequestStart" OnResponseEnd="ResponseEnd" />
    </telerik:RadAjaxManager>
    <div class="tabContainter">
        <telerik:RadTabStrip ID="RadTabStrip1" runat="server" MultiPageID="RadMultiPage1"
            SelectedIndex="0" CssClass="tabStrip" >
            <Tabs>
                <telerik:RadTab Value="Information" ImageUrl="~/UI/Images/information.png">
                </telerik:RadTab>
                <telerik:RadTab Value="Fields" ImageUrl="~/UI/Images/field_list.png">
                </telerik:RadTab>
            </Tabs>
        </telerik:RadTabStrip>
        <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0" CssClass="multiPageExternal">
            <telerik:RadPageView ID="RadPageViewInformation" runat="server" CssClass="pageView">
                <asp:Table ID="Table3" CssClass="editFormTable" runat="server">
                    <asp:TableRow CssClass="formRow">
                        <asp:TableCell ColumnSpan="2">
                            <UC:Settings ID="Settings" runat="server" />
                        </asp:TableCell></asp:TableRow>
                    <asp:TableRow CssClass="formRow">
                        <asp:TableCell ColumnSpan="2">
                            <UC:GeneralInformation ID="GeneralInformation" runat="server" />
                        </asp:TableCell></asp:TableRow>
                    <asp:TableRow CssClass="formRow">
                        <asp:TableCell ColumnSpan="2">
                            <UC:ValidationText ID="ValidationText" runat="server" />
                        </asp:TableCell>
                    </asp:TableRow>
                </asp:Table>
            </telerik:RadPageView>
            <telerik:RadPageView ID="RadPageViewField" runat="server" CssClass="pageViewField">
                <asp:Table runat="server" CssClass="listContainer">
                    <asp:TableRow>
                        <asp:TableCell CssClass="listBoxColumnOut">
                            <asp:Table runat="server" CssClass="tableListBox">
                                <asp:TableRow>
                                    <asp:TableCell CssClass="listBoxHeaders">
                                        <asp:Literal runat="server" ID="litAvailable" />
                                    </asp:TableCell>
                                    <asp:TableCell CssClass="listBoxHeaders">
                                        <span style="white-space: normal;">
                                            <asp:Label runat="server" ID="litOnDcumentType" />
                                        </span>
                                    </asp:TableCell>
                                </asp:TableRow>
                                <asp:TableRow>
                                    <asp:TableCell CssClass="containerSearch">
                                        <div class="cellTextBoxSearchL">
                                            <telerik:RadTextBox ID="tbAvailableFilter" runat="server" Width="100%" autocomplete="on"
                                                onkeyup="filterList();" />
                                        </div>
                                        <div class="cellLabelSearchL">
                                            <telerik:RadButton ID="rbtnClear" runat="server" Width="19px" AutoPostBack="false"
                                                OnClientClicking="rbtnClear_OnClientClicking" Style="margin-left: 1px">
                                                <Icon PrimaryIconUrl="~/UI/Images/cross.png" PrimaryIconWidth="18px" PrimaryIconTop="3px"
                                                    PrimaryIconLeft="2px" />
                                            </telerik:RadButton>
                                        </div>
                                    </asp:TableCell>
                                    <asp:TableCell CssClass="containerSearch">
                                        <div class="cellTextBoxSearchR">
                                            <telerik:RadTextBox ID="tbChosenFilter" runat="server" Width="100%" autocomplete="on"
                                                onkeyup="filterListChosen();" />
                                        </div>
                                        <div class="cellLabelSearchR">
                                            <telerik:RadButton ID="RadButton1" runat="server" Width="19px" AutoPostBack="false"
                                                OnClientClicking="chosenClear_OnClientClicking">
                                                <Icon PrimaryIconUrl="~/UI/Images/cross.png" PrimaryIconWidth="18px" PrimaryIconTop="3px"
                                                    PrimaryIconLeft="2px" />
                                            </telerik:RadButton>
                                        </div>
                                    </asp:TableCell>
                                </asp:TableRow>
                                <asp:TableRow>
                                    <asp:TableCell ColumnSpan="2" Style="height: 100%">
                                        <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Height="100%" Width="100%"
                                            LoadingPanelID="LoadCombo">
                                            <asp:Table runat="server" CssClass="subTableLibrary">
                                                <asp:TableRow>
                                                    <asp:TableCell CssClass="listBoxColumn">
                                                        <telerik:RadListBox ID="rlbAvailable" runat="server" Width="100%" AllowTransfer="true"
                                                            AllowTransferOnDoubleClick="true" TransferToID="rlbChosen" SelectionMode="Multiple"
                                                            Height="100%" EnableDragAndDrop="true" Sort="Ascending" OnClientTransferring="rlbAvailable_OnClientTransferring"
                                                            AutoPostBackOnTransfer="true" OnTransferred="rlbAvailable_OnTransferred" ButtonSettings-ShowTransferAll="true">
                                                        </telerik:RadListBox>
                                                    </asp:TableCell>
                                                    <asp:TableCell CssClass="listBoxColumn">
                                                        <telerik:RadListBox ID="rlbChosen" runat="server" Sort="Ascending" Width="100%" Height="100%"
                                                            AutoPostBack="true" OnSelectedIndexChanged="rlbChosen_SelectedIndexChange" SelectionMode="Multiple"
                                                            EnableDragAndDrop="true" AllowReorder="true" DataTextField="tempHeader" DataValueField="FieldId">
                                                        </telerik:RadListBox>
                                                    </asp:TableCell>
                                                </asp:TableRow>
                                            </asp:Table>
                                        </telerik:RadAjaxPanel>
                                    </asp:TableCell>
                                </asp:TableRow>
                                <asp:TableRow>
                                    <asp:TableCell></asp:TableCell></asp:TableRow>
                            </asp:Table>
                        </asp:TableCell>
                        <asp:TableCell CssClass="fieldColumnOut">
                            <asp:Table runat="server" CssClass="tableListBox" ID="tblField">
                                <asp:TableRow>
                                    <asp:TableCell CssClass="listBoxHeaders" ID="cellProperties">
                                        <asp:Literal runat="server" ID="litProperties" Visible="false" />
                                    </asp:TableCell>
                                </asp:TableRow>
                                <asp:TableRow>
                                    <asp:TableCell CssClass="listBoxHeaders">
                                        <div id="EditField" runat="server" class="EditField">
                                            <telerik:RadButton ID="btnEditField" runat="server" AutoPostBack="false" OnClientClicked="openEditForm">
                                                <Icon PrimaryIconUrl="~/UI/Images/field_list.png" PrimaryIconWidth="21px" PrimaryIconHeight="25px"
                                                    PrimaryIconTop="3px" PrimaryIconLeft="9px" />
                                            </telerik:RadButton>
                                        </div>
                                    </asp:TableCell>
                                </asp:TableRow>
                                <asp:TableRow>
                                    <asp:TableCell>
                                        <div >
                                            <telerik:RadTabStrip ID="RadTabStrip2" runat="server" MultiPageID="RadMultiPage2"
                                                SelectedIndex="0" CssClass="tabStrip">
                                                <Tabs>
                                                    <telerik:RadTab Value="Information" ImageUrl="~/UI/Images/information.png">
                                                    </telerik:RadTab>
                                                    <telerik:RadTab Value="Mask" ImageUrl="~/UI/Images/table.png">
                                                    </telerik:RadTab>
                                                </Tabs>
                                            </telerik:RadTabStrip>
                                            <telerik:RadMultiPage ID="RadMultiPage2" runat="server" SelectedIndex="0" CssClass="multiPageSub">
                                                <telerik:RadPageView ID="RadPageInformation" runat="server" CssClass="pageView">
                                                    <asp:Panel ID="pnlInformation" runat="server" />
                                                    <UC:Information runat="server" ID="InformationInfo" />
                                                </telerik:RadPageView>
                                                <telerik:RadPageView ID="RadPageMaskField" runat="server" CssClass="pageView">
                                                    <asp:Panel ID="pnlMask" runat="server" />
                                                    <UC:Information runat="server" ID="InformationMask" />
                                                </telerik:RadPageView>
                                            </telerik:RadMultiPage>
                                        </div>
                                    </asp:TableCell>
                                </asp:TableRow>
                                <asp:TableRow>
                                    <asp:TableCell    >
                                        <div id="EditPanel" runat="server" class="EditPanel">
                                            <telerik:RadButton ID="btnEdit" OnClick="btnEdit_Click" runat="server">
                                                <Icon PrimaryIconUrl="~/UI/Images/pencil.png" PrimaryIconWidth="21px" PrimaryIconHeight="25px"
                                                    PrimaryIconTop="3px" PrimaryIconLeft="9px" />
                                            </telerik:RadButton>
                                        </div>
                                        <div id="FinishEdit" runat="server" class="EditPanel">
                                            <telerik:RadButton ID="btnEditFinish" OnClick="btnEditFinish_Click" runat="server">
                                                <Icon PrimaryIconUrl="~/UI/Images/accept.png" PrimaryIconWidth="21px" PrimaryIconHeight="25px"
                                                    PrimaryIconTop="3px" PrimaryIconLeft="9px" />
                                            </telerik:RadButton>
                                            <telerik:RadButton ID="btnCancelEdit" OnClick="btnCancelEdit_Click" runat="server">
                                                <Icon PrimaryIconUrl="~/UI/Images/cancel.png" PrimaryIconWidth="21px" PrimaryIconHeight="25px"
                                                    PrimaryIconTop="3px" PrimaryIconLeft="9px" />
                                            </telerik:RadButton>
                                        </div>
                                    </asp:TableCell>
                                </asp:TableRow>
                            </asp:Table>
                        </asp:TableCell>
                    </asp:TableRow>
                </asp:Table>
            </telerik:RadPageView>
        </telerik:RadMultiPage><UC:Buttons ID="ButtonsForm" runat="server"></UC:Buttons>
    </div>
    <UC:Notification ID="Notification" runat="server" />
    <telerik:RadWindowManager ID="RadWindowManager1" runat="server" EnableShadow="true">
        <Windows>
            <telerik:RadWindow ID="FieldDialog" runat="server" Height="600px" Width="800px" ReloadOnShow="true"
                ShowContentDuringLoad="false" Modal="true" VisibleStatusbar="false" Behaviors="Move, Close"
                Animation="FlyIn" IconUrl="~/UI/Images/field_list.png" />
        </Windows>
    </telerik:RadWindowManager>
    <asp:HiddenField ID="hddId" runat="server" />
    <asp:HiddenField ID="HiddenObjectName" runat="server" />
    <asp:HiddenField ID="FieldID" runat="server" />
    <asp:HiddenField ID="hddWidthCell" runat="server" />
    </form>
</body>
</html>


I tried set EnabledDragAndDrop ="False" and error does not appears. BUT I need use this function.

regards.
Princy
Top achievements
Rank 2
 answered on 29 Jan 2013
1 answer
115 views
I have grid like 

 <ccl:WTGrid ID="grdTruckDetails" runat="server" Width="940px" SubmitButtonVisible="false"
                        CancelButtonVisible="false" ExportFileName="CustomerServiceDetails" ExportToolbarVisible="false"
                        CustomAllowFilteringByColumn="false" IsPageCountIsRequired="false" CustomAllowPaging="true"
                        OnItemDataBound="grdTruckDetails_ItemDataBound" OnItemCommand="grdTruckDetails_ItemCommand"
                        ManageAppointmentButtonVisible="false" RemoveButtonVisible="false" OnNeedDataSource="grdTruckDetails_NeedDataSource"
                        IsVerticalScrollRequired="true" IsExport="false" IsSelectRowRequired="false"
                        AllowMultiRowSelection="true" ManageToolbarClientEvent="OnToolbarClientButtonClicking"
                        CustomWebFunctionName="DTRCustomerServiceSearch" ContextMenuClickHandler="OpenMenuActivity"
                        PageSize="10" AllowAutomaticUpdates="true" CustomFrozenColumnsCount="6" AllowAutomaticInserts="true"
                        IsGridRowSelectionRequired="true" IsCopyCellValueRequired="false">
                        <ClientSettings EnableRowHoverStyle="true">
                            <Selecting AllowRowSelect="true" EnableDragToSelectRows="true" />
                        </ClientSettings>
                        <MasterTableView AutoGenerateColumns="false" DataKeyNames="RowID" Width="100%" CommandItemDisplay="TopAndBottom"
                            TableLayout="Fixed">
                            <Columns>
                                <telerik:GridButtonColumn ConfirmText="Are you sure you want to remove selected trucks?"
                                    HeaderStyle-Width="30px" ConfirmTitle="Delete" ButtonType="ImageButton" CommandName="Delete"
                                    ConfirmDialogType="Classic" Text="Delete" UniqueName="InLineRemove" ImageUrl="../Images/Remove1.jpg">
                                    <ItemStyle HorizontalAlign="Center" CssClass="txtNormal" Width="30px"></ItemStyle>
                                </telerik:GridButtonColumn>
                                <telerik:GridEditCommandColumn ButtonType="ImageButton" HeaderStyle-Width="30px"
                                    UniqueName="InLineEdit" EditImageUrl="../Images/Edit.gif">
                                    <ItemStyle CssClass="txtNormal" Width="30px"></ItemStyle>
                                </telerik:GridEditCommandColumn>
                                <%--  lic plate--%>
                                <ccl:WTGridBoundColumn UniqueName="LicensePlate" DataField="Plate_Nbr" runat="server"
                                    HeaderStyle-Width="120px" ItemStyle-Width="120px" HeaderText="Lic Plate" AllowFiltering="true"
                                    SortExpression="Plate_Nbr" FilterControlWidth="80px" ItemStyle-CssClass="txtNormal txtToUppercase">
                                </ccl:WTGridBoundColumn>
                                <%--State--%>
                                <ccl:GridDropDownFilterColumn DataField="PlateState_Cd" FilterControlWidth="60px"
                                    UniqueName="State" HeaderText="State" SortExpression="PlateState_Cd">
                                    <HeaderStyle Width="80px" />
                                    <ItemTemplate>
                                        <ccl:WTLabel ID="lblFState" runat="server" Style="font-weight: normal; color: #000"
                                            Text='<%# Bind("PlateState_Cd")%>'></ccl:WTLabel>
                                    </ItemTemplate>
                                </ccl:GridDropDownFilterColumn>
                                <%-- VIN--%>
                                <ccl:WTGridTemplateColumn HeaderText="VIN #" UniqueName="VIN" HeaderStyle-Width="160px" ItemStyle-CssClass="txtNormal txtToUppercase"
                                    HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center">
                                    <ItemTemplate>
                                        <ccl:WTLabel ID="lblFVIN" runat="server" CssClass="txtNormal txtToUppercase" Style="font-weight: normal; color: #000;
                                            font-family: segoe ui, arial, sans-serif !important; font-size: 12px; font-style: normal"
                                            Width="150px" Text='<%# Bind("VIN")%>'></ccl:WTLabel>
                                    </ItemTemplate>
                                </ccl:WTGridTemplateColumn>
                                <%-- RFID--%>
                                <ccl:WTGridBoundColumn UniqueName="RFID" DataField="RFID_Cd" runat="server" HeaderText="RFID #"
                                    HeaderStyle-Width="120px" ItemStyle-Width="120px" ItemStyle-CssClass="ellipses"
                                    AllowFiltering="true" SortExpression="RFID_Cd" FilterControlWidth="80px">
                                </ccl:WTGridBoundColumn>
                                <%--Status--%>
                                <ccl:GridDropDownFilterColumn DataField="TruckStatus_Dsc" FilterControlWidth="80px"
                                    UniqueName="TruckStatus_Dsc" HeaderText="Truck Status" SortExpression="TruckStatus_Dsc">
                                    <HeaderStyle Width="100px" />
                                    <ItemTemplate>
                                        <ccl:WTLabel ID="lblFTruckStatus_Dsc" runat="server" Style="font-weight: normal;
                                            color: #000" Text='<%# Bind("TruckStatus_Dsc")%>'></ccl:WTLabel>
                                    </ItemTemplate>
                                </ccl:GridDropDownFilterColumn>
                                <%--Low Battery--%>
                                <ccl:GridDropDownFilterColumn DataField="LowBattery" FilterControlWidth="80px" UniqueName="LowBattery"
                                    HeaderText="Low Battery" SortExpression="LowBattery">
                                    <HeaderStyle Width="100px" />
                                    <ItemTemplate>
                                        <ccl:WTLabel ID="lblFLowBattery" runat="server" Style="font-weight: normal; color: #000"
                                            Text='<%# Bind("LowBattery")%>'></ccl:WTLabel>
                                    </ItemTemplate>
                                </ccl:GridDropDownFilterColumn>
                                <%--Make --%>
                                <ccl:GridDropDownFilterColumn DataField="Make" FilterControlWidth="80px" UniqueName="Make"
                                    HeaderText="Make" SortExpression="Make">
                                    <HeaderStyle Width="100px" />
                                    <ItemTemplate>
                                        <ccl:WTLabel ID="lblmake" runat="server" Style="font-weight: normal; color: #000"
                                            Text='<%# Bind("Make")%>'></ccl:WTLabel>
                                    </ItemTemplate>
                                </ccl:GridDropDownFilterColumn>
                                <%--  Model--%>
                                <ccl:GridDropDownFilterColumn DataField="Model" FilterControlWidth="100px" UniqueName="Model"
                                    HeaderText="Model" SortExpression="Model">
                                    <HeaderStyle Width="120px" />
                                    <ItemTemplate>
                                        <ccl:WTLabel ID="lblFModel" runat="server" Style="font-weight: normal; color: #000"
                                            Text='<%# Bind("Model")%>'></ccl:WTLabel>
                                    </ItemTemplate>
                                </ccl:GridDropDownFilterColumn>
                                <%-- Model Year--%>
                                <ccl:WTGridBoundColumn UniqueName="Modelyear" DataField="ModelYear" runat="server"
                                    HeaderText="Model Year" HeaderStyle-Width="110px" ItemStyle-Width="110px" AllowFiltering="true"
                                    SortExpression="ModelYear" FilterControlWidth="70px">
                                </ccl:WTGridBoundColumn>
                                <%--Fuel Type--%>
                                <ccl:GridDropDownFilterColumn DataField="FuelType_Dsc" FilterControlWidth="80px"
                                    UniqueName="Fueltype" HeaderText="Fuel Type" SortExpression="FuelType_Dsc">
                                    <HeaderStyle Width="100px" />
                                    <ItemTemplate>
                                        <ccl:WTLabel ID="lblFuelType" runat="server" Style="font-weight: normal; color: #000"
                                            Text='<%# Bind("FuelType_Dsc")%>'></ccl:WTLabel>
                                    </ItemTemplate>
                                </ccl:GridDropDownFilterColumn>
                                <%--Engine Family--%>
                                <ccl:WTGridBoundColumn UniqueName="EngineFamily" DataField="EngineSerial_Num" runat="server"
                                    HeaderStyle-Width="110px" ItemStyle-Width="110px" HeaderText="Engine Family"
                                    AllowFiltering="true" SortExpression="EngineSerial_Num" FilterControlWidth="70px">
                                </ccl:WTGridBoundColumn>
                                <%-- Engine Year--%>
                                <ccl:WTGridBoundColumn UniqueName="EngineYear" DataField="EngineYear" runat="server"
                                    HeaderStyle-Width="100px" ItemStyle-Width="100px" HeaderText="Engine Year" AllowFiltering="true"
                                    SortExpression="EngineYear" FilterControlWidth="50px">
                                </ccl:WTGridBoundColumn>
                                <%--Truck GVWR--%>
                                <ccl:GridDropDownFilterColumn DataField="TruckGVWR" FilterControlWidth="100px" UniqueName="TruckGVWR"
                                    HeaderText="Truck GVWR" SortExpression="TruckGVWR" ItemStyle-Width="120px">
                                    <HeaderStyle Width="120px" />
                                    <ItemTemplate>
                                        <ccl:WTLabel ID="lblFTruckGVWR" runat="server" Style="font-weight: normal; color: #000"
                                            Text='<%# Bind("TruckGVWR")%>'></ccl:WTLabel>
                                    </ItemTemplate>
                                </ccl:GridDropDownFilterColumn>
                                <%--Sticker--%>
                                <ccl:WTGridBoundColumn UniqueName="Sticker" DataField="Sticker" runat="server" HeaderText="Sticker"
                                    HeaderStyle-Width="100px" ItemStyle-Width="100px" AllowFiltering="true" SortExpression="Sticker"
                                    FilterControlWidth="60px">
                                </ccl:WTGridBoundColumn>
                                <%--Owner Operator--%>
                                <ccl:GridDropDownFilterColumn DataField="OwnerOperator_Flg" FilterControlWidth="70px"
                                    UniqueName="OwnerOperator_Flg" HeaderText="Owner Operator" SortExpression="OwnerOperator_Flg"
                                    ItemStyle-Width="100px">
                                    <HeaderStyle Width="116px" />
                                    <ItemTemplate>
                                        <ccl:WTLabel ID="lblFOwnerOperator" runat="server" Style="font-weight: normal; color: #000"
                                            Text='<%# Bind("OwnerOperator_Flg")%>'></ccl:WTLabel>
                                    </ItemTemplate>
                                </ccl:GridDropDownFilterColumn>
                                <%--Truck Owner--%>
                                <ccl:WTGridBoundColumn UniqueName="Owner_Name" ItemStyle-CssClass="ellipses" DataField="Owner_Name"
                                    runat="server" HeaderStyle-Width="104px" ItemStyle-Width="120px" HeaderText="Truck Owner"
                                    AllowFiltering="true" SortExpression="Owner_Name" FilterControlWidth="80px">
                                </ccl:WTGridBoundColumn>
                                <%-- Truck Alias--%>
                                <ccl:WTGridBoundColumn UniqueName="TruckAlias" DataField="Truckalias" runat="server"
                                    HeaderStyle-Width="200px" ItemStyle-Width="120px" HeaderText="Truck Alias" AllowFiltering="true"
                                    SortExpression="Truckalias" FilterControlWidth="80px">
                                </ccl:WTGridBoundColumn>
                                <ccl:WTGridTemplateColumn HeaderStyle-Width="105px" HeaderText="Truck_Id" UniqueName="Truck_Id"
                                    Visible="false" AllowFiltering="false">
                                    <ItemTemplate>
                                        <ccl:WTLabel ID="lblFTruck_Id" runat="server" Width="88px" Text='<%# Eval("Truck_Id")%>'
                                             MaxLength="12">
                                        </ccl:WTLabel>
                                    </ItemTemplate>
                                </ccl:WTGridTemplateColumn>
                                <ccl:WTGridBoundColumn HeaderStyle-Width="100px" Aggregate="Count" DataField="Truck_Id"
                                    HeaderText="Truck_Id" UniqueName="duplicateTruckId" Display="false">
                                </ccl:WTGridBoundColumn>
                                <ccl:WTGridBoundColumn DataField="ActualRFID" UniqueName="ActualRFID" Display="false">
                                </ccl:WTGridBoundColumn>
                                <ccl:WTGridBoundColumn DataField="VIN" runat="server" Display="false" UniqueName="duplicateVIN">
                                </ccl:WTGridBoundColumn>
                                <ccl:WTGridTemplateColumn HeaderStyle-Width="105px" HeaderText="TruckStatus_Cd" UniqueName="TruckStatus_Cd"
                                    Visible="false" AllowFiltering="false">
                                    <ItemTemplate>
                                        <ccl:WTLabel ID="lblFTruckStatus_Cd" runat="server" Width="88px" Text='<%# Eval("TruckStatus_Cd")%>'
                                            Style="text-transform: uppercase;" MaxLength="12">
                                        </ccl:WTLabel>
                                    </ItemTemplate>
                                </ccl:WTGridTemplateColumn>
                                <ccl:WTGridTemplateColumn HeaderStyle-Width="105px" HeaderText="VINValid_Flg" UniqueName="VINValid_Flg"
                                    Visible="false" AllowFiltering="false">
                                    <ItemTemplate>
                                        <ccl:WTLabel ID="lblVINValidFlg" runat="server" Width="88px" Text='<%# Eval("VINValid_Flg")%>'>
                                        </ccl:WTLabel>
                                    </ItemTemplate>
                                </ccl:WTGridTemplateColumn>
                                <ccl:WTGridTemplateColumn HeaderStyle-Width="105px" HeaderText="RowID" UniqueName="RowID"
                                    Visible="false" AllowFiltering="false">
                                    <ItemTemplate>
                                        <ccl:WTLabel ID="lblFRowID" runat="server" Width="88px" Text='<%# Eval("RowID")%>'>
                                        </ccl:WTLabel>
                                    </ItemTemplate>
                                </ccl:WTGridTemplateColumn>
                                <ccl:WTGridBoundColumn DataField="RowID" UniqueName="duplicateRowID" Display="false">
                                </ccl:WTGridBoundColumn>
                                <ccl:WTGridTemplateColumn Display="false">
                                    <ItemTemplate>
                                        <asp:HiddenField ID="hIsDirty" runat="server" />
                                    </ItemTemplate>
                                </ccl:WTGridTemplateColumn>
                                <ccl:WTGridTemplateColumn Display="false">
                                    <ItemTemplate>
                                        <ccl:WTLabel ID="lblTagStatus_Cd" runat="server" Text='<%# Eval("TagStatus_Cd")%>' />
                                    </ItemTemplate>
                                </ccl:WTGridTemplateColumn>
                            </Columns>
                            <EditFormSettings EditFormType="Template" FormStyle-BackColor="#e3eeff">
                                <FormTableItemStyle Wrap="False"></FormTableItemStyle>
                                <FormTemplate>
                                    <br />
                                    <table width="950px">
                                        <tr>
                                            <td class="txtLabelRight" width="12%">
                                                <span class='MandatoryIndicator'>*</span>
                                                <ccl:WTLabel ID="lblLicNo" runat="server" Text="Lic Plate:" CssClass="lb"></ccl:WTLabel>
                                                <ccl:WTLabel ID="lblTruckID" runat="server" Visible="false"></ccl:WTLabel>
                                                <ccl:WTLabel ID="lblVinValidFlg" runat="server" Visible="false"></ccl:WTLabel>
                                                <ccl:WTLabel ID="lblTruckStatus" runat="server" Visible="false"></ccl:WTLabel>
                                                <ccl:WTLabel ID="lblRowId" runat="server" Visible="false"></ccl:WTLabel>
                                                <ccl:WTLabel ID="lblTagStatus_Cd" runat="server" Visible="false" />
                                            </td>
                                            <td width="10%">
                                                <ccl:WTTextBox ID="txtPlateNbr" CssClass="txtNormal txtToUppercase" runat="server" Width="120px"
                                                    MaxLength="15">
                                                </ccl:WTTextBox>
                                            </td>
                                            <td class="txtLabelRight" width="14%">
                                                <span class='MandatoryIndicator'>*</span>
                                                <ccl:WTLabel ID="lblState" runat="server" Text="State:"></ccl:WTLabel>
                                            </td>
                                            <td width="10%">
                                                <ccl:WTWebDropDown ID="ddlState" runat="server" Width="100px">
                                                </ccl:WTWebDropDown>
                                            </td>
                                            <td class="txtLabelRight" width="25%">
                                                <span class='MandatoryIndicator'>*</span>
                                                <ccl:WTLabel ID="lblVIn" runat="server" Text="VIN#:"></ccl:WTLabel>
                                            </td>
                                            <td>
                                                <ccl:WTTextBox ID="txtVIN" runat="server" CssClass="txtNormal txtToUppercase" Width="150px" MaxLength="18"
                                                    OnTextChanged="txtVIN_TextChanged" AutoPostBack="true">
                                                </ccl:WTTextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="txtLabelRight">
                                                <span class='MandatoryIndicator'>*</span>
                                                <ccl:WTLabel ID="lblMake" runat="server" Text="Make:"></ccl:WTLabel>
                                            </td>
                                            <td>
                                                <ccl:WTWebDropDown ID="ddlMake" runat="server" Width="120px" OnSelectedIndexChanged="ddMake_SelectedIndexChanged"
                                                    AutoPostBack="true">
                                                </ccl:WTWebDropDown>
                                            </td>
                                            <td class="txtLabelRight">
                                                <span class='MandatoryIndicator'>*</span>
                                                <ccl:WTLabel ID="lblModel" runat="server" Text="Model:"></ccl:WTLabel>
                                            </td>
                                            <td>
                                                <ccl:WTWebDropDown ID="ddlModel" runat="server" Width="120px">
                                                </ccl:WTWebDropDown>
                                            </td>
                                            <td class="txtLabelRight">
                                                <span class='MandatoryIndicator'>*</span>
                                                <ccl:WTLabel ID="lblModelYear" runat="server" Text="Model Year:"></ccl:WTLabel>
                                            </td>
                                            <td>
                                                <ccl:WTTextBox ID="txtModelYear" CssClass="txtNormal" runat="server" Width="150px"
                                                    MaxLength="4">
                                                </ccl:WTTextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="txtLabelRight">
                                                <span class='MandatoryIndicator'>*</span>
                                                <ccl:WTLabel ID="lblTFuelType" runat="server" Text="Fuel Type:"></ccl:WTLabel>
                                            </td>
                                            <td>
                                                <ccl:WTWebDropDown ID="ddlFuelType" runat="server" Width="120px">
                                                </ccl:WTWebDropDown>
                                            </td>
                                            <td class="txtLabelRight">
                                                <ccl:WTLabel ID="lblEngineFamily" runat="server" Text="Engine Family:"></ccl:WTLabel>
                                            </td>
                                            <td>
                                                <ccl:WTTextBox ID="txtEngineFamily" CssClass="txtNormal" runat="server" Width="120px"
                                                     MaxLength="20">
                                                </ccl:WTTextBox>
                                            </td>
                                            <td class="txtLabelRight">
                                                <span class='MandatoryIndicator'>*</span>
                                                <ccl:WTLabel ID="lblEngineYear" runat="server" Text="Engine Year:"></ccl:WTLabel>
                                            </td>
                                            <td>
                                                <ccl:WTTextBox ID="txtEngineYear" CssClass="txtNormal" runat="server" Width="150px"
                                                     MaxLength="4">
                                                </ccl:WTTextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="txtLabelRight">
                                                <%-- <span class='MandatoryIndicator'>*</span>--%>
                                                <ccl:WTLabel ID="lblTruckGVWR" runat="server" Text="Truck GVWR:"></ccl:WTLabel>
                                            </td>
                                            <td>
                                                <ccl:WTWebDropDown ID="ddlTruckGVWR" runat="server" Width="120px">
                                                </ccl:WTWebDropDown>
                                            </td>
                                            <td class="txtLabelRight">
                                                <span class='MandatoryIndicator'>*</span>
                                                <ccl:WTLabel ID="lblOwnerOperator" runat="server" Text="Owner Operator:"></ccl:WTLabel>
                                            </td>
                                            <td>
                                                <ccl:WTWebDropDown ID="ddlOwnerOperator" runat="server" Width="80px">
                                                    <Items>
                                                        <ccl:WTDropDownItem Value="" Text=""></ccl:WTDropDownItem>
                                                        <ccl:WTDropDownItem Value="Y" Text="Yes"></ccl:WTDropDownItem>
                                                        <ccl:WTDropDownItem Value="N" Text="No"></ccl:WTDropDownItem>
                                                    </Items>
                                                </ccl:WTWebDropDown>
                                            </td>
                                            <td class="txtLabelRight">
                                                <span class='MandatoryIndicator'>*</span>
                                                <ccl:WTLabel ID="lblFacilityService" runat="server" Text="Services Container Terminal?:"></ccl:WTLabel>
                                            </td>
                                            <td>
                                                <ccl:WTRadioButton ID="rdoYes" runat="server" Text="Yes" GroupName="Container" />
                                                <ccl:WTRadioButton ID="rdoNo" runat="server" Text="No" GroupName="Container" />
                                                <ccl:WTCheckBox ID="chkContainer" runat="server" Text="Container" Visible="false"
                                                    AutoPostBack="false">
                                                </ccl:WTCheckBox>
                                                &nbsp;&nbsp;
                                                <ccl:WTCheckBox ID="chkOther" runat="server" Text="Other" Visible="false" AutoPostBack="false">
                                                </ccl:WTCheckBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="txtLabelRight">
                                                <ccl:WTLabel ID="lblRFID" runat="server" Text="RFID #:"></ccl:WTLabel>
                                            </td>
                                            <td>
                                                <ccl:WTTextBox ID="txtRFID" runat="server" CssClass="txtNormal" Width="120px" MaxLength="21">
                                                </ccl:WTTextBox>
                                            </td>
                                            <td class="txtLabelRight">
                                                <ccl:WTLabel ID="lblSticker" runat="server" Text="Sticker #:"></ccl:WTLabel>
                                            </td>
                                            <td colspan="3">
                                                <ccl:WTTextBox ID="txtSticker" runat="server" CssClass="txtNormal" Width="120px"
                                                    MaxLength="20">
                                                </ccl:WTTextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="txtLabelRight">
                                                <ccl:WTLabel ID="lblTruckAlias" runat="server" Text="Truck Alias:"></ccl:WTLabel>
                                            </td>
                                            <td>
                                                <ccl:WTTextBox ID="txtTruckAlias" CssClass="txtNormal" runat="server" Width="120px"
                                                     MaxLength="50">
                                                </ccl:WTTextBox>
                                            </td>
                                            <td class="txtLabelRight">
                                                <ccl:WTLabel ID="lblTruckOwner" runat="server" Text="Trucker Owner:"></ccl:WTLabel>
                                            </td>
                                            <td colspan="3">
                                                <ccl:WTTextBox ID="txtTruckOwner" CssClass="txtNormal" runat="server" Width="200px"
                                                    MaxLength="50">
                                                </ccl:WTTextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="right" colspan="6" class="txtLabelRight" height="50px" valign="middle">
                                                <ccl:WTButton ID="btnUpdate" class="txtNormal" runat="server" Text="Submit" Font-Size="11px"
                                                    Width="70px" OnClick="btnUpdate_Click" />
                                                &nbsp;&nbsp;
                                                <ccl:WTButton ID="btnFCancel" Text="Cancel" class="txtNormal" runat="server" CausesValidation="False"
                                                    Font-Size="11px" Width="70px" CommandName="Cancel" />
                                                &nbsp;&nbsp;&nbsp;
                                            </td>
                                        </tr>
                                    </table>
                                </FormTemplate>
                                <FormTableButtonRowStyle HorizontalAlign="Right"></FormTableButtonRowStyle>
                            </EditFormSettings>
                        </MasterTableView>
                    </ccl:WTGrid>



 protected void grdTruckDetails_ItemCommand(object source, GridCommandEventArgs e)
        {

            if (!e.Canceled)
            {

                if (e.CommandName == "Delete")
                {
                    this.PageIndex = grdTruckDetails.CurrentPageIndex;
                    DataRow drTruck = null;
                    GridEditableItem dataitem = e.Item as GridEditableItem;
                    int iRowID = Convert.ToInt32(dataitem.GetDataKeyValue("RowID").ToString());
                    if (iRowID != 0)
                    {
                        drTruck = TruckListData.Select(string.Format("{0}={1}", "RowID", iRowID))[0];
                        drTruck[RG_Truck.IsDeleted] = Flag.YES;
                        drTruck[RG_Truck.IsModified] = Flag.NO;
                        grdTruckDetails.CurrentPageIndex = this.PageIndex;
                      
                        grdTruckDetails.EditIndexes.Clear();                       
                        grdTruckDetails.Rebind();
                    }
                }
              

            }
        }

    protected void grdTruckDetails_ItemDataBound(object sender, GridItemEventArgs e)
        {
            try
            {
                if (e.Item is GridEditFormInsertItem || e.Item is GridDataInsertItem)
                {
                    e.Item.Display = IsInserModeRequired;
                }

                #region "Datarow Bound"
                if (!e.Item.IsInEditMode)
                {
                    List<GridDataItem> lstCollection = new List<GridDataItem>();
                    GridDataItem dataItem = e.Item as GridDataItem;
                    if (dataItem != null && dataItem.Display != false)
                    {
                        WTLabel lblVINValidFlg = (WTLabel)dataItem.FindControl("lblVINValidFlg");
                        WTLabel lblFVIN = (WTLabel)dataItem.FindControl("lblFVIN");
                        WTLabel lblFTruck_Id = (WTLabel)dataItem.FindControl("lblFTruck_Id");
                        WTLabel lblFRowID = (WTLabel)dataItem.FindControl("lblFRowID");
                        WTLabel lblFTruckStatus_Cd = (WTLabel)dataItem.FindControl("lblFTruckStatus_Cd");
                        WTLabel lblTagStatus_Cd = (WTLabel)dataItem.FindControl("lblTagStatus_Cd");

                        DataRow dr = TruckListData.Select(string.Format("RowID={0}", Convert.ToInt32(lblFRowID.Text)))[0];

                        if (dr[RG_Truck.IsDeleted].ToString() == Flag.YES)
                        {
                            dataItem.Display = false;
                            dataItem.Visible = false;
                          }


                        if (lblVINValidFlg.Text == Flag.NO)
                            lblFVIN.Style.Add(HtmlTextWriterStyle.Color, "red");

                        if (lblFTruck_Id.Text != "0")
                        {

                            string sTruckStatus = lblFTruckStatus_Cd.Text;
                            string sRFID = DataSetComponent.ReplaceDBNull(dr[RG_Truck.RFID_Cd], string.Empty);

                            if (sTruckStatus != null && sTruckStatus == TruckStatus.InActive)
                            {
                                Extensions.HideContextMenu(dataItem, RefData.WebFunction.CSRDeactivateTruck);
                                Extensions.HideContextMenu(dataItem, RefData.WebFunction.CSRApproveTruck);
                                Extensions.HideContextMenu(dataItem, RefData.WebFunction.CSRDeactivateTag);
                            }
                            if (sTruckStatus != null && sTruckStatus == TruckStatus.Active)
                            {
                                Extensions.HideContextMenu(dataItem, RefData.WebFunction.CSRReactivateTruck);
                                Extensions.HideContextMenu(dataItem, RefData.WebFunction.CSRApproveTruck);
                            }
                            if (sTruckStatus != null && sTruckStatus == TruckStatus.Pending)
                            {
                                Extensions.HideContextMenu(dataItem, RefData.WebFunction.CSRDeactivateTruck);
                                Extensions.HideContextMenu(dataItem, RefData.WebFunction.CSRReactivateTruck);
                            }
                            if (sRFID == string.Empty)
                                Extensions.HideContextMenu(dataItem, RefData.WebFunction.CSRDeactivateTag);
                            if (lblTagStatus_Cd.Text == Flag.NO)
                            {
                                Extensions.HideContextMenu(dataItem, RefData.WebFunction.CSRDeactivateTag);
                                dataItem[RG_Truck.RFID].ForeColor = System.Drawing.Color.Red;
                            }
                        }
                        else
                        {
                            Extensions.HideContextMenu(dataItem, RefData.WebFunction.CSRDeactivateTruck);
                            Extensions.HideContextMenu(dataItem, RefData.WebFunction.CSRReactivateTruck);
                            Extensions.HideContextMenu(dataItem, RefData.WebFunction.CSRApproveTruck);
                            Extensions.HideContextMenu(dataItem, RefData.WebFunction.CSRDeactivateTag);
                        }
                    }
                }
                #endregion

                #region "Row Edit (or) Add"

                if (e.Item.ItemType == GridItemType.EditFormItem && e.Item.IsInEditMode)
                {
                    GridEditableItem item = (GridEditableItem)e.Item;
                    WTWebDropDown ddlMake = (WTWebDropDown)item.FindControl("ddlMake");
                    WTWebDropDown ddlModel = (WTWebDropDown)item.FindControl("ddlModel");
                    WTWebDropDown ddlFuelType = (WTWebDropDown)item.FindControl("ddlFuelType");
                    WTWebDropDown ddlTruckGVWR = (WTWebDropDown)item.FindControl("ddlTruckGVWR");
                    WTWebDropDown ddlOwnerOperator = (WTWebDropDown)item.FindControl("ddlOwnerOperator");
                    WTWebDropDown ddlState = (WTWebDropDown)item.FindControl("ddlState");
                    WTTextBox txtPlateNbr = (WTTextBox)item.FindControl("txtPlateNbr");
                    WTTextBox txtVIN = (WTTextBox)item.FindControl("txtVIN");
                    WTTextBox txtModelYear = (WTTextBox)item.FindControl("txtModelYear");
                    WTTextBox txtEngineFamily = (WTTextBox)item.FindControl("txtEngineFamily");
                    WTTextBox txtEngineYear = (WTTextBox)item.FindControl("txtEngineYear");
                    WTTextBox txtTruckAlias = (WTTextBox)item.FindControl("txtTruckAlias");
                    WTTextBox txtTruckOwner = (WTTextBox)item.FindControl("txtTruckOwner");
                    WTLabel lblTruckID = (WTLabel)item.FindControl("lblTruckID");
                    WTLabel lblVinValidFlg = (WTLabel)item.FindControl("lblVinValidFlg");
                    WTLabel lblTruckStatus = (WTLabel)item.FindControl("lblTruckStatus");
                    WTLabel lblRowId = (WTLabel)item.FindControl("lblRowId");
                    WTRadioButton rdoYes = (WTRadioButton)item.FindControl("rdoYes");
                    WTRadioButton rdoNo = (WTRadioButton)item.FindControl("rdoNo");
                    WTButton btnUpdate = (WTButton)item.FindControl("btnUpdate");
                    WTTextBox txtRFID = (WTTextBox)item.FindControl("txtRFID");
                    WTTextBox txtSticker = (WTTextBox)item.FindControl("txtSticker");
                    WTLabel lblTagStatus_Cd = (WTLabel)item.FindControl("lblTagStatus_Cd");

                    if (ddlMake != null)
                    {
                        DataTable dtTruckMake = RequestService.GetReferenceDataTable(RG_TruckMake.TableName);
                        LoadDropDown(ddlMake, dtTruckMake, RG_TruckMake.TruckMake_Dsc, RG_TruckMake.TruckMake_Id);
                    }
                    if (ddlFuelType != null)
                    {
                        DataTable dtFuelType = RequestService.GetReferenceDataTable(RG_FuelType.TableName);
                        LoadDropDown(ddlFuelType, dtFuelType, RG_FuelType.FuelType_Dsc, RG_FuelType.Fueltype_Cd);
                    }
                    if (ddlTruckGVWR != null)
                    {
                        DataTable dtTruckGVWR = RequestService.GetReferenceDataTable("TruckGVWR_VW");
                        LoadCombo(ddlTruckGVWR, dtTruckGVWR, RG_TruckGVWR.TruckGVWR, RG_TruckGVWR.TruckGVWR_Id);
                    }

                    if (ddlState != null)
                    {
                        DataTable dtState = RequestService.GetReferenceDataTable(RG_State.TableName);
                        LoadDropDown(ddlState, dtState, RG_State.State_Cd, RG_State.State_Cd);
                    }

                    if (e.Item.ItemIndex >= 0)
                    {
                        int iRowID = Convert.ToInt32(item.GetDataKeyValue("RowID").ToString());
                        DataRow dr = TruckListData.Select(string.Format("{0}={1}", "RowID", iRowID))[0];

                        lblTruckID.Text = DataSetComponent.ReplaceDBNull(dr[RG_Truck.Truck_Id], (long)0).ToString();
                        lblRowId.Text = DataSetComponent.ReplaceDBNull(dr["RowID"], (long)0).ToString();
                        lblVinValidFlg.Text = DataSetComponent.ReplaceDBNull(dr[RG_Truck.VINValid_Flg], string.Empty);
                        lblTruckStatus.Text = DataSetComponent.ReplaceDBNull(dr[RG_Truck.TruckStatus_Cd], string.Empty).ToString();
                        lblTagStatus_Cd.Text = DataSetComponent.ReplaceDBNull(dr[RG_TagStatus.TagStatus_Cd], string.Empty).ToString();
                        if (txtPlateNbr != null)
                            txtPlateNbr.Text = DataSetComponent.ReplaceDBNull(dr[RG_Truck.Plate_Nbr], string.Empty);

                        if (txtVIN != null)
                            txtVIN.Text = DataSetComponent.ReplaceDBNull(dr[RG_Truck.VIN], string.Empty);

                        if (lblVinValidFlg.Text == RefData.Flag.NO)
                            txtVIN.ForeColor = System.Drawing.Color.Red;
                        else
                            txtVIN.ForeColor = System.Drawing.Color.Black;

                        if (txtModelYear != null)
                            txtModelYear.Text = DataSetComponent.ReplaceDBNull(dr[RG_Truck.ModelYear].ToString(), string.Empty).ToString();

                        if (txtEngineFamily != null)
                            txtEngineFamily.Text = DataSetComponent.ReplaceDBNull(dr[RG_Truck.EngineSerial_Num], string.Empty);

                        if (txtEngineYear != null)
                            txtEngineYear.Text = DataSetComponent.ReplaceDBNull(dr[RG_Truck.EngineYear].ToString(), string.Empty).ToString();

                        if (txtTruckAlias != null)
                            txtTruckAlias.Text = DataSetComponent.ReplaceDBNull(dr[RG_Truck.TruckAlias], string.Empty);

                        if (txtTruckOwner != null)
                            txtTruckOwner.Text = DataSetComponent.ReplaceDBNull(dr[RG_Truck.Owner_Name], string.Empty);

                        if (txtRFID != null)
                            txtRFID.Text = DataSetComponent.ReplaceDBNull(dr[RG_Truck.RFID_Cd], string.Empty);

                        if (txtSticker != null)
                            txtSticker.Text = DataSetComponent.ReplaceDBNull(dr[RG_Truck.Sticker], string.Empty);

                        if (lblTagStatus_Cd.Text == RefData.Flag.NO)
                            txtRFID.ForeColor = System.Drawing.Color.Red;
                        else
                            txtRFID.ForeColor = System.Drawing.Color.Black;

                        RadComboBoxItem radItemMake = ddlMake.FindItemByText(dr[RG_Truck.Make].ToString());
                        if (radItemMake != null)
                            radItemMake.Selected = true;

                        if (ddlMake.SelectedValue != null && ddlMake.SelectedValue != string.Empty)
                        {
                            ddlModel.Enabled = true;
                            long lTruckMakeId = Convert.ToInt64(ddlMake.SelectedValue);
                            string sTruckMakeId = string.Format("{0} = {1}", RG_TruckMake.TruckMake_Id, lTruckMakeId);
                            DataTable dtTruckModel = RequestService.GetReferenceDataTable(RG_TruckMakeModel.TableName, sTruckMakeId, false);
                            LoadDropDown(ddlModel, dtTruckModel, RG_TruckMakeModel.TruckModel_Dsc, RG_TruckMakeModel.TruckMakeModel_Id);
                            RadComboBoxItem radItemModel = ddlModel.FindItemByText(dr[RG_Truck.Model].ToString());
                            if (radItemModel != null)
                                radItemModel.Selected = true;
                        }
                        else
                        {
                            ddlModel.Items.Clear();
                            ddlModel.Enabled = false;
                        }

                        RadComboBoxItem radItemFuelType = ddlFuelType.FindItemByText(dr[RG_FuelType.FuelType_Dsc].ToString());
                        if (radItemFuelType != null)
                            radItemFuelType.Selected = true;

                        long lGVWRID = DataSetComponent.ReplaceDBNull(dr[RG_TruckGVWR.TruckGVWR_Id], (long)0);
                        if (lGVWRID != 0)
                        {
                            RadComboBoxItem radItemTruckGVWR = ddlTruckGVWR.FindItemByValue(lGVWRID.ToString());
                            if (radItemTruckGVWR != null)
                                radItemTruckGVWR.Selected = true;
                        }

                        RadComboBoxItem radItemOwnerOperator = ddlOwnerOperator.FindItemByValue(dr[RG_Truck.OwnerOperator_Flg].ToString());
                        if (radItemOwnerOperator != null)
                        {
                            radItemOwnerOperator.Selected = true;
                        }
                        RadComboBoxItem radItemState = ddlState.FindItemByText(dr[RG_Truck.PlateState_Cd].ToString());
                        if (radItemState != null)
                            radItemState.Selected = true;

                        if (DataSetComponent.ReplaceDBNull(dr[RG_Truck.FacilityServicedContainer_Flg], string.Empty) == Flag.YES)
                        {
                            rdoYes.Checked = true;
                        }
                        else
                        {
                            rdoYes.Checked = false;
                            rdoNo.Checked = true;
                        }
                        btnUpdate.Text = "Update";
                    }
                    else if (e.Item.ItemIndex == -1)
                    {
                        GridEditableItem newItem = (GridEditableItem)e.Item;
                        WTLabel lblNewTruckID = (WTLabel)newItem.FindControl("lblTruckID");
                        WTLabel lblNewVinValidFlg = (WTLabel)newItem.FindControl("lblVinValidFlg");
                        WTLabel lblNewTruckStatus = (WTLabel)newItem.FindControl("lblTruckStatus");

                        lblVinValidFlg.Text = string.Empty;
                        lblNewTruckID.Text = "0";
                        lblNewTruckStatus.Text = string.Empty;
                        rdoYes.Checked = true;
                        btnUpdate.Text = "Add";
                    }
                }
                #endregion
            }
            catch (Exception oException)
            {
                RequestService.HandleException(oException);
            }
        }

please find the atatched screen shots.

After delteing the record alse the count has not been updated... bcz at my code itemdatabound event i did only visible false for dataitem.. but as per my requirement at the time of delte img click also i need to upodate footer count..

Regards,
Subbu
Radoslav
Telerik team
 answered on 29 Jan 2013
2 answers
93 views
Hi,

I am using ASP.net Radchart, when i am trying to implement the Stacked Spline Area chart it is showing as Stacked area only.
Can you please suggest me to resolve the issue.

Regards,
Kannan S 
kanna
Top achievements
Rank 1
 answered on 29 Jan 2013
5 answers
257 views

I am trying to rebind my grid once a radwindow has been closed through master page. My grid is in a usercontrol in aspx page. In master page i have :

 function CancelEdit() {
            GetRadWindow().Close();
        }

        function CloseAndRebind() {
            GetRadWindow().BrowserWindow.refreshGrid(); // Call the function in parent page 
            GetRadWindow().close(); // Close the window 
        }

        function refreshGrid() {
                $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("Rebind");
        }

and I have the following javascript in the user conrtrol:

<script type="text/javascript" language="javascript">
    function refreshGrid() {
        $find("<%= RadAjaxManager.GetCurrent(me.Page).ClientID %>").ajaxRequest("Rebind");
    }

</script>

Once I close update the database in radwindow i register a javascript:

 ScriptManager.RegisterStartupScript(Page, Page.GetType(), "mykey", "CloseAndRebind();", True)

I can see my data source changing but the grid doesn't get updated. any suggestions?

Shinu
Top achievements
Rank 2
 answered on 29 Jan 2013
1 answer
104 views
Hi,

I've been looking for a simple way to let a client know that the data is being delivered; I've seen examples for using the RadAjaxLoadingPanel with a RadGrid.  I think generically this probably works, but in my case it doesn't.  I end up getting OutOfMemoryException errors.
If I disable the RadAjaxLoadingPanel, the export to Excel works fine -- and fairly quickly.
Admittedly there is a lot of data to export -- over 72K rows.  Still, I'm not asking the RadAjaxLoadingPanel to do anything special except display while the grid changes.
If I do a paging operation, the control works fine.  It's just on the export that it gives up.

Here's the gist of the code:

<tk:RadAjaxManager ID="ramGridWait" runat="server">
                            <AjaxSettings>
                                <tk:AjaxSetting AjaxControlID="rgGlobalInventorySummary">
                                    <UpdatedControls>
                                        <tk:AjaxUpdatedControl ControlID="rgGlobalInventorySummary" LoadingPanelID="ralpGridWait" />
                                    </UpdatedControls>
                                </tk:AjaxSetting>
                                <tk:AjaxSetting AjaxControlID="rbExport">
                                    <UpdatedControls>
                                        <tk:AjaxUpdatedControl ControlID="rgGlobalInventorySummary" LoadingPanelID="ralpGridWait" />
                                    </UpdatedControls>
                                </tk:AjaxSetting>
                            </AjaxSettings>
                        </tk:RadAjaxManager>
                        <tk:RadAjaxLoadingPanel runat="server" ID="ralpGridWait" InitialDelayTime="3000"
                            Skin="WebBlue" />
                        <tk:RadAjaxPanel ID="RadAjaxPanel1" LoadingPanelID="ralpGridWait" runat="server">
                            <tk:RadGrid ID="rgGlobalInventorySummary" runat="server" OnNeedDataSource="rgGlobalInventorySummary_NeedDataSource"
                                AllowFilteringByColumn="true" EnableEmbeddedSkins="true" BorderStyle="Solid"
                                Skin="WebBlue" Width="100%" AllowPaging="true" PageSize="20" ShowFooter="true"
                                PagerStyle-Position="TopAndBottom">
                                <ExportSettings ExportOnlyData="true" HideStructureColumns="true" IgnorePaging="true" />
                                <ClientSettings Selecting-AllowRowSelect="true">
                                    <Resizing AllowColumnResize="true" EnableRealTimeResize="true" />
                                </ClientSettings>
                                <MasterTableView AutoGenerateColumns="false" Caption="" ShowHeader="true" CommandItemDisplay="TopAndBottom">
                                    <CommandItemSettings ShowAddNewRecordButton="false" ShowExportToExcelButton="true"
                                        ShowExportToPdfButton="false" ShowExportToWordButton="false" />
                                    <Columns>
                                        <tk:GridBoundColumn DataField="Status" HeaderText="Status" HeaderStyle-HorizontalAlign="Center"
                                            HeaderStyle-Width="85px" ItemStyle-HorizontalAlign="Left" AllowFiltering="true"
                                            FilterControlWidth="60%" />
                                         
                                    </Columns>
                                </MasterTableView>
                            </tk:RadGrid>
                        </tk:RadAjaxPanel>

Is there something I'm missing?

Thanks,

Glen
Princy
Top achievements
Rank 2
 answered on 29 Jan 2013
3 answers
513 views
I have a radgrid control with 2 radiobuttonlist.  The user will select the radiobuttonlists for all rows of the radgrid and then hit a submit button.  What I would like to do is loop through each row of the grid and find out which radio button was selected for each of the 2 radiobuttonlist and then read the value of the pid column from that row, then fire a sql update statement to update the database according to the pid and radiobutton selected.  Can someone shed some light on how to do this?  Thanks in advance.

<telerik:RadGrid ID="RgdPub" runat="server"
        AutoGenerateColumns="false" DataSourceID="SqlRgdPub" Skin="Web20" AllowSorting="true">
        <FilterMenu EnableImageSprites="False">
        </FilterMenu>
        <ClientSettings>
            <Selecting CellSelectionMode="None" />
        </ClientSettings>
        <MasterTableView CommandItemDisplay="Top" GridLines="Both" Width="100%" AllowSorting="true" >
                        <CommandItemSettings ShowAddNewRecordButton="false"
                            ShowExportToCsvButton="true" ShowExportToExcelButton="true"
                            ShowExportToPdfButton="false" ShowExportToWordButton="true" />
                        <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column"
                            Visible="True">
                        </RowIndicatorColumn>
                        <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column"
                            Visible="True">
                        </ExpandCollapseColumn>
                        <Columns>
                                <telerik:GridTemplateColumn HeaderText="Is this your publication?" UniqueName="Pub">
                                    <ItemTemplate>
                                    <asp:RadioButtonList ID="RblPub" runat="server" RepeatColumns=2 RepeatDirection="Horizontal">
                                        <asp:ListItem Text="Yes" Value=1></asp:ListItem>
                                        <asp:ListItem Text="No" Value=0></asp:ListItem>
                                    </asp:RadioButtonList>
                                    </ItemTemplate>
                                </telerik:GridTemplateColumn>
                                <telerik:GridTemplateColumn HeaderText="Is this institute supported?" UniqueName="InsPub">
                                    <ItemTemplate>
                                    <asp:RadioButtonList ID="RblInsPub" runat="server" RepeatColumns=2 RepeatDirection="Horizontal">
                                        <asp:ListItem Text="Yes" Value=1></asp:ListItem>
                                        <asp:ListItem Text="No" Value=0></asp:ListItem>
                                    </asp:RadioButtonList>
                                    </ItemTemplate>
                                </telerik:GridTemplateColumn>
                                <telerik:GridBoundColumn UniqueName="lastname" EditFormColumnIndex="0" HeaderText="Last Name"
                                    DataField="lastname">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn UniqueName="firstname" EditFormColumnIndex="0" HeaderText="First Name"
                                    DataField="firstname">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn UniqueName="institution" EditFormColumnIndex="0" HeaderText="Institution"
                                    DataField="institution">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn UniqueName="pid" EditFormColumnIndex="0" HeaderText="PID"
                                    DataField="pid">
                                </telerik:GridBoundColumn>
            </Columns>
            <EditFormSettings>
                <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                </EditColumn>
            </EditFormSettings>
        </MasterTableView>
    </telerik:RadGrid>
Shinu
Top achievements
Rank 2
 answered on 29 Jan 2013
2 answers
269 views
I have read most, if not all, of the posts on this subject, but none of them correct my issue.

I have a grid with frozen columns and, when I use the horizontal scroll bar, scolling to the right does not bring all of the columns into view. If I remove the frozen columns, it works just fine.

  1. All columns have a defined width.
  2. I am using static headers.
  3. I have tried setting the width to a value rather than letting it default to 100%.

The page is defined (in part) as:

<div id="FormWrapper" style="width: 95%; height: 95%; margin: 0px auto">
	<form id="DeviceStatusForm" runat="server">
	<asp:Panel ID="Panel1" runat="server" CssClass="RaisedPanel">
		<div id="ContentDiv" class="Content">
			<div id="ReportGridDiv">
				<telerik:RadGrid ID="ReportGrid" runat="server" AllowPaging="True" AllowSorting="True"
					PagerStyle-AlwaysVisible="true" PageSize="50" GridLines="None" DataSourceID="GridDataSource"
					GroupingEnabled="False" AutoGenerateColumns="False">
					<ClientSettings EnableRowHoverStyle="true">
						<Selecting AllowRowSelect="False" />
						<ClientEvents OnRowContextMenu="ReportGrid_OnRowContextMenu" />
						<Scrolling AllowScroll="True" UseStaticHeaders="True" FrozenColumnsCount="1" ScrollHeight="20em" />
						<Resizing AllowColumnResize="True" AllowResizeToFit="True" EnableRealTimeResize="False"
						ResizeGridOnColumnResize="False" ShowRowIndicatorColumn="False" />
					</ClientSettings>
					<AlternatingItemStyle CssClass="rgCommandRow" />
					<MasterTableView DataSourceID="GridDataSource" DataKeyNames="AssetId,MacId" ClientDataKeyNames="AssetId, MacId, ReportDate, StatusId"
						TableLayout="Fixed" CommandItemDisplay="Top" PageSize="10" HorizontalAlign="NotSet">
						<CommandItemSettings ShowAddNewRecordButton="False"></CommandItemSettings>
					      <PagerStyle AlwaysVisible="True" />
					</MasterTableView>
					<PagerStyle AlwaysVisible="True" />
				</telerik:RadGrid>
			</div>
		  </div>
	</asp:Panel>
	</form>
</div>

The styles used are:
.RaisedPanel
{
	margin-top: 20px;
	margin-bottom: 30px;
	-moz-border-radius: 12px;
	-webkit-border-radius: 12px;
	border-radius: 12px;
	-moz-box-shadow: 4px 4px 14px #000;
	-webkit-box-shadow: 4px 4px 14px #000;
	box-shadow: 4px 4px 14px #000;
	padding-left: 2em;
	padding-bottom: 1em;
	padding-right: 2em;
	padding-top: 1em;
}
div.Content
{
	height: 100%;
	width: 100%;
}

I would appreciate any insights.

Ed
Top achievements
Rank 1
 answered on 28 Jan 2013
6 answers
138 views
I have used your tab control to implement a simple 3 tab appearance.  In the first screenshot the first tab is selected.  Do you notice the weird line above the middle tab?

I've also included screenshots for what happens when the 2nd and 3rd tabs respectively are selected.

What do I need to do to improve the appearance?

Robert
Robert
Top achievements
Rank 1
 answered on 28 Jan 2013
2 answers
119 views
Hi
 How can I access the combobox in the pager in code behind. Please suggest any possible solution
thanks
Savyo
Jayesh Goyani
Top achievements
Rank 2
 answered on 28 Jan 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?