Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
72 views
I had used client-side Expand/Collapse of groups function, is it possible to show header text again in each group ?

because it may be many rows in each group, it is hard to page up/down to look for the header.

 
Kostadin
Telerik team
 answered on 03 Sep 2013
5 answers
533 views
How can I avoid the update of the example "Grid - Attachment Column" that must upload a new file if I want to change for example UploadDate or UploadedBy?
Kostadin
Telerik team
 answered on 03 Sep 2013
5 answers
2.6K+ views
Hi

I am trying to open a radwindow from C# on click of a button. I tried several codes available in the internet to invoke the js defined in the aspx page to open the radwindow but every time I get a js function undefined error. Please someone help me with a full solution.

Thanks in advance.
Ben
Shinu
Top achievements
Rank 2
 answered on 03 Sep 2013
1 answer
322 views

Hello ,All

I am working  Multiple telerik:RadAjaxPanel in every Panel wise

my page design is one Panel and under telerik:RadAjaxPanel and complete Panel tab

another same Panel2 and under telerik:RadAjaxPanel and complete Panel and so on.. different 14 Panel but currently I show only 2 panel

 

When I write my code in telerik:RadAjaxPanel panel and when I submit my data is also check validation and all are working fine, but when bind grid in current panel and I click on edit button fire then different telerik:RadAjaxPanel validation not working because both are different panel and telerik:RadAjaxPanel

So I am setting on AjaxSetting every button click event like save , cancel and grid ..but there are not proper scenario ,because page coding line is very long and every button click event on setting on Ajax Setting

<telerik:AjaxSetting AjaxControlID="btnGrievancesSave">

<UpdatedControls>

<telerik:AjaxUpdatedControl ControlID="RadAjaxPanel1" />

<telerik:AjaxUpdatedControl ControlID="RadAjaxPanel2" />

<telerik:AjaxUpdatedControl ControlID="tblGrievances" />

</UpdatedControls>

</telerik:AjaxSetting>

can you give me proper solution and best way to optimum my page code not write every click event code 

<%@ Page Title="" Language="C#" MasterPageFile="~/DCenter/MasterPage/ClientDetail.Master" AutoEventWireup="true" CodeBehind="WebForm2.aspx.cs" Inherits="DCenter.ClientDetailCenter.WebForm2" %>
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="Content2" ContentPlaceHolderID="AdminContentPlaceHolder" runat="server">
    <link href="../Styles/Site.css" rel="stylesheet" type="text/css" />
    <telerik:RadAjaxManager ID="AM" runat="server" DefaultLoadingPanelID="RALoading">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="grdMainSSNWindows">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="grdMainSSNWindows" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="btnRetrive">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="tblCourtOrder" />
                    <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel1" />
                    <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel2" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="btnGrievancesSave">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel1" />
                    <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel2" />
                    <telerik:AjaxUpdatedControl ControlID="tblGrievances" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="btnNVSave">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel1" />
                    <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel2" />
                    <telerik:AjaxUpdatedControl ControlID="tblNewViolation" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <telerik:RadAjaxLoadingPanel ID="RALoading" runat="server">
    </telerik:RadAjaxLoadingPanel>
    <style type="text/css">
        .maindrc
        {
            width: 98%;
            margin: 15px auto;
            padding: 10px;
            position: relative;
            min-height: 99%;
            background: #f5f4f4;
            padding-bottom: 30px;
        }
 
        .left_menu
        {
            width: 15%;
            height: auto;
            border: 1px solid #b5b5b5;
            border-radius: 5px;
        }
 
        .right_menu
        {
            width: 84%;
            height: auto;
            border: 1px solid #b5b5b5;
            border-radius: 5px;
        }
    </style>
    <script language="javascript" type="text/javascript">
        var ActiveTabIndex = 1;
 
        function ShowPanel(index) {
            var values = document.getElementById("ctl00_AdminContentPlaceHolder_hdnname").value;
 
            ActiveTabIndex = index;
            document.getElementById("ctl00_AdminContentPlaceHolder_hdnPanel").value = ActiveTabIndex;
            var i;
            for (i = 1; i <= 2; i++) {
                document.getElementById("ctl00_AdminContentPlaceHolder_pnl" + i).style.display = (i == index) ? "block" : "none";
            }
 
        }
        function validationFunction(source, args) {
            if (args.Value == "Select Prerequest") {
                args.IsValid = false;
            } else {
                args.IsValid = true;
            }
        }
    </script>
    <div class="maindrc">
        <asp:Panel ID="pnlValidatorSummary" runat="server">
        </asp:Panel>
        <table cellspacing="0" cellpadding="5" width="100%">
            <tr>
                <td class="left_menu" valign="Top">
                    <table cellspacing="0" cellpadding="0" align="center" style="width: 100%">
                        <tr>
                            <td style="text-align: center; font: bold 15px arial; padding-bottom: 5px; padding-top: 5px; background: #c7c7c7; vertical-align: top">Client
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <ul id="css3menu1" class="topmenu">
                                    <li class="topfirst"><a href="#" id="Menu1" onclick="javascript:ShowPanel(1);">
                                        <img src="../Images/personal_info.png" />
                                        New Violation</a></li>
                                    <li class="toplast"><a href="#" id="Menu14" onclick="javascript:ShowPanel(2);">
                                        <img src="../Images/Grievances.png" />Grievances</a></li>
                                </ul>
                            </td>
                        </tr>
                    </table>
                </td>
                <td style="width: 1%"></td>
                <td class="right_menu" style="vertical-align: top;">
                    <table cellspacing="0" cellpadding="0" align="center" width="100%">
                        <tr>
                            <td style="text-align: center; border: 1px solid #eee; padding-bottom: 5px; padding-top: 5px;">
                                <table id="tblCourtOrder" runat="server" align="center" cellspacing="2" cellpadding="2"
                                    style="width: 98%;">
                                    <tr>
                                        <td colspan="7" align="left" class="header_title">Select Client
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="7" align="left">
                                            <div class="hrstyle">
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td valign="top" align="right">
                                            <asp:Label ID="lblName" runat="server" CssClass="labelText" Text="Case # : "></asp:Label>
                                            <span style="color: Red; font-size: 12px; font-weight: bold">*</span>
                                        </td>
                                        <td valign="top" align="left">
                                            <telerik:RadTextBox ID="txtCase" runat="server" MaxLength="14">
                                            </telerik:RadTextBox>
                                        </td>
                                        <td valign="top" align="right">
                                            <asp:Label ID="lblBookingNbr" runat="server" CssClass="labelText" Text="SSN #: "></asp:Label>
                                            <span style="color: Red; font-size: 12px; font-weight: bold">*</span>
                                        </td>
                                        <td valign="top" align="left">
                                            <telerik:RadMaskedTextBox Mask="###-##-####" runat="server" ID="txtSSN" AutoPostBack="true">
                                            </telerik:RadMaskedTextBox>                                         
                                          
                                        </td>
                                        <td valign="top" align="right">
                                            <asp:Label ID="lblRetiveDateofBirth" runat="server" CssClass="labelText" Text="Date Of Birth : "></asp:Label>
                                        </td>
                                        <td valign="top" align="left">
                                            <telerik:RadDatePicker ID="dtRetrivreDateofBirth" runat="server" Width="90px" DateInput-DateFormat="M/dd/yyyy"
                                                Culture="en-US" MinDate="1900-01-01">
                                            </telerik:RadDatePicker>
                                        </td>
                                        <td> 
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width: 15%" valign="top" align="right">
                                            <asp:Label ID="lblLastName" runat="server" CssClass="labelText" Text="Last Name : "></asp:Label>
                                            <span style="color: Red; font-size: 12px; font-weight: bold">*</span>
                                        </td>
                                        <td style="width: 15%" valign="top" align="left">
                                            <telerik:RadTextBox ID="txtLastName" runat="server" MaxLength="100">
                                            </telerik:RadTextBox>
                                            <asp:RegularExpressionValidator ID="revlastname" runat="server" Display="none" ValidationGroup="vsError"
                                                ErrorMessage="Last Name Only Character Words Allow" ControlToValidate="txtLastName"
                                                ValidationExpression="^[a-zA-Z''-'\s]{1,40}$"></asp:RegularExpressionValidator>
                                        </td>
                                        <td style="width: 15%" valign="top" align="right">
                                            <asp:Label ID="lblFirstName" runat="server" CssClass="labelText" Text="First Name : "></asp:Label>
                                            <span style="color: Red; font-size: 12px; font-weight: bold">*</span>
                                        </td>
                                        <td style="width: 20%" valign="top" align="left">
                                            <telerik:RadTextBox ID="txtFirstName" runat="server" MaxLength="100">
                                            </telerik:RadTextBox>
                                            <asp:RegularExpressionValidator ID="revfirstname" runat="server" Display="none" ValidationGroup="vsError"
                                                ErrorMessage="First Name Only Character Words Allow" ControlToValidate="txtFirstName"
                                                ValidationExpression="^[a-zA-Z''-'\s]{1,40}$"></asp:RegularExpressionValidator>
                                        </td>
                                        <td style="width: 12%" valign="top" align="right">
                                            <asp:Label ID="lblMiddleName" runat="server" CssClass="labelText" Text="Middle Name : "></asp:Label>
                                        </td>
                                        <td style="width: 10%" valign="top" align="left">
                                            <telerik:RadTextBox ID="txtMiddleName" runat="server" MaxLength="100">
                                            </telerik:RadTextBox>
                                            <asp:RegularExpressionValidator ID="revmiddlename" runat="server" Display="none"
                                                ValidationGroup="vsError" ErrorMessage="Middle Name Only Character Words Allow"
                                                ControlToValidate="txtMiddleName" ValidationExpression="^[a-zA-Z''-'\s]{1,40}$"></asp:RegularExpressionValidator>
                                        </td>
                                        <td> 
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="7" align="left"> 
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="7" align="right">
                                            <telerik:RadButton ID="btnRetrive" runat="server" Text="Retrive" OnClientClick="BeginLoad();" OnClick="btnRetrive_Click" ValidationGroup="vsError">
                                            </telerik:RadButton>
                                              
                                            <telerik:RadButton ID="btnClearSerach" runat="server" CausesValidation="false" Text="Clear">
                                            </telerik:RadButton>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td style="height: 5px;"></td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Panel ID="pnl1" runat="server" Style="display: none;">
                                    <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="RALoading">
                                        <table id="tblNewViolation" runat="server" align="center" cellspacing="2" cellpadding="2"
                                            style="width: 98%;">
                                            <tr>
                                                <td colspan="2" align="left" class="header_title">New Violation
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="2" align="left">
                                                    <div class="hrstyle">
                                                    </div>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td valign="top" align="right">
                                                    <asp:Label ID="lblPreDefinedNotes" runat="server" CssClass="labelText" Text="Pre Defined Notes : "></asp:Label>
                                                    <span style="color: Red; font-size: 12px; font-weight: bold">*</span>
                                                </td>
                                                <td valign="top" align="left">
                                                    <telerik:RadComboBox ID="cmbPreDefinedNotes" runat="server" AutoPostBack="true" OnSelectedIndexChanged="cmbPreDefinedNotes_SelectedIndexChanged">
                                                    </telerik:RadComboBox>
                                                    <asp:CustomValidator ID="CustomValidator6" ErrorMessage="Please Select Pre Defined Notes"
                                                        SetFocusOnError="true" ControlToValidate="cmbPreDefinedNotes" ValidateEmptyText="true"
                                                        runat="server" ClientValidationFunction="validationFunction" Display="none" ValidationGroup="vsViolation"></asp:CustomValidator>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 15%" valign="top" align="right">
                                                    <asp:Label ID="lblShortDescription" runat="server" CssClass="labelText" Text="New Violation : "></asp:Label>
                                                    <span style="color: Red; font-size: 12px; font-weight: bold">*</span>
                                                </td>
                                                <td valign="top" align="left">
                                                    <telerik:RadTextBox ID="txtShortDescription" TextMode="MultiLine" runat="server" Height="100px" Width="493px">
                                                    </telerik:RadTextBox>
                                                    <asp:RequiredFieldValidator ID="reqShortDescription" runat="server" ValidationGroup="vsViolation"
                                                        SetFocusOnError="true" ErrorMessage="Please Enter New Violation" Display="none" ControlToValidate="txtShortDescription"></asp:RequiredFieldValidator>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td valign="top" align="right">
                                                    <asp:Label ID="lblResolutions" runat="server" CssClass="labelText" Text="Case # : "></asp:Label>
                                                </td>
                                                <td valign="top" align="left">
                                                    <telerik:RadComboBox ID="cmcCase" runat="server" Visible="false">
                                                    </telerik:RadComboBox>
                                                    <telerik:RadTextBox ID="txtNCCase" runat="server" MaxLength="200" Visible="false">
                                                    </telerik:RadTextBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td valign="top" align="right">
                                                    <asp:Label ID="lblPre" runat="server" CssClass="labelText" Text="Services : "></asp:Label>
                                                </td>
                                                <td valign="top" align="left">
                                                    <telerik:RadComboBox ID="cmcServices" runat="server">
                                                    </telerik:RadComboBox>
                                                </td>
                                            </tr>
 
                                            <tr>
                                                <td colspan="2" align="left">
                                                    <div class="hrstyle">
                                                    </div>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="2" align="center">
                                                    <telerik:RadButton ID="btnNVSave" runat="server" Text="Save" ValidationGroup="vsViolation" OnClick="btnNVSave_Click">
                                                    </telerik:RadButton>
                                                    <telerik:RadButton ID="btnNVCancel" runat="server" CausesValidation="false" Text="Cancel" OnClick="btnNVCancel_Click">
                                                    </telerik:RadButton>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="7" align="left">
                                                    <div class="hrstyle">
                                                    </div>
                                                    <asp:ValidationSummary ID="vsViolation" runat="server" ShowSummary="false" ShowMessageBox="true"
                                                        HeaderText="Verify the following fields :" BorderWidth="1" BorderColor="DimGray"
                                                        ValidationGroup="vsViolation" CssClass="errormessage"></asp:ValidationSummary>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="4" align="left">
                                                    <telerik:RadGrid ID="grdViolation" runat="server" AllowPaging="True" AllowSorting="True"
                                                        AutoGenerateColumns="False" AllowAutomaticDeletes="false" AllowAutomaticUpdates="false"
                                                        OnNeedDataSource="grdViolation_NeedDataSource" OnItemCommand="grdViolation_ItemCommand">
                                                        <PagerStyle Mode="NextPrevAndNumeric"></PagerStyle>
                                                        <MasterTableView Width="100%" CommandItemDisplay="None" EditMode="InPlace" DataKeyNames="NewViolationPK">
                                                            <CommandItemSettings ShowAddNewRecordButton="false" />
                                                            <Columns>
                                                                <telerik:GridTemplateColumn HeaderText="CaseNo" ItemStyle-HorizontalAlign="Left" SortExpression="CaseNoFK">
                                                                    <ItemTemplate>
                                                                        <%# Eval("CaseNoFK") %>
                                                                    </ItemTemplate>
                                                                    <ItemStyle HorizontalAlign="Left" />
                                                                </telerik:GridTemplateColumn>
                                                                <telerik:GridTemplateColumn HeaderText="Pre Defined Notes" ItemStyle-HorizontalAlign="Left" SortExpression="PreDefinedNotesFK">
                                                                    <ItemTemplate>
                                                                        <%# Eval("PreDefinedNotesFK") %>
                                                                    </ItemTemplate>
                                                                    <ItemStyle HorizontalAlign="Left" />
                                                                </telerik:GridTemplateColumn>
                                                                <telerik:GridTemplateColumn HeaderText="Services" ItemStyle-HorizontalAlign="Left" SortExpression="ServicesFK">
                                                                    <ItemTemplate>
                                                                        <%# Eval("ServicesFK") %>
                                                                    </ItemTemplate>
                                                                    <ItemStyle HorizontalAlign="Left" />
                                                                </telerik:GridTemplateColumn>
                                                                <telerik:GridTemplateColumn HeaderStyle-HorizontalAlign="Center" HeaderText="Action"
                                                                    UniqueName="editdetail">
                                                                    <ItemTemplate>
                                                                        <asp:LinkButton ID="lnkEdit" runat="server" CommandArgument='<%#Eval("NewViolationPK") %>'
                                                                            CommandName="Edit" Text="Edit"></asp:LinkButton>
                                                                    </ItemTemplate>
                                                                    <HeaderStyle HorizontalAlign="Center" />
                                                                </telerik:GridTemplateColumn>
                                                                <telerik:GridButtonColumn ConfirmText="Delete this Violation?" ConfirmDialogType="RadWindow"
                                                                    ConfirmTitle="Delete" ButtonType="ImageButton" CommandName="Delete" Text="Delete"
                                                                    UniqueName="DeleteColumn">
                                                                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                                                                </telerik:GridButtonColumn>
                                                            </Columns>
                                                            <EditFormSettings>
                                                                <EditColumn Visible="false"></EditColumn>
                                                            </EditFormSettings>
                                                        </MasterTableView>
                                                    </telerik:RadGrid>
                                                </td>
                                            </tr>
                                        </table>
                                    </telerik:RadAjaxPanel>
                                </asp:Panel>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: center; border: 1px solid #eee; padding-bottom: 5px; padding-top: 5px;">
                                <asp:Panel ID="pnl2" runat="server" Style="display: none;">
                                    <telerik:RadAjaxPanel ID="RadAjaxPanel2" runat="server" LoadingPanelID="RALoading">
                                        <table id="tblGrievances" runat="server" align="center" cellspacing="2" cellpadding="2"
                                            style="width: 98%;">
                                            <tr>
                                                <td colspan="2" align="left" class="header_title">Grievances
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="2" align="left">
                                                    <div class="hrstyle">
                                                    </div>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 15%" valign="top" align="right">
                                                    <asp:Label ID="Label40" runat="server" CssClass="labelText" Text="Short Description : "></asp:Label>
                                                    <span style="color: Red; font-size: 12px; font-weight: bold">*</span>
                                                </td>
                                                <td valign="top" align="left">
                                                    <telerik:RadTextBox ID="txtGRShortDesc" runat="server" Width="493px" MaxLength="500">
                                                    </telerik:RadTextBox>
                                                    <asp:Panel ID="Panel2" runat="server" Width="25px">
                                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator13" runat="server" ValidationGroup="vsGrievances" SetFocusOnError="true"
                                                            ErrorMessage="Please Enter Short Description" Display="none" ControlToValidate="txtGRShortDesc"></asp:RequiredFieldValidator>
                                                    </asp:Panel>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td valign="top" align="right">
                                                    <asp:Label ID="lblFullDescription" runat="server" CssClass="labelText" Text="Full Description : "></asp:Label>
                                                </td>
                                                <td valign="top" align="left">
                                                    <telerik:RadTextBox ID="txtFRFullDescription" runat="server" Width="493px" MaxLength="500">
                                                    </telerik:RadTextBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td valign="top" align="right">
                                                    <asp:Label ID="Label41" runat="server" CssClass="labelText" Text="Pre Defined Notes : "></asp:Label>
 
                                                </td>
                                                <td valign="top" align="left">
                                                    <telerik:RadComboBox ID="cmdGRPreDefinedNotes" runat="server">
                                                        <Items>
                                                            <telerik:RadComboBoxItem Text="All" Value="0" Selected="true" />
                                                            <telerik:RadComboBoxItem Text="All Pre Defined Notes" Value="1" />
                                                        </Items>
                                                    </telerik:RadComboBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td valign="top" align="right">
                                                    <asp:Label ID="Label42" runat="server" CssClass="labelText" Text="Resolutions : "></asp:Label>
 
                                                </td>
                                                <td valign="top" align="left">
                                                    <telerik:RadTextBox ID="txtGRResolutions" runat="server" TextMode="MultiLine" Width="310px" Height="100px" MaxLength="500">
                                                    </telerik:RadTextBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="2" align="left">
                                                    <div class="hrstyle">
                                                    </div>
 
                                                    <asp:ValidationSummary ID="vsGrievances" runat="server" ShowSummary="false" ShowMessageBox="true"
                                                        HeaderText="Verify the following fields :" BorderWidth="1" BorderColor="DimGray"
                                                        ValidationGroup="vsGrievances" CssClass="errormessage"></asp:ValidationSummary>
 
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="2" align="center">
                                                    <telerik:RadButton ID="btnGrievancesSave" runat="server" ValidationGroup="vsGrievances" Text="Save" OnClick="btnGrievancesSave_Click">
                                                    </telerik:RadButton>
                                                    <telerik:RadButton ID="btnGrievancesCancel" runat="server" CausesValidation="false" Text="Cancel" OnClick="btnGrievancesCancel_Click">
                                                    </telerik:RadButton>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="2" align="left" style="vertical-align: top;">
 
                                                    <telerik:RadGrid ID="grdGrievances" runat="server" AllowPaging="True" AllowSorting="True"
                                                        AutoGenerateColumns="False" AllowAutomaticDeletes="false" AllowAutomaticUpdates="false"
                                                        OnNeedDataSource="grdGrievances_NeedDataSource" OnItemCommand="grdGrievances_ItemCommand">
                                                        <PagerStyle Mode="NextPrevAndNumeric"></PagerStyle>
                                                        <MasterTableView Width="100%" CommandItemDisplay="None" EditMode="InPlace">
                                                            <CommandItemSettings ShowAddNewRecordButton="false" />
                                                            <Columns>
                                                                <telerik:GridTemplateColumn HeaderText="Short Description" ItemStyle-HorizontalAlign="Left" SortExpression="ShortDescription">
                                                                    <ItemTemplate>
                                                                        <%# Eval("ShortDescription") %>
                                                                    </ItemTemplate>
                                                                    <ItemStyle HorizontalAlign="Left" />
                                                                </telerik:GridTemplateColumn>
                                                                <telerik:GridTemplateColumn HeaderText="Full Description" ItemStyle-HorizontalAlign="Left" SortExpression="FullDescription">
                                                                    <ItemTemplate>
                                                                        <%# Eval("FullDescription") %>
                                                                    </ItemTemplate>
                                                                    <ItemStyle HorizontalAlign="Left" />
                                                                </telerik:GridTemplateColumn>
                                                                <telerik:GridTemplateColumn HeaderText="Resolutions" ItemStyle-HorizontalAlign="Left" SortExpression="Resolutions">
                                                                    <ItemTemplate>
                                                                        <%# Eval("Resolutions") %>
                                                                    </ItemTemplate>
                                                                    <ItemStyle HorizontalAlign="Left" />
                                                                </telerik:GridTemplateColumn>
                                                                <telerik:GridTemplateColumn HeaderStyle-HorizontalAlign="Center" HeaderText="Action"
                                                                    UniqueName="editdetail">
                                                                    <ItemTemplate>
                                                                        <asp:LinkButton ID="lnkEdit" runat="server" CommandArgument='<%#Eval("DRCGrievancesPK") %>'
                                                                            CommandName="Edit" Text="Edit"></asp:LinkButton>
                                                                    </ItemTemplate>
                                                                    <HeaderStyle HorizontalAlign="Center" />
                                                                </telerik:GridTemplateColumn>
                                                                <telerik:GridButtonColumn ConfirmText="Delete this Grievances?" ConfirmDialogType="RadWindow"
                                                                    ConfirmTitle="Delete" ButtonType="ImageButton" CommandName="Delete" Text="Delete"
                                                                    UniqueName="DeleteColumn">
                                                                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                                                                </telerik:GridButtonColumn>
                                                            </Columns>
                                                            <EditFormSettings>
                                                                <EditColumn Visible="false"></EditColumn>
                                                            </EditFormSettings>
                                                        </MasterTableView>
                                                    </telerik:RadGrid>
                                                </td>
                                            </tr>
                                        </table>
                                    </telerik:RadAjaxPanel>
                                </asp:Panel>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="7" align="center">
                                <asp:Label ID="lblCourtMsg" runat="server" Visible="false" ForeColor="Red" Font-Size="10pt"></asp:Label>
                                <asp:HiddenField ID="hdnNameFK" Value="0" runat="server" />
                            </td>
                        </tr>
                    </table>
                </td>
                <asp:HiddenField ID="hdnname" Value="0" runat="server" />
                <asp:HiddenField ID="hdnPanel" runat="server" Value="1" />
            </tr>
        </table>
 
    </div>
</asp:Content>
Angel Petrov
Telerik team
 answered on 03 Sep 2013
1 answer
68 views
Hi Guys, 
  I am creating a report using Telerik Reports. One of the parameters for my report is a DateRange.
  I thought on using RadSlider as the datasource for this parameter.

  The visual problem I have, is that I would like to display two rows of categories, Months and Years, like in the attachment.
   Does RadSlider provide this functionality? Or what would you recommend me to do??

Thanks!
Slav
Telerik team
 answered on 03 Sep 2013
1 answer
107 views
The attached chart has the graph and what looks like a cross tab below.

Is there anyway to access the cross tab data only and export that to excel?

Without the color indicator, just the text of the cross tab.
Pavel R. Pavlov
Telerik team
 answered on 03 Sep 2013
7 answers
219 views
Randomly we are having issues with the all RadGrids inside a RadSplitter becoming invisible to the user.Each of the grids are inside a RadPane. 
We have added the suggested resolution for a similar bug as below on the onClientLoaded event. Any suggestions?

sender.get_element().style.visibility = 'inherit';
Kostadin
Telerik team
 answered on 03 Sep 2013
1 answer
95 views
Hi, i was wondering if there was any chance that the rating's items "RadRatingItem" will be enhanced to have similar functionality as the combo box item in terms of the "Attributes" component?

I have found it extremely useful on much of the detailed work i use the combo box for and just recently starting using the rating control. It would be very beneficial if the rating items had this same functionality.
Slav
Telerik team
 answered on 03 Sep 2013
1 answer
193 views
Hi,

I am having an issue with the GridClientSelectColumn when my webiste is running in IE9 compatibility mode.
The first row is not getting highlighted. Also if I check a row individually and then do a checkall, if the row is type (Item vs AlternatingItem) that row also does not get highlighted.

I have attached some screenshots showing the issue.
Let me know what I can do to fix this.
Kostadin
Telerik team
 answered on 03 Sep 2013
1 answer
159 views
 I have critical issue. There are two rad grids on my page. In the left grid templates are shown with add button.
When we hid add that template will shown in the right grid detail Table. But I am unable to rebind main grid ass well as detail table.
When I try
  var tableView = $find("<%= grdRecordingFee2.ClientID %>").get_masterTableView();
    tableView.fireCommand("RebindGrid");

then detail table does not shown even I have written expand detail table code.

 Please send me any solution.

Code Is below:-

<telerik:AjaxSetting AjaxControlID="grdVwOrderItem">

<UpdatedControls>

<telerik:AjaxUpdatedControl ControlID="grdVwOrderItem" LoadingPanelID="RadAjaxLoadingPanel1">

</telerik:AjaxUpdatedControl>

</UpdatedControls>

</telerik:AjaxSetting>

<telerik:AjaxSetting AjaxControlID="ddlStates">

<UpdatedControls>

<telerik:AjaxUpdatedControl ControlID="grdTemplates" LoadingPanelID="RadAjaxLoadingPanel1">

</telerik:AjaxUpdatedControl>

</UpdatedControls>

</telerik:AjaxSetting>


<telerik:RadGrid ID="grdVwOrderItem" runat="server" AllowPaging="False" AllowSorting="False"

AllowMultiRowSelection="false" AutoGenerateColumns="False" GridLines="None" GroupingEnabled="False"

ShowGroupPanel="false" ShowHeader="true" Width="650px">

<MasterTableView DataKeyNames="OrderPropertyID" ExpandCollapseColumn-Visible="false"

CommandItemDisplay="None" Font-Bold="false" Font-Italic="False" Font-Overline="False"

Font-Strikeout="False" BorderColor="White" Font-Underline="False" ExpandCollapseColumn-Display="false"

ExpandCollapseColumn-Created="false" Height="0px" ShowHeader="true">

<ExpandCollapseColumn Display="false">

</ExpandCollapseColumn>

<CommandItemSettings ShowAddNewRecordButton="false" />

<Columns>

<telerik:GridBoundColumn DataField="OrderPropertyID" Display="False" HeaderText=""

ReadOnly="True" UniqueName="OrderPropertyID" />

<telerik:GridBoundColumn DataField="ReferenceID" HeaderStyle-CssClass="rgHeader_8"

HeaderText="Reference #" ReadOnly="True" UniqueName="ReferenceID" />

<telerik:GridBoundColumn DataField="Address" HeaderStyle-CssClass="rgHeader_8" HeaderText="Site Address"

ReadOnly="True" UniqueName="Address" />

<%-- <telerik:GridBoundColumn DataField="UserNotes" HeaderStyle-CssClass="rgHeader_8" HeaderText="Notes" ReadOnly="True" UniqueName="UserNotes" />--%>

<telerik:GridTemplateColumn HeaderText="Notes" HeaderStyle-CssClass="rgHeader_8"

ReadOnly="True" UniqueName="UserNotes">

<ItemTemplate>

<asp:Label ID="lblUserNotes" runat="server" Text='<%#Eval("SubUserNotes") %>' ToolTip='<%#Eval("UserNotes")%>' />

</ItemTemplate>

</telerik:GridTemplateColumn>

</Columns>

<DetailTables>

<telerik:GridTableView DataKeyNames="OrderTemplateID" Name="orderTemplete" HorizontalAlign="Center"

CssClass="innertable1" ShowHeader="false" ExpandCollapseColumn-Visible="false">

<ExpandCollapseColumn Visible="False">

</ExpandCollapseColumn>

<Columns>

<telerik:GridTemplateColumn>

<ItemTemplate>

<div class="main_table_7">

<table style="width: 100%">

<tr>

<td width="470">

<asp:Label ID="lbl" Text='<%#Eval("OrderTemplateName") %>' runat="server" />

</td>

<td>

<asp:LinkButton CommandName="Update" CommandArgument='<%#Eval("OrderTemplateID") %>'

CausesValidation="false" Text="Edit" ID="LinkButton1" runat="server"></asp:LinkButton>

</td>

<td>

<asp:LinkButton CausesValidation="false" CommandName="PrintOrderTemplate" CommandArgument='<%#Eval("OrderTemplateID") %>'

CssClass='<%# GetCssClass(DataBinder.GetPropertyValue(Container.DataItem, "IsPrinted")) %>'

Text="Print" ID="LinkButton2" runat="server"></asp:LinkButton>

</td>

<td>

<asp:LinkButton CausesValidation="false" Text="Remove" ID="LinkButton3" runat="server"></asp:LinkButton>

</td>

</tr>

<tr>

<td colspan="5">

<table style="width: 100%">

<asp:Repeater ID="RepDocs" runat="server" DataSource='<%# GetValue(DataBinder.GetPropertyValue(Container.DataItem, "OrderTemplateID")) %>'>

<ItemTemplate>

<tr>

<td width="490">

<asp:Label ID="Label5" runat="server" Text='<%# Eval("DocumentName") %>' />

</td>

<td>

</td>

<td>

<asp:LinkButton CausesValidation="false" Text="Print" CommandName="PrintOrderDocument" CommandArgument='<%#Eval("OrderDocumentID").ToString()+";"+Eval("OrderTemplateID").ToString() %>' CssClass='<%# GetCssClass(DataBinder.GetPropertyValue(Container.DataItem, "IsPrinted")) %>'

ID="LinkButton2" runat="server"></asp:LinkButton>

</td>

<td>

<asp:LinkButton CausesValidation="false" Text="Remove" ID="LinkButton3" runat="server"></asp:LinkButton>

</td>

</tr>

</ItemTemplate>

</asp:Repeater>

</table>

</td>

</tr>

</table>

</div>

<div style="height: 5px;">

</div>

<div id="Container" runat="server">

</div>

</ItemTemplate>

</telerik:GridTemplateColumn>

</Columns>

<AlternatingItemStyle BackColor="White" Font-Bold="false" Font-Italic="False" Font-Overline="False"

BorderColor="White" Font-Strikeout="False" Font-Underline="False" Wrap="True" />

</telerik:GridTableView>

</DetailTables>

<HeaderStyle CssClass="color1" />

<%-- <ItemStyle Font-Bold="false" Font-Italic="False" Font-Overline="False" HorizontalAlign="Center" Font-Strikeout="False" BorderColor="White"

Font-Underline="false" Wrap="True" />--%>

<AlternatingItemStyle BackColor="White" Font-Bold="false" Font-Italic="False" Font-Overline="False"

BorderColor="White" Font-Strikeout="False" Font-Underline="False" Wrap="True" />

</MasterTableView>

<%-- <ClientSettings Selecting-AllowRowSelect="true" EnablePostBackOnRowClick="true">--%>

<ClientSettings>

</ClientSettings>

</telerik:RadGrid>

VB.Net Code to bind Grid

Protected Sub grdVwOrderItem_ItemCommand(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles grdVwOrderItem.ItemCommand

If TypeOf e.Item Is GridDataItem Then

Dim dataItem As GridDataItem = e.Item

If e.CommandName = "PrintOrderTemplate" Then

Dim OrderTemplateID = e.CommandArgument.ToString()

Dim s As String = GetPdfDocuments(OrderTemplateID, 0)

DetailTable = DirectCast(e.Item.OwnerTableView, GridTableView)

'DetailTable.DataSource = GetTemplateDocumentDataByOrderTemplateID(OrderTemplateID)

'DetailTable.DataBind()

ScriptManager.RegisterStartupScript(Page, Me.GetType(), "JsStatus", "PrintAll(" + OrderTemplateID + ",false);", True)

DetailTable.DataBind()

End If

If e.CommandName = "PrintOrderDocument" Then

Dim OrderTemplateID = e.CommandArgument.ToString()

Dim s As String = GetPdfDocuments(OrderTemplateID, 0)

DetailTable = DirectCast(e.Item.OwnerTableView, GridTableView)

'DetailTable.DataSource = GetTemplateDocumentDataByOrderTemplateID(OrderTemplateID)

'DetailTable.DataBind()

ScriptManager.RegisterStartupScript(Page, Me.GetType(), "JsStatus", "PrintAll(" + OrderTemplateID + ",false);", True)

DetailTable.DataBind()

End If

End If

If e.CommandName = "Update" Then

'Here We have OrderTemplateID

Dim OrderTemplateID = e.CommandArgument

Dim div = New System.Web.UI.HtmlControls.HtmlGenericControl("div")

div = e.Item.FindControl("Container")

Dim uc As UserControl = DirectCast(Page.LoadControl("../Controls/ucDocEngine.ascx"), UserControl)

div.Controls.Add(uc)

End If

If e.CommandName = "Edit" Then

End If

End Sub

Public Function GetValue(ByVal OrderTemplateID As String) As Object

Return GetTemplateDocumentDataByOrderTemplateID(OrderTemplateID)

End Function

Thanks & Regards
Jaspinder

Angel Petrov
Telerik team
 answered on 03 Sep 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?