Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
261 views
So I've been Googling this and have found various articles pertaining to it, but none of the solutions seem to work. The screen I'm working on has a grid view for vehicle listings. When a listing is edited, the user can edit the Vehicle Type, Manufacturer & Model.

When a user selects Vehicle Type, the Manufacturer DropDownList will rebind, when a user selects a Manufacturer, the Model DropDownList will rebind. Unfortunately, I keep getting this error: 'DropDownList2' has a SelectedValue which is invalid because it does not exist in the list of items.

Maybe I have the binding order mixed up. Here is my code:

<telerik:RadGrid ID="radVehicleListingGrid" runat="server" AllowAutomaticDeletes="True" AllowAutomaticUpdates="True" CssClass="AdminGridView" DataSourceID="sdsVehicleListings" GridLines="None" Skin="">
    <AlternatingItemStyle CssClass="AltRow" />
    <MasterTableView AutoGenerateColumns="False" DataSourceID="sdsVehicleListings" EditMode="PopUp" DataKeyNames="ListingID">
        <EditFormSettings CaptionDataField="ListingID" CaptionFormatString="Edit Note" EditColumn-CancelImageUrl="/Images/System-Icons/SysIco-Close.png" EditColumn-UpdateText="Save Changes" EditFormType="Template" FormCaptionStyle-CssClass="AdminEditFormCaption" FormMainTableStyle-CssClass="AdminEditFormMainTable" FormStyle-CssClass="AdminEditForm" PopUpSettings-Modal="true" PopUpSettings-Width="650px">
            <EditColumn UpdateText="Save Changes" CancelImageUrl="/Images/System-Icons/SysIco-Close.png">
            </EditColumn>
            <FormStyle CssClass="AdminEditForm"></FormStyle>
            <FormMainTableStyle CssClass="AdminEditFormMainTable"></FormMainTableStyle>
            <FormCaptionStyle CssClass="AdminEditFormCaption"></FormCaptionStyle>
            <FormTemplate>
                <asp:Panel ID="pnlAdminEditForm" runat="server" DefaultButton="btnSaveListingChanges">
                    <table border="0" cellpadding="0" cellspacing="0" class="AdminEditFormMainTable" rules="rows" style="table-layout: auto; empty-cells: show;">
                        <tbody>
                            <tr class="Row">
                                <td width="125px">
                                    Vehicle Type:
                                </td>
                                <td>
                                    <asp:DropDownList ID="DropDownList3" runat="server" AppendDataBoundItems="True" SelectedValue='<%# Bind("VehicleTypeID") %>' DataSourceID="sdsEditVehicleTypes" DataTextField="VehicleType" DataValueField="VehicleTypeiD" OnSelectedIndexChanged="EditVehicleType_SelectedIndexChange" AutoPostBack="True">
                                        <asp:ListItem Value="0">Select a vehicle type...</asp:ListItem>
                                    </asp:DropDownList>
                                     <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="DropDownList3" ErrorMessage="Please select a vehicle type."></asp:RequiredFieldValidator>
                                    <asp:ValidatorCalloutExtender ID="RequiredFieldValidator4_ValidatorCalloutExtender" runat="server" Enabled="True" TargetControlID="RequiredFieldValidator4">
                                    </asp:ValidatorCalloutExtender>
                                </td>
                            </tr>
                            <tr class="AltRow">
                                <td>
                                    Year:
                                </td>
                                <td>
                                    <asp:TextBox ID="txtEditVehicleYear" runat="server" Text='<%# Bind("VehicleYear") %>' ValidationGroup="EditListing"></asp:TextBox>
                                </td>
                            </tr>
                            <tr class="Row">
                                <td width="125px">
                                    Manufacturer:
                                </td>
                                <td>
                                    <asp:DropDownList ID="DropDownList2" runat="server" AppendDataBoundItems="True" SelectedValue='<%# Bind("ManufacturerID") %>' DataSourceID="sdsEditManufacturers" DataTextField="Manufacturer" DataValueField="ManufacturerID" OnDataBinding="EditManufacturer_Databinding" OnDataBound="EditManufacturer_DataBound" OnSelectedIndexChanged="EditManufacturer_SelectedIndexChange" AutoPostBack="True" Visible="False">
                                        <asp:ListItem Value="0">Select a manufacturer...</asp:ListItem>
                                    </asp:DropDownList>
                                     <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="DropDownList2" ErrorMessage="Please select a manufacturer."></asp:RequiredFieldValidator>
                                    <asp:ValidatorCalloutExtender ID="RequiredFieldValidator3_ValidatorCalloutExtender" runat="server" Enabled="True" TargetControlID="RequiredFieldValidator3">
                                    </asp:ValidatorCalloutExtender>
                                </td>
                            </tr>
                            <tr class="AltRow">
                                <td>
                                    Model:
                                </td>
                                <td>
                                    <asp:DropDownList ID="DropDownList1" runat="server" AppendDataBoundItems="True" SelectedValue='<%# Bind("ModelID") %>' DataSourceID="sdsEditModels" DataTextField="Model" DataValueField="ModelID" OnDataBinding="EditModel_DataBinding" OnDataBound="EditModel_DataBound">
                                        <asp:ListItem Value="0">Select a model...</asp:ListItem>
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr class="Row">
                                <td>
                                    Public Price:
                                </td>
                                <td>
                                    <asp:TextBox ID="txtEditPublicPrice" runat="server" Text='<%# Bind("PublicPrice", "{0:f2}") %>' ValidationGroup="EditListing"></asp:TextBox>
                                     <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtEditPublicPrice" Display="None" ErrorMessage="Please enter a valid decimal amount with no extra symbols." ValidationGroup="EditListing" ValidationExpression="[0-9]+(\.[0-9][0-9]?)?"></asp:RegularExpressionValidator>
                                    <asp:ValidatorCalloutExtender ID="RegularExpressionValidator1_ValidatorCalloutExtender" runat="server" Enabled="True" TargetControlID="RegularExpressionValidator1">
                                    </asp:ValidatorCalloutExtender>
                                </td>
                            </tr>
                            <tr class="AltRow">
                                <td width="125px">
                                    Dealer Price:
                                </td>
                                <td>
                                    <asp:TextBox ID="txtEditDealerPrice" runat="server" Text='<%# Bind("DealerPrice", "{0:f2}") %>' ValidationGroup="EditListing"></asp:TextBox>
                                     <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtEditDealerPrice" Display="None" ErrorMessage="Please enter a valid decimal amount with no extra symbols." ValidationGroup="EditListing" ValidationExpression="[0-9]+(\.[0-9][0-9]?)?"></asp:RegularExpressionValidator>
                                    <asp:ValidatorCalloutExtender ID="RegularExpressionValidator2_ValidatorCalloutExtender" runat="server" Enabled="True" TargetControlID="RegularExpressionValidator2">
                                    </asp:ValidatorCalloutExtender>
                                </td>
                            </tr>
                            <tr class="Row">
                                <td>
                                    Show Listing:
                                </td>
                                <td>
                                    <asp:CheckBox ID="chkEditPublicListing" runat="server" Checked='<%# Bind("PublicListing") %>' ValidationGroup="EditListing" />
                                </td>
                            </tr>
                            <tr class="AltRow">
                                <td width="125px">
                                    Description:
                                </td>
                                <td>
                                    <asp:TextBox ID="txtEditDescription" runat="server" Text='<%# Bind("Description") %>' Rows="5" TextMode="MultiLine" Width="400px" ValidationGroup="EditListing"></asp:TextBox>
                                </td>
                            </tr>
                            <tr class="Row">
                                <td colspan="2">
                                    <asp:LinkButton ID="btnSaveListingChanges" runat="server" CommandArgument='<%# Bind("ListingID") %>' CommandName="Update" CssClass="SaveLinkButton" ValidationGroup="EditNoteDate">Save Changes</asp:LinkButton> <asp:LinkButton ID="btnCancelEditClinicDate" runat="server" CausesValidation="false" CommandName="Cancel" CssClass="CancelLinkButton">Cancel</asp:LinkButton>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </asp:Panel>
            </FormTemplate>
            <PopUpSettings Modal="True" Width="650px"></PopUpSettings>
        </EditFormSettings>
        <Columns>
            <telerik:GridBoundColumn DataField="VehicleType" HeaderText="Vehicle Type" SortExpression="VehicleType" UniqueName="VehicleType">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="VehicleYear" HeaderText="Year" SortExpression="Year" UniqueName="VehicleYear">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="Manufacturer" HeaderText="Manufacturer" SortExpression="Manufacturer" UniqueName="Manufacturer">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="Model" HeaderText="Model" SortExpression="Model" UniqueName="Model">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="PublicPrice" DataType="System.Decimal" HeaderText="Public Price" SortExpression="PublicPrice" UniqueName="PublicPrice" DataFormatString="{0:c}">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="DealerPrice" DataType="System.Decimal" HeaderText="Dealer Price" SortExpression="DealerPrice" UniqueName="DealerPrice" DataFormatString="{0:c}">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="PublicListing" HeaderText="Listed?" UniqueName="PublicListing" DataFormatString="<img src='/images/system-icons/tf/{0}.png' />" ItemStyle-HorizontalAlign="Center">
                <ItemStyle HorizontalAlign="Center"></ItemStyle>
            </telerik:GridBoundColumn>
            <telerik:GridTemplateColumn UniqueName="TemplateColumn">
                <ItemTemplate>
                    <asp:LinkButton ID="btnEditListing" runat="server" CausesValidation="false" CommandName="Edit" CssClass="EditLinkButton" Text="Edit"></asp:LinkButton>
                    <asp:HyperLink ID="lnkEditPhotos" CssClass="ImageLinkButton" NavigateUrl='<%# Eval("ListingID", "photos?lid={0}") %>' runat="server">Photos</asp:HyperLink>
                    <asp:HyperLink ID="lnkEditSpecs" CssClass="SpecLinkButton" NavigateUrl='<%# Eval("ListingID", "specs?lid={0}") %>' runat="server">Specs</asp:HyperLink>
                    <asp:LinkButton ID="btnRemoveListing" runat="server" CausesValidation="false" CommandArgument='<%# Eval("ListingID") %>' CommandName="Delete" CssClass="DeleteLinkButton" OnClientClick="javascript:return confirm('Are you sure you want to remove this this listing?');" Text="Remove"></asp:LinkButton>
                </ItemTemplate>
                <ItemStyle HorizontalAlign="Right" />
            </telerik:GridTemplateColumn>
        </Columns>
        <NoRecordsTemplate>
            You currently have no listings in the system.</NoRecordsTemplate>
    </MasterTableView><HeaderStyle CssClass="Header" />
    <ItemStyle CssClass="Row" />
</telerik:RadGrid>
 
<asp:SqlDataSource ID="sdsEditVehicleTypes" runat="server" ConnectionString="<%$ ConnectionStrings:SqlConnection %>" SelectCommand="SELECT * FROM [Vehicle Types] ORDER BY [VehicleType]"></asp:SqlDataSource>
 
<asp:SqlDataSource ID="sdsEditManufacturers" runat="server" ConnectionString="<%$ ConnectionStrings:SqlConnection %>" SelectCommand="SELECT * FROM [Manufacturers] WHERE ([VehicleTypeID] = @VehicleTypeID) ORDER BY [Manufacturer]">
    <SelectParameters>
        <asp:Parameter Name="VehicleTypeID" Type="Int32" />
    </SelectParameters>
</asp:SqlDataSource>
 
<asp:SqlDataSource ID="sdsEditModels" runat="server" ConnectionString="<%$ ConnectionStrings:SqlConnection %>" SelectCommand="SELECT * FROM [Models] WHERE ([Model] = @Model) ORDER BY [Model]">
    <SelectParameters>
        <asp:Parameter Name="Model" Type="String" />
    </SelectParameters>
</asp:SqlDataSource>
 
<asp:SqlDataSource ID="sdsVehicleListings" runat="server" ConnectionString="<%$ ConnectionStrings:SqlConnection %>" SelectCommand="SELECT * FROM [Detailed Vehicle Listings] WHERE ([DealerID] = @DealerID) AND ([Active] = 1) ORDER BY [DateTimeAdded]" DeleteCommand="UPDATE Listings SET Active = 0 WHERE (ListingID = @ListingID)" UpdateCommand="UPDATE Listings SET PublicListing = @PublicListing, VehicleTypeID = @VehicleTypeID, VehicleYear = @VehicleYear, ManufacturerID = @ManufacturerID, ModelID = @ModelID, Description = @Description, PublicPrice = @PublicPrice, DealerPrice = @DealerPrice WHERE ListingID = @ListingID">
    <DeleteParameters>
        <asp:Parameter Name="ListingID" Type="Int32" />
    </DeleteParameters>
    <SelectParameters>
        <asp:SessionParameter Name="DealerID" SessionField="DealerID" Type="Int32" />
    </SelectParameters>
    <UpdateParameters>
        <asp:Parameter Name="ListingID" Type="Int32" />
        <asp:Parameter Name="VehicleTypeID" Type="Int32" />
        <asp:Parameter Name="VehicleYear" Type="String" />
        <asp:Parameter Name="ManufacturerID" Type="Int32" />
        <asp:Parameter Name="ModelID" Type="Int32" />
        <asp:Parameter Name="Description" Type="String" />
        <asp:Parameter Name="PublicPrice" Type="Decimal" />
        <asp:Parameter Name="DealerPrice" Type="Decimal" />
        <asp:Parameter Name="PublicListing" Type="Boolean" />
    </UpdateParameters>
</asp:SqlDataSource>

Protected Sub radVehicleListingGrid_ItemDataBound(sender As Object, e As Telerik.Web.UI.GridItemEventArgs) Handles radVehicleListingGrid.ItemDataBound
        If (TypeOf e.Item Is GridEditableItem AndAlso e.Item.IsInEditMode) Then
            Dim item As GridEditableItem = e.Item
            'access/modify the edit item template settings here
            Dim ddlEditVehicleTypes As DropDownList = item.FindControl("DropDownList3")
            Dim ddlEditManufacturers As DropDownList = item.FindControl("DropDownList2")
            Dim ddlEditModels As DropDownList = item.FindControl("DropDownList1")
 
            sdsEditManufacturers.SelectParameters("VehicleTypeID").DefaultValue = ddlEditVehicleTypes.SelectedValue
            sdsEditModels.SelectParameters("ManufacturerID").DefaultValue = ddlEditManufacturers.SelectedValue
 
            sdsEditManufacturers.DataBind()
            sdsEditModels.DataBind()
 
          
        ElseIf (TypeOf e.Item Is GridDataItem AndAlso Not e.Item.IsInEditMode AndAlso Page.IsPostBack) Then
           
        End If
    End Sub


Any suggestions at all?
Kostadin
Telerik team
 answered on 17 Sep 2012
4 answers
154 views
any ideas on how to accomplish something like this?

I could create a series of icons 1-100 but that would be kinda crazy.

Thanks, Marty
moegal
Top achievements
Rank 1
 answered on 17 Sep 2012
7 answers
570 views
Hi,

RadNumericTextBox controls contains DecimalSeparator and GroupSeparator properties in NumberFormateSettings collection. But these properties are not available in RadGrid's GridNumericColumn. Unfortunately GridNumericColumn's DataFormatString property also not working correctly. How can I achieve these properties behaviour in GridNumericColumn? (Even I'm ready to develop CustomRadGrid control also.)
Kavitha
Top achievements
Rank 1
 answered on 17 Sep 2012
1 answer
77 views
HI Friends,
Can some one suggest me scroll graph example in telerik like below 
http://myinflightsales.com/Demo.aspx

Thanks,
Shakti
Shakti SIngh Dulawat
Top achievements
Rank 1
 answered on 17 Sep 2012
2 answers
75 views
Hi

I recently purchased RadControls for Asp.net ajax, and installed it on my machine. I use VS2005 and VS 2008, with .NET Framework 2.0 and 3.5 respectively. I added a RadScheduler control to one of the usercontrols in my project and added a script manager on to the control. After I run the page, I get a Sys.Application is null or not an object error, followed by many other javascript errors. I am unable to use Radcheduler's navigation events. I am not sure if its beacuse to this. please reply.
Kalina
Telerik team
 answered on 17 Sep 2012
4 answers
126 views
Is it correct that the AutoCompletebox loads the entire data, then filters it?  I would have thought that it would use a parameterized query to limit the loading. The scenario I would use this for has several thousand rows ( and always increasing).  Not sure which would be worse, making the page initially wait while everything loads, or repeated hits on the database as the user types.

Does the loaded data end up in Viewstate?  The apps Viewstate is already getting really huge.

Thanks
Ivana
Telerik team
 answered on 17 Sep 2012
3 answers
73 views
Thank you in advance...

I am working on a project in which I would like to utilize RadDocks to create a user customizable environment.  The host website is a Sharepoint site that consists of MOSS host pages that contain numerous User controls.

I was wondering if the RadDock controls can be used in the MOSS host pages to contain WebParts?

Secondly... is it possible to have nested RadDocks? 

i.e.

        MOSS Host Pages
            - RadDocks (containers for multiple User Controls on host page)
                - User Control
                    - RadDocks (container for multiple asp.net controls)
Slav
Telerik team
 answered on 17 Sep 2012
0 answers
43 views
I have a forgot password form page. in this page i am asking user to enter his mail id. and after that based on his mail id i need to display his security question  as a next field in the same page.  after answering that question he can create his new password. how to read that mail from text box and based on that how to get his security question from database.

 if you have a solution please tell me

thank you sir
Adari
Top achievements
Rank 1
 asked on 17 Sep 2012
1 answer
131 views
Dear Telerik

Please could you advise if there is a workaround for my scenario, which is causing inconsistent validation behaviour in the radCaptcha control.

I have an ASCX user control in which a radCaptcha is added DECLARATIVELY in the ASCX markup. I use the <captchacontrol_id>.Validate and Page.Validate(<myvalidationgroup>) functions in my server-side button handler. On the user's first attempt to use the page to postback with validation, the IsValid property switches incorrectly to False as a result of running these functions, even if the captcha code is entered correctly. However, if the user tries again, the validation is successful, with the expected IsValid value of False being shown.

I do not believe this is directly a problem with my code, because this behaviour is only seen in the situation when the HttpRuntime process has to start up to serve the page. If the process is already running from previous requests, the 'first attempt failure' problem I describe above does not occur. It is as though the httphandler in Telerik.Web.UI.WebResource.axd is not ready until after the first postback. I have tried using the HttpHandlerUrl property to see if this serves to 'preload' the httphandler, but this does not seem to make any difference, e.g.:

myCaptchaId.HttpHandlerUrl = "~/Telerik.Web.UI.WebResource.axd"

I have also tried moving the <captchacontrol_id>.Validate and/or Page.Validate(<myvalidationgroup>) functions to different places in the page life cycle before the button handler runs, and in various 'If Page.IsPostBack' clauses, but this also is not useful. The problem of the initial validation failure remains consistent.

I am wondering if you could advise me about the best way of resolving this issue, as I believe I have now spent more time than is reasonable (several days) trying to resolve the problem. For example, can you me of any workaround for my scenario that would ensure that the radCaptcha control and the httphandler would be ready to perform the correct validation behaviour on the first attempt?

Thankyou for your advice on the problem.

Regards

Paul


Slav
Telerik team
 answered on 17 Sep 2012
1 answer
146 views

I created a RadGrid with <telerik:GridTemplateColumn  and <telerik:GridBoundColumn if i am using gridbound column itis working ,but using gridTemplatecolumn  it isnot working that also not all the options some of the options only

 Options  are "No filter", Contains" , "Starts with", " Equal to"
 "No filter ", "contains "are working
 "Starts with" and "Equal to" are not working please help me how to rectify this issue
 tomorrow UAT  testing  needs to close this ..
 
 Please find the code samples as mentioned below:

 

 

<telerik:RadGrid ID="RadGrid1" runat="server" ShowStatusBar="false" AutoGenerateColumns="False"

 

 

 

Width="100%" PageSize="50" AllowSorting="True" AllowMultiRowSelection="true"

 

 

 

AllowPaging="True" AllowFilteringByColumn="true" OnDetailTableDataBind="RadGrid1_DetailTableDataBind"

 

 

 

OnPreRender="RadGrid1_PreRender" OnNeedDataSource="RadGrid1_NeedDataSource" GridLines="None"

 

 

 

OnItemCommand="RadGrid1_ItemCommand" OnDataBound="RadGrid1_DataBound" OnItemDataBound="RadGrid1_ItemDataBound"

 

 

 

OnExcelExportCellFormatting="RadGrid1_ExcelExportCellFormatting" OnInit="RadGrid1_Init"

 

 

 

Skin="Myskin" OnItemCreated="RadGrid1_ItemCreated" ItemStyle-BackColor="White"

 

 

 

AlternatingItemStyle-BackColor="White" EnableEmbeddedSkins="false" ViewStateMode="Enabled"

 

 

 

OnPageIndexChanged="RadGrid1_PageIndexChanged" Font-Size="11px" OnGridExporting="RadGrid1_GridExporting">

 

<%

 

-- <PagerStyle Mode="NextPrevNumericAndAdvanced" AlwaysVisible="true" PageSizeLabelText="Results per page"

 

ShowPagerText="true" HorizontalAlign="Left" PagerTextFormat=""></PagerStyle>--

 

 

%>

 

 

 

<PagerStyle Mode="NextPrevAndNumeric" AlwaysVisible="true" PageSizeLabelText="Results per page"

 

 

 

Position="TopAndBottom" ShowPagerText="true" HorizontalAlign="Left"></PagerStyle>

 

 

 

<ExportSettings HideStructureColumns="true" />

 

 

 

<ClientSettings EnableRowHoverStyle="false">

 

<%

 

--<Scrolling AllowScroll="True" UseStaticHeaders="true" SaveScrollPosition="true">

 

</Scrolling>--

 

 

%>

 

 

 

<Selecting AllowRowSelect="false" />

 

<%

 

--<ClientEvents OnGridCreated="gridCreated" />--%>

 

 

 

</ClientSettings>

 

 

 

<SortingSettings EnableSkinSortStyles="false" />

 

 

 

<SelectedItemStyle CssClass="SelectedItem" />

 

 

 

<MasterTableView DataKeyNames="CredentialID,CredentialVersion" AllowMultiColumnSorting="false"

 

 

 

CommandItemDisplay="None" EnableNoRecordsTemplate="false" HierarchyDefaultExpanded="false"

 

 

 

TableLayout="Fixed" HierarchyLoadMode="ServerBind" ItemStyle-BackColor="LightGoldenrodYellow"

 

 

 

AlternatingItemStyle-BackColor="LightGoldenrodYellow" Name="MasterGrid" AllowFilteringByColumn="true">

 

 

 

<CommandItemSettings ShowExportToWordButton="false" ShowExportToExcelButton="false"

 

 

 

ShowExportToCsvButton="false" ShowAddNewRecordButton="false" ShowRefreshButton="false" />

 

 

 

<NoRecordsTemplate>

 

No Master Records Found

 

 

</NoRecordsTemplate>

 

 

 

<ExpandCollapseColumn HeaderStyle-Width="20px">

 

 

 

</ExpandCollapseColumn>

 

 

 

<DetailTables>

 

 

 

<telerik:GridTableView DataKeyNames="CredentialID,CredentialVersion" Name="Orders"

 

 

 

EnableNoRecordsTemplate="false" AllowPaging="false" AllowFilteringByColumn="false"

 

 

 

TableLayout="Fixed" AllowSorting="false" ShowHeader="false" ItemStyle-BackColor="#F0F8FF"

 

 

 

AlternatingItemStyle-BackColor="#F0F8FF" Width="1070px">

 

 

 

<NoRecordsTemplate>

 

 

 

<asp:Label Text="No Records Found in Credential Version (Other)" CssClass="panelStyle1"

 

 

 

runat="server" ID="lblChildNoRecord" ForeColor="Pink" Font-Bold="true"></asp:Label>

 

 

 

</NoRecordsTemplate>

 

 

 

<Columns>

 

 

 

<telerik:GridTemplateColumn UniqueName="Checkbox" Display="true" AllowFiltering="true">

 

 

 

<HeaderStyle Width="27px" />

 

 

 

<HeaderTemplate>

 

 

 

<asp:CheckBox ID="headerChildChkbox" runat="server" AutoPostBack="true" />

 

 

 

</HeaderTemplate>

 

 

 

<ItemTemplate>

 

 

 

<asp:CheckBox ID="chkChildChild" runat="server" AutoPostBack="false" />

 

 

 

</ItemTemplate>

 

 

 

</telerik:GridTemplateColumn>

 

 

 

<telerik:GridBoundColumn SortExpression="CredentialID" HeaderText="Credential id"

 

 

 

Visible="false" HeaderButtonType="TextButton" DataField="CredentialID" UniqueName="CredentialID">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn SortExpression="ClientName" HeaderText="Client name" HeaderButtonType="TextButton"

 

 

 

DataField="ClientName" Visible="false" UniqueName="CName">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridTemplateColumn SortExpression="ClientName" UniqueName="ClientNameChild"

 

 

 

HeaderText="Client name" Visible="true">

 

 

 

<ItemTemplate>

 

 

 

<asp:HyperLink ID="LinkChild" runat="server" Text='<%#Bind("CredentialID") %>' Visible="false"></asp:HyperLink>

 

 

 

<asp:LinkButton runat="server" ID="hypidchild" Text='<%#Bind("ClientName") %>' Font-Bold="true"

 

 

 

OnClick="hypidchild_Click" ForeColor="Black"></asp:LinkButton>

 

 

 

</ItemTemplate>

 

 

 

<HeaderStyle Width="204px" />

 

 

 

</telerik:GridTemplateColumn>

 

 

 

<telerik:GridBoundColumn UniqueName="ProjectName" HeaderText="Project name" Visible="false"

 

 

 

HeaderButtonType="TextButton" DataField="ProjectName" AllowFiltering="true">

 

 

 

<HeaderStyle Width="10%" />

 

 

 

<ItemStyle Width="10%" />

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn UniqueName="CredentialVersionChild" HeaderText="Credential version"

 

 

 

Visible="true" HeaderButtonType="TextButton" DataField="CredentialVersionOther"

 

 

 

AllowFiltering="true">

 

 

 

<HeaderStyle Width="120px" />

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridTemplateColumn HeaderText="Matter/credential description" UniqueName="MatterDescription"

 

 

 

DataField="MatterDescription" AllowFiltering="false">

 

 

 

<HeaderStyle Width="719px" />

 

 

 

<ItemTemplate>

 

 

 

<asp:Label ID="lblMatterDescription" runat="server" Text=""></asp:Label>

 

 

 

</ItemTemplate>

 

 

 

</telerik:GridTemplateColumn>

 

 

 

<telerik:GridTemplateColumn HeaderText="Matter/credential description" UniqueName="ConfidentialYes"

 

 

 

DataField="MatterDescription" AllowFiltering="false" Visible="false">

 

 

 

<ItemTemplate>

 

 

 

<asp:Label ID="lblConfidentialYes" runat="server" Text=""></asp:Label>

 

 

 

</ItemTemplate>

 

 

 

</telerik:GridTemplateColumn>

 

 

 

<telerik:GridTemplateColumn HeaderText="Matter/credential description" UniqueName="ConfidentialNo"

 

 

 

DataField="MatterDescription" AllowFiltering="false" Visible="false">

 

 

 

<ItemTemplate>

 

 

 

<asp:Label ID="lblConfidentialNo" runat="server" Text=""></asp:Label>

 

 

 

</ItemTemplate>

 

 

 

</telerik:GridTemplateColumn>

 

 

 

<telerik:GridTemplateColumn UniqueName="ClientSector" DataField="ClientSector"

 

 

 

HeaderText="Client sector"Visible="false" SortExpression="ClientSector" AllowFiltering="true">

 

 

 

<ItemTemplate>

 

 

 

<asp:Label runat="server" ID="lblClientSector" Text='<%#Bind("ClientSector")%>' CssClass="panelStyle1"></asp:Label>

 

 

 

<asp:LinkButton runat="server" ID="hypClientSectormore" Text="...more" Font-Bold="true"

 

 

 

ForeColor="BurlyWood" Visible="false" CssClass="panelStyle1"></asp:LinkButton>

 

 

 

<telerik:RadToolTip ID="radTTClientSector" runat="server" TargetControlID="hypClientSectormore"

 

 

 

Width="150px" RelativeTo="Element" Position="MiddleRight">

 

 

 

</telerik:RadToolTip>

 

 

 

</ItemTemplate>

 

 

 

</telerik:GridTemplateColumn>

 

 

 

<telerik:GridTemplateColumn SortExpression="MatterSector" UniqueName="MatterSector"

 

 

 

HeaderText="Matter sector" DataField="MatterSector" Visible="false">

 

 

 

<ItemTemplate>

 

 

 

<asp:Label runat="server" ID="lblMatterSector" Text='<%#Bind("MatterSector")%>' CssClass="panelStyle1"></asp:Label>

 

 

 

<asp:LinkButton runat="server" ID="hypMatterSectormore" Text="...more" Font-Bold="true"

 

 

 

ForeColor="BurlyWood" Visible="false" CssClass="panelStyle1"></asp:LinkButton>

 

 

 

<telerik:RadToolTip ID="radTTMatterSector" runat="server" TargetControlID="hypMatterSectormore"

 

 

 

Width="150px" RelativeTo="Element" Position="MiddleRight">

 

 

 

</telerik:RadToolTip>

 

 

 

</ItemTemplate>

 

 

 

</telerik:GridTemplateColumn>

 

 

 

<telerik:GridTemplateColumn HeaderText="Work type" UniqueName="WT" DataField="WorkType"

 

 

 

Visible="false">

 

 

 

<ItemTemplate>

 

 

 

<asp:Label ID="lblWorkType" runat="server" Text=""></asp:Label>

 

 

 

<asp:LinkButton runat="server" ID="hypmore" Text="...more" Font-Bold="true" ForeColor="BurlyWood"

 

 

 

Visible="false"></asp:LinkButton>

 

 

 

<telerik:RadToolTip ID="RadToolTip1" runat="server" TargetControlID="hypmore" Width="150px"

 

 

 

RelativeTo="Element" Position="MiddleRight">

 

 

 

</telerik:RadToolTip>

 

 

 

</ItemTemplate>

 

 

 

</telerik:GridTemplateColumn>

 

 

 

 

<telerik:GridTemplateColumn SortExpression="PracticeGroup" UniqueName="PracticeGroup"

 

 

 

HeaderText="Practice group" DataField="PracticeGroup" Visible="false">

 

 

 

<ItemTemplate>

 

 

 

<asp:Label runat="server" ID="lblPracticeGroup" Text='<%#Bind("PracticeGroup")%>'

 

 

 

CssClass="panelStyle1"></asp:Label>

 

 

 

<asp:LinkButton runat="server" ID="hypPracticeGroupmore" Text="...more" Font-Bold="true"

 

 

 

ForeColor="BurlyWood" Visible="false" CssClass="panelStyle1"></asp:LinkButton>

 

 

 

<telerik:RadToolTip ID="radTTPracticeGroup" runat="server" TargetControlID="hypPracticeGroupmore"

 

 

 

Width="150px" RelativeTo="Element" Position="MiddleRight">

 

 

 

</telerik:RadToolTip>

 

 

 

</ItemTemplate>

 

 

 

</telerik:GridTemplateColumn>

 

 

 

<telerik:GridTemplateColumn SortExpression="LeadPartner" UniqueName="LeadPartner"

 

 

 

HeaderText="Lead partner" DataField="LeadPartner" Visible="false">

 

 

 

<ItemTemplate>

 

 

 

<asp:Label runat="server" ID="lblLeadPartner" Text='<%#Bind("LeadPartner")%>' CssClass="panelStyle1"></asp:Label>

 

 

 

<asp:LinkButton runat="server" ID="hypLeadPartnermore" Text="...more" Font-Bold="true"

 

 

 

ForeColor="BurlyWood" Visible="false" CssClass="panelStyle1"></asp:LinkButton>

 

 

 

<telerik:RadToolTip ID="radTTLeadPartner" runat="server" TargetControlID="hypLeadPartnermore"

 

 

 

Width="150px" RelativeTo="Element" Position="MiddleRight">

 

 

 

</telerik:RadToolTip>

 

 

 

</ItemTemplate>

 

 

 

</telerik:GridTemplateColumn>

 

 

 

<telerik:GridTemplateColumn SortExpression="MatterLocation" UniqueName="MatterLocation"

 

 

 

HeaderText="Matter location" DataField="MatterLocation" Visible="false">

 

 

 

<ItemTemplate>

 

 

 

<asp:Label runat="server" ID="lblMatterLocation" Text='<%#Bind("MatterLocation")%>'

 

 

 

CssClass="panelStyle1"></asp:Label>

 

 

 

<asp:LinkButton runat="server" ID="hypMatterLocationmore" Text="...more" Font-Bold="true"

 

 

 

ForeColor="BurlyWood" Visible="false" CssClass="panelStyle1"></asp:LinkButton>

 

 

 

<telerik:RadToolTip ID="radTTMatterLocation" runat="server" TargetControlID="hypMatterLocationmore"

 

 

 

Width="150px" RelativeTo="Element" Position="MiddleRight">

 

 

 

</telerik:RadToolTip>

 

 

 

</ItemTemplate>

 

 

 

</telerik:GridTemplateColumn>

 

 

 

<telerik:GridBoundColumn SortExpression="DateCompleted" HeaderText="Date completed"

 

 

 

Visible="false" HeaderButtonType="TextButton" DataField="DateCompleted" UniqueName="DateCompleted">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn UniqueName="CredentialType" HeaderText="Credential type"

 

 

 

Visible="false" HeaderButtonType="TextButton" DataField="CredentialType">

 

 

 

<HeaderStyle Width="10%" />

 

 

 

<ItemStyle Width="10%" />

 

 

 

</telerik:GridBoundColumn>

 

 

 

 

</Columns>

 

 

 

</telerik:GridTableView>

 

 

 

</DetailTables>

 

 

 

<Columns>

 

 

 

<telerik:GridTemplateColumn UniqueName="Checkbox" Display="true" AllowFiltering="false">

 

 

 

<ItemTemplate>

 

 

 

<asp:CheckBox ID="chkMasterChild" runat="server" AutoPostBack="false" />

 

 

 

</ItemTemplate>

 

 

 

<HeaderTemplate>

 

 

 

<table>

 

 

 

<tr>

 

 

 

<td>

 

 

 

<asp:CheckBox ID="chkMasterHead" runat="server" AutoPostBack="false" onclick="RowSelectedMaster(this);" />

 

 

 

</td>

 

 

 

</tr>

 

 

 

</table>

 

 

 

</HeaderTemplate>

 

 

 

<HeaderStyle Width="30px" />

 

 

 

</telerik:GridTemplateColumn>

 

<%

 

--<telerik:GridClientSelectColumn HeaderStyle-Width="20px" UniqueName="Checkbox" Visible="false">

 

<HeaderStyle Width="20px" />

</telerik:GridClientSelectColumn>--

 

 

%>
<telerik:GridBoundColumn SortExpression="ClientName" HeaderText="Client name" HeaderButtonType="TextButton"

 

 

 

DataField="ClientName" Visible="false" UniqueName="CName">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridTemplateColumn SortExpression="ClientName" UniqueName="ClientName" HeaderText="Client name"

 

 

 

DataField="ClientName" Visible="true" FilterControlWidth="115px">

 

 

 

<ItemTemplate>

 

 

 

<asp:HyperLink ID="Link" runat="server" Text='<%#Bind("CredentialID") %>' Visible="false"></asp:HyperLink>

 

 

 

<asp:LinkButton runat="server" ID="hypid" Text='<%#Bind("ClientName") %>' Font-Bold="true"

 

 

 

OnClick="hypid_Click" ForeColor="Black"></asp:LinkButton>

 

 

 

</ItemTemplate>

 

 

 

<HeaderStyle Width="200px" />

 

 

 

</telerik:GridTemplateColumn>

 

 

 

<telerik:GridTemplateColumn SortExpression="CredentialVersion" UniqueName="CredentialVersion"
HeaderText
="Credential version"

 

 

 

DataField="CredentialVersion" Visible="true" AllowFiltering="true">

 

 

 

<ItemTemplate>

 

 

 

<asp:Label runat="server" ID="lblCredentialVersion" Text='<%#Bind("CredentialVersion")%>'

 

 

 

CssClass="panelStyle1"></asp:Label>

 

 

 

<asp:LinkButton runat="server" ID="hypCredentialVersionmore" Text="...more" Font-Bold="true"

 

 

 

ForeColor="BurlyWood" Visible="false" CssClass="panelStyle1"></asp:LinkButton>

 

 

 

<telerik:RadToolTip ID="radTTCredentialVersion" runat="server" TargetControlID="hypCredentialVersionmore"

 

 

 

Width="150px" RelativeTo="Element" Position="MiddleRight" Visible="false">

 

 

 

</telerik:RadToolTip>

 

 

 

</ItemTemplate>

 

 

 

<HeaderStyle Width="120px" />

 

 

 

</telerik:GridTemplateColumn>

 

 

 

<telerik:GridTemplateColumn HeaderText="Matter/credential description" UniqueName="MatterDescription"

 

 

 

DataField="MatterDescription" FilterControlWidth="300px">

 

 

 

<HeaderStyle Width="700px" />

 

 

 

<ItemTemplate>

 

 

 

<asp:Label ID="lblMatterDescription" runat="server" Text=""></asp:Label>

 

 

 

</ItemTemplate>

 

 

 

</telerik:GridTemplateColumn>

 

 

 

<telerik:GridTemplateColumn HeaderText="Matter/credential description" UniqueName="ConfidentialYes"

 

 

 

DataField="MatterDescription" AllowFiltering="false" Visible="false">

 

 

 

<ItemTemplate>

 

 

 

<asp:Label ID="lblConfidentialYes" runat="server" Text=""></asp:Label>

 

 

 

</ItemTemplate>

 

 

 

</telerik:GridTemplateColumn>

 

 

 

<telerik:GridTemplateColumn HeaderText="Matter/credential description" UniqueName="ConfidentialNo"

 

 

 

DataField="MatterDescription" AllowFiltering="false" Visible="false">

 

 

 

<ItemTemplate>

 

 

 

<asp:Label ID="lblConfidentialNo" runat="server" Text=""></asp:Label>

 

 

 

</ItemTemplate>

 

 

 

</telerik:GridTemplateColumn>

 

 

 

<telerik:GridTemplateColumn SortExpression="ClientSector" UniqueName="ClientSector"

 

 

 

HeaderText="Client sector" DataField="ClientSector" Visible="true" FilterControlWidth="150px">

 

 

 

<ItemTemplate>

 

 

 

<asp:Label runat="server" ID="lblClientSector" Text='<%#Bind("ClientSector")%>' CssClass="panelStyle1"></asp:Label>

 

 

 

<asp:LinkButton runat="server" ID="hypClientSectormore" Text="...more" Font-Bold="true"

 

 

 

ForeColor="BurlyWood" Visible="false" CssClass="panelStyle1"></asp:LinkButton>

 

 

 

<telerik:RadToolTip ID="radTTClientSector" runat="server" TargetControlID="hypClientSectormore"

 

 

 

Width="150px" RelativeTo="Element" Position="MiddleRight">

 

 

 

</telerik:RadToolTip>

 

 

 

</ItemTemplate>

 

 

 

<HeaderStyle Width="200px" />

 

 

 

</telerik:GridTemplateColumn>

 

 

 

<telerik:GridTemplateColumn SortExpression="MatterSector" UniqueName="MatterSector"

 

 

 

HeaderText="Matter sector" DataField="MatterSector" Visible="true" FilterControlWidth="150px">

 

 

 

<ItemTemplate>

 

 

 

<asp:Label runat="server" ID="lblMatterSector" Text='<%#Bind("MatterSector")%>' CssClass="panelStyle1"></asp:Label>

 

 

 

<asp:LinkButton runat="server" ID="hypMatterSectormore" Text="...more" Font-Bold="true"

 

 

 

ForeColor="BurlyWood" Visible="false" CssClass="panelStyle1"></asp:LinkButton>

 

 

 

<telerik:RadToolTip ID="radTTMatterSector" runat="server" TargetControlID="hypMatterSectormore"

 

 

 

Width="180px" RelativeTo="Element" Position="MiddleRight">

 

 

 

</telerik:RadToolTip>

 

 

 

</ItemTemplate>

 

 

 

<HeaderStyle Width="200px" />

 

<%

 

--<ItemStyle Width="8%" />--%>

 

 

 

</telerik:GridTemplateColumn>

 

<%

 

-- <telerik:GridBoundColumn SortExpression="MatterSector" HeaderText="MatterSector"

 

HeaderButtonType="TextButton" DataField="MatterSector" UniqueName="MatterSector">

<HeaderStyle Width="15%" />

<ItemStyle Width="15%" Wrap="true" />

</telerik:GridBoundColumn>--

 

 

%>

 

 

 

<telerik:GridTemplateColumn HeaderText="Work type" UniqueName="WT" DataField="WorkType"

 

 

 

AllowFiltering="false">

 

 

 

<HeaderStyle Width="190px" />

 

 

 

<ItemStyle Wrap="true" />

 

 

 

<ItemTemplate>

 

 

 

<asp:Label ID="lblWorkType" runat="server" Text=""></asp:Label>

 

 

 

<asp:LinkButton runat="server" ID="hypmore" Text="...more" Font-Bold="true" ForeColor="BurlyWood"

 

 

 

Visible="false"></asp:LinkButton>

 

 

 

<telerik:RadToolTip ID="RadToolTip1" runat="server" TargetControlID="hypmore" Width="150px"

 

 

 

RelativeTo="Element" Position="MiddleRight">

 

 

 

</telerik:RadToolTip>

 

 

 

</ItemTemplate>

 

 

 

</telerik:GridTemplateColumn>

 

<%

 

-- <telerik:GridBoundColumn SortExpression="PracticeGroup" HeaderText="PracticeGroup"

 

HeaderButtonType="TextButton" DataField="PracticeGroup" UniqueName="PracticeGroup">

<HeaderStyle Width="15%" />

<ItemStyle Width="15%" Wrap="true" />

</telerik:GridBoundColumn>--

 

 

%>

 

 

 

<telerik:GridTemplateColumn SortExpression="PracticeGroup" UniqueName="PracticeGroup"

 

 

 

HeaderText="Practice group" DataField="PracticeGroup" Visible="true" FilterControlWidth="150px">

 

 

 

<ItemTemplate>

 

 

 

<asp:Label runat="server" ID="lblPracticeGroup" Text='<%#Bind("PracticeGroup")%>'

 

 

 

CssClass="panelStyle1"></asp:Label>

 

 

 

<asp:LinkButton runat="server" ID="hypPracticeGroupmore" Text="...more" Font-Bold="true"

 

 

 

ForeColor="BurlyWood" Visible="false" CssClass="panelStyle1"></asp:LinkButton>

 

 

 

<telerik:RadToolTip ID="radTTPracticeGroup" runat="server" TargetControlID="hypPracticeGroupmore"

 

 

 

Width="150px" RelativeTo="Element" Position="MiddleRight">

 

 

 

</telerik:RadToolTip>

 

 

 

</ItemTemplate>

 

 

 

<HeaderStyle Width="200px" />

 

<%

 

--<ItemStyle Width="8%" />--%>

 

 

 

</telerik:GridTemplateColumn>

 

<%

 

--<telerik:GridBoundColumn SortExpression="LeadPartner" HeaderText="LeadPartner" HeaderButtonType="TextButton"

 

DataField="LeadPartner" UniqueName="LeadPartner">

<HeaderStyle Width="15%" />

<ItemStyle Width="15%" Wrap="true" />

</telerik:GridBoundColumn>--

 

 

%>

 

 

 

<telerik:GridTemplateColumn SortExpression="LeadPartner" UniqueName="LeadPartner"

 

 

 

HeaderText="Lead partner" DataField="LeadPartner" Visible="true" FilterControlWidth="140px">

 

 

 

<ItemTemplate>

 

 

 

<asp:Label runat="server" ID="lblLeadPartner" Text='<%#Bind("LeadPartner")%>' CssClass="panelStyle1"></asp:Label>

 

 

 

<asp:LinkButton runat="server" ID="hypLeadPartnermore" Text="...more" Font-Bold="true"

 

 

 

ForeColor="BurlyWood" Visible="false" CssClass="panelStyle1"></asp:LinkButton>

 

 

 

<telerik:RadToolTip ID="radTTLeadPartner" runat="server" TargetControlID="hypLeadPartnermore"

 

 

 

Width="150px" RelativeTo="Element" Position="MiddleRight">

 

 

 

</telerik:RadToolTip>

 

 

 

</ItemTemplate>

 

 

 

<HeaderStyle Width="190px" />

 

<%

 

--<ItemStyle Width="5%" />--%>

 

 

 

</telerik:GridTemplateColumn>

 

<%

 

--<telerik:GridBoundColumn SortExpression="MatterLocation" HeaderText="MatterLocation"

 

HeaderButtonType="TextButton" DataField="MatterLocation" UniqueName="MatterLocation">

<HeaderStyle Width="15%" />

<ItemStyle Width="15%" Wrap="true" />

</telerik:GridBoundColumn>--

 

 

%>

 

 

 

<telerik:GridTemplateColumn SortExpression="MatterLocation" UniqueName="MatterLocation"

 

 

 

HeaderText="Matter location" DataField="MatterLocation" Visible="true" FilterControlWidth="140px">

 

 

 

<ItemTemplate>

 

 

 

<asp:Label runat="server" ID="lblMatterLocation" Text='<%#Bind("MatterLocation")%>'

 

 

 

CssClass="panelStyle1"></asp:Label>

 

 

 

<asp:LinkButton runat="server" ID="hypMatterLocationmore" Text="...more" Font-Bold="true"

 

 

 

ForeColor="BurlyWood" Visible="false" CssClass="panelStyle1"></asp:LinkButton>

 

 

 

<telerik:RadToolTip ID="radTTMatterLocation" runat="server" TargetControlID="hypMatterLocationmore"

 

 

 

Width="150px" RelativeTo="Element" Position="MiddleRight">

 

 

 

</telerik:RadToolTip>

 

 

 

</ItemTemplate>

 

 

 

<HeaderStyle Width="190px" />

 

<%

 

--<ItemStyle Width="5%" />--%>

 

 

 

</telerik:GridTemplateColumn>

 

 

 

</Columns>

 

 

 

</MasterTableView>

 

 

 

</telerik:RadGrid>

 

Pavlina
Telerik team
 answered on 17 Sep 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?