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

Just seem to have hit a wall with this one. I have a grid, and in that grid is the following column:

                                    <telerik:GridTemplateColumn UniqueName="PostNCAuditGuid" HeaderText="Post NC Audit">
                                        <ItemStyle HorizontalAlign="Center" />
                                        <ItemTemplate>
                                            <asp:HyperLink NavigateUrl="javascript:createPostNCAudit();" runat="server" ID="hlCreatePostNCAudit"
                                                Text="Create a Post NC Audit"></asp:HyperLink>
                                            <asp:HyperLink NavigateUrl="javascript:viewPostNCAudit();" runat="server" ID="hlViewPostNCAudit"
                                                Text="View Post NC Audit"></asp:HyperLink>
                                        </ItemTemplate>
                                    </telerik:GridTemplateColumn>

Now, I need the createPostNCAudit() and the viewPostNCAudit() functions to have a value passed to them indicating the row that this hyperlink was clicked on. As the 'rowclicked' event is not fired, I have no way of pulling an Id for the row into some sort of variable prior to them clicking one of the hyperlinks. Of course they may click the row and THEN click the hyperlink, but in the scenario of them simply clicking straight on the hyperlink I don't know how to identify the row the call came from.

Any help would be greatly appreciated. Whether you have a way of me passing a value to the function in the navigateurl property or assigning the row id to a variable I will be made up.

Thanks a lot,

Dan
Shinu
Top achievements
Rank 2
 answered on 06 May 2011
1 answer
73 views
Hello 

I worked with rad controls in past and now in my new enterprise i founded them again. The situation is that we have a version of Telerik Controls for framework 2.0, and we have an asp.net web proyect using them. Now we wanto to create a VS 2005 webdeployment proyect for the site, but when i Tried to create it, the Site shows an error. 

We got the site, and we had to add a folder Called RadControls where are a lot of pages with code that where used to use the controls in the web site. 

The error that the application throws is 

"aspnet_merge.exe" exited with code 1

and the detail of the error was the next one:

An error occurred when merging assemblies: ILMerge.Merge: ERROR!!: Duplicate type 'ASP.TableBorderControl' found in assembly 'App_Web_zadhxhui'.
    C:\Program Files\MSBuild\Microsoft\WebDeployment\v8.0\Microsoft.WebDeployment.targets(574,9): error MSB6006: "aspnet_merge.exe" exited with code 1.
  Done executing task "AspNetMerge" -- FAILED.
Done building target "AspNetMerge" in project "WebSisSemana_deploy.wdproj" -- FAILED.

What can i do to solve this problem?

Thank you
Andrey
Telerik team
 answered on 06 May 2011
1 answer
115 views
Hi,
    We were able to upload big file sizes by setting

<security><requestFiltering><requestLimits maxAllowedContentLength="419440400"/></requestFiltering></security>

this in Telerik.Web.UI.WebResource.axd .
I would like to know whether its safe to do this, Is there any possibility of DOS attacks, or is there a safer way to do this?

Thanks,
Deepak M
Genady Sergeev
Telerik team
 answered on 06 May 2011
1 answer
62 views
Hi Team,
I have a radgrid with template columns in it.
When I try to apply filter on the ttemplate column it gives me the strange error.
I tried a lot to get the solution but couldn't find...     :(
Please help me at this..

This is what I have on aspx :

<telerik:RadGrid ID="rgProjectBudget" runat="server" AllowFilteringByColumn="true" AllowMultiRowSelection="true" AllowPaging="true"
                                            OnNeedDataSource="rgProjectBudget_NeedDataSource" OnDeleteCommand="rgProjectBudget_DeleteCommand" PageSize="50"
                                            OnItemDataBound="rgProjectBudget_ItemDataBound" OnPreRender="rgProjectBudget_PreRender" PagerStyle-AlwaysVisible="true" >
                                            <ClientSettings  Selecting-AllowRowSelect="true">
                                                <ClientEvents OnRowSelected="RowSelected" />
                                            </ClientSettings>
                                    <MasterTableView EditMode="InPlace">
                                    <Columns>
                                        <telerik:GridBoundColumn DataField="COABudgetDetailID" DataType="System.Int32"
                                                                HeaderText="COABudgetDetailID" Display="false"
                                                                UniqueName="COABudgetDetailID" AutoPostBackOnFilter="true">
                                        </telerik:GridBoundColumn>
<telerik:GridTemplateColumn HeaderText="Project Budget" UniqueName="SecondaryEntityBudget"
                                                                    CurrentFilterFunction="Contains" AllowFiltering="true" AutoPostBackOnFilter="true">
                                                                    <ItemStyle Width="20%" />
                                            <ItemTemplate>
                                               <asp:TextBox ID="txtBudgetAmount" runat="server" Width="70px"
                                                        Text='<%# DataBinder.Eval(Container,"DataItem.SecondaryEntityBudget") %>' />
                                            </ItemTemplate>
                                        </telerik:GridTemplateColumn>
                                        <telerik:GridBoundColumn UniqueName="COAActualAmount" HeaderText="Actual Amount" DataField="COAActualAmount"
                                                                 CurrentFilterFunction="EqualTo" AllowFiltering="true" DataType="System.Double" FilterControlWidth="30%"
                                                                 AutoPostBackOnFilter="true">
                                            <HeaderStyle Width="10%" HorizontalAlign="Left" />
                                            <ItemStyle  Width="10%" HorizontalAlign="Left" />
                                        </telerik:GridBoundColumn>


I want to apply filter on SecondaryEntityBudget column.
I have attached the image file of the error that I am getting.
Please help me guys...   :(

Regards,
Lok..
Iana Tsolova
Telerik team
 answered on 06 May 2011
1 answer
79 views
I have RadGrid A and RadGrid B. I am dragging a row from A and dropping it on B.  Rebinding A and B.
If I drag row 3 then after rebinding A shows row 1 selected. How can I set A back to it's setting after rebinding.
Ideally aftet binding it will show row 3 and B for row 3.

Please please help...
Smiely
Iana Tsolova
Telerik team
 answered on 06 May 2011
1 answer
50 views
I have a Radgrid which will fill according to a combobox which contains a table name.
I can change the table with no problem using this combo box. I found I can do this to clear the filters:

 

 

foreach (GridColumn column in RadGrid1.MasterTableView.Columns)

{
    column.CurrentFilterFunction = 
GridKnownFunction.NoFilter;
    column.CurrentFilterValue = string.Empty;

RadGrid1.MasterTableView.FilterExpression = 

 

string.Empty;

 

RadGrid1.MasterTableView.Rebind();

 


How do I clear the sort and reorder columns?
Iana Tsolova
Telerik team
 answered on 06 May 2011
1 answer
102 views
Hi,

I have telerik RadGrid with grouping. I see group panel with group field, but grid is not group rows (see attachment).
For fill grid I use Webservice and clientside databinging.
This is my code:

<telerik:RadGrid ID="grdResult" runat="server" AllowPaging="True"
            AllowSorting="True" AutoGenerateColumns="False" GridLines="None"
            PageSize="20" Width="100%" BorderStyle="None" EnableEmbeddedSkins="False"
            EnableViewState="true" Culture="de-DE" ShowFooter="True" ShowGroupPanel="True">
            <ClientSettings AllowDragToGroup="True" EnableRowHoverStyle="true" DataBinding-CountPropertyName="CountProduct" DataBinding-DataPropertyName="DataProduct">
                <Selecting AllowRowSelect="true" />
                <DataBinding Location="WebServiceProduct.asmx" SelectMethod="GetDataAndCount" EnableCaching="false"/>
                <ClientEvents OnDataBinding="grdResult_DataBinding" OnDataBound="grdResult_DataBound"/>
            </ClientSettings>
            <HeaderStyle Wrap="False" />
            <MasterTableView GroupLoadMode="Client">
                <GroupByExpressions>
                    <telerik:GridGroupByExpression>
                        <SelectFields>
                            <telerik:GridGroupByField FieldAlias="USER_Profile" FieldName="USER_Profile"></telerik:GridGroupByField>
                        </SelectFields>
                        <GroupByFields>
                            <telerik:GridGroupByField FieldName="USER_Profile"></telerik:GridGroupByField>
                        </GroupByFields>
                    </telerik:GridGroupByExpression>
                </GroupByExpressions>
                <Columns>
                    <telerik:GridBoundColumn DataField="GroupIcon" HeaderText="Group" UniqueName="colResultGroup" ItemStyle-CssClass="grid_td_line"></telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Text1" HeaderText="Typ Caption" UniqueName="colResultText1" ItemStyle-CssClass="grid_td_line"></telerik:GridBoundColumn>
             <telerik:GridBoundColumn DataField="USER_Profile" HeaderText="USER_Profile" UniqueName="USER_Profile" ItemStyle-CssClass="grid_td_line"></telerik:GridBoundColumn>
                   
...
                </Columns>
            </MasterTableView>
            <PagerStyle Mode="NextPrevAndNumeric" PageButtonCount="10" />
            <GroupingSettings ShowUnGroupButton="true" />
        </telerik:RadGrid>

Where I do mistake?
Thanks for answer.

Best regards

Roman
Iana Tsolova
Telerik team
 answered on 06 May 2011
1 answer
69 views

if i put this code restrict for pageload in radtabstrip.
page's not loaded .
but i have one issue .
one tab have 6 drop down list any one of the drop down has selected index to changed all other five fields are
visible false come how i restrict that one.
please reply as soon as possible

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
                            <AjaxSettings>
                                <telerik:AjaxSetting AjaxControlID="RadTabStrip1">
                                    <UpdatedControls>
                                        <telerik:AjaxUpdatedControl ControlID="RadTabStrip1" UpdatePanelHeight="" LoadingPanelID="RadAjaxLoadingPanel1" />
                                        <telerik:AjaxUpdatedControl ControlID="RadMultiPage1" UpdatePanelHeight="" LoadingPanelID="RadAjaxLoadingPanel1" />
                                    </UpdatedControls>
                                </telerik:AjaxSetting>
                                <telerik:AjaxSetting AjaxControlID="RadMultiPage1">
                                    <UpdatedControls>
                                        <telerik:AjaxUpdatedControl ControlID="RadMultiPage1" UpdatePanelHeight="" LoadingPanelID="RadAjaxLoadingPanel1" />
                                    </UpdatedControls>
                                </telerik:AjaxSetting>
                            </AjaxSettings>
                        </telerik:RadAjaxManager>
                        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" />


Thanks ,
Mohamed
mohamed
Top achievements
Rank 1
 answered on 06 May 2011
2 answers
245 views
Hi,
I'm having a strange behaviour in the following scenario:

A textbox and a button on a webform. Clicking the button opens a modal dialog with a grid. After closing the popup, the value selected in the grid in written into the text field. I used the following code to open the dialog:

<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server"
    <script type="text/javascript"
     function ShowDialog() 
    
        window.radopen(null, "winSearchDialog"); 
    
    </script>
</telerik:RadCodeBlock>
     
<telerik:RadWindowManager ID="RadWindowManager1" runat="server" Overlay="false"
    <Windows>
        <telerik:RadWindow ID="winSearchDialog" runat="server" Width="600px" Height="600px" Modal="true"
            Title="Select BP" NavigateUrl="~/Pages/Parent2Popup.aspx" />
    </Windows>
</telerik:RadWindowManager>

This works fine when using the code snippet on a web form.

But I need to use this code in a user control. The user control contains the same textbox and button with the same code snippet.
After opening the modal dialog closes automatically after 1-2 seconds. This is really strange.

Thanks for help,
Uwe
Uwe
Top achievements
Rank 1
 answered on 06 May 2011
4 answers
156 views
I'm using RadTabStrip include 6 tab  every tab i change page's loaded .
how i restrict that.


this my sample code here


 <telerik:RadTabStrip ID="RadTabStrip1" runat="server" Skin="" SelectedIndex="3" Orientation="VerticalLeft"
            EnableEmbeddedSkins="False" Style="position: absolute; top: 50px; left: 0px;"
            Width="112px" MultiPageID="RadMultiPage1" OnTabClick="RadTabStrip1_TabClick">
            <Tabs>
                <telerik:RadTab Text="Details" CssClass="firstTab" SelectedCssClass="firstTabSelected"
                    HoveredCssClass="firstTabHovered">
                </telerik:RadTab>
                <telerik:RadTab Text="Custom Fields" CssClass="firstTab" SelectedCssClass="firstTabSelected"
                    HoveredCssClass="firstTabHovered">
                </telerik:RadTab>
                <telerik:RadTab Text="Attachments" CssClass="firstTab" SelectedCssClass="firstTabSelected"
                    HoveredCssClass="firstTabHovered">
                </telerik:RadTab>
                <telerik:RadTab Text="Requests" CssClass="firstTab" SelectedCssClass="firstTabSelected"
                    HoveredCssClass="firstTabHovered" Selected="True">
                </telerik:RadTab>
                <telerik:RadTab Text="Lease Details" CssClass="firstTab" SelectedCssClass="firstTabSelected"
                    HoveredCssClass="firstTabHovered">
                </telerik:RadTab>
                <telerik:RadTab Text="Service Contracts" CssClass="firstTab" SelectedCssClass="firstTabSelected"
                    HoveredCssClass="firstTabHovered">
                </telerik:RadTab>
                <telerik:RadTab Text="Audit" CssClass="firstTab" SelectedCssClass="firstTabSelected"
                    HoveredCssClass="firstTabHovered">
                </telerik:RadTab>
            </Tabs>
        </telerik:RadTabStrip>
        <telerik:RadMultiPage runat="server" ID="RadMultiPage1" SelectedIndex="3" Style="position: absolute;
            top: 55px; left: 110px">
            <telerik:RadPageView runat="server" ID="RadPageView1">
                <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="RadAjaxLoadingPanel1">
                    <div style="width: 70%">
                        <table width="90%" align="center">
                            <%-- <tr style="height: 15px">
                                <td>
                                </td>
                                <td>
                                </td>
                            </tr>--%>
                            <tr>
                                <td>
                                    Asset Tag
                                </td>
                                <td>
                                    <telerik:RadTextBox ID="radtxt_AssetTag" runat="server">
                                    </telerik:RadTextBox>
                                </td>
                                <td>
                                    Asset Type
                                </td>
                                <td>
                                    <telerik:RadComboBox ID="radCombx_AssetType" runat="server" AutoPostBack="true" AppendDataBoundItems="true"
                                        OnSelectedIndexChanged="radCombx_AssetType_SelectedIndexChanged">
                                    </telerik:RadComboBox>
                                    <asp:HiddenField ID="hdn_AssetTypeId" runat="server" />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Serial Number
                                </td>
                                <td>
                                    <telerik:RadNumericTextBox ID="radNumtxt_SerialNumber" runat="server">
                                    </telerik:RadNumericTextBox>
                                </td>
                                <td>
                                    Manufacturer
                                </td>
                                <td>
                                    <telerik:RadComboBox ID="radCombx_Manufacturer" runat="server" AutoPostBack="true"
                                        AppendDataBoundItems="true" OnSelectedIndexChanged="radCombx_Manufacturer_SelectedIndexChanged">
                                    </telerik:RadComboBox>
                                    <asp:HiddenField ID="hdn_ManufacturerId" runat="server" />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Acquired Date
                                </td>
                                <td>
                                    <telerik:RadDatePicker ID="raddtpkr_AcquiredDate" runat="server" Culture="en-US">
                                    </telerik:RadDatePicker>
                                </td>
                                <td>
                                    Model
                                </td>
                                <td>
                                    <telerik:RadComboBox ID="radCombx_Model" runat="server" AutoPostBack="true" AppendDataBoundItems="true"
                                        OnSelectedIndexChanged="radCombx_Model_SelectedIndexChanged">
                                    </telerik:RadComboBox>
                                    <asp:HiddenField ID="hdn_ModelId" runat="server" />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Price
                                </td>
                                <td>
                                    <telerik:RadNumericTextBox ID="radNumtxt_Price" runat="server">
                                    </telerik:RadNumericTextBox>
                                </td>
                                <td>
                                    Vendor
                                </td>
                                <td>
                                    <telerik:RadComboBox ID="radCombx_Vendor" runat="server" AutoPostBack="true" AppendDataBoundItems="true"
                                        OnSelectedIndexChanged="radCombx_Vendor_SelectedIndexChanged">
                                    </telerik:RadComboBox>
                                    <%-- <telerik:RadComboBox ID="radCombx_Vendor" runat="server" AutoPostBack="true" EnableLoadOnDemand="true"
                                        EmptyMessage="Type here ..." OnSelectedIndexChanged="radCombx_Vendor_SelectedIndexChanged"
                                        OnItemsRequested="radCombx_Vendor_ItemsRequested" OnClientItemsRequesting="itemRequesting">
                                    </telerik:RadComboBox>--%>
                                    <%--<telerik:RadComboBox ID="radCombx_Vendor" runat="server" AutoPostBack="true" EnableLoadOnDemand="true"
                                        OnSelectedIndexChanged="radCombx_Vendor_SelectedIndexChanged">
                                    </telerik:RadComboBox>--%>
                                    <asp:HiddenField ID="hdn_VendorId" runat="server" />
                                </td>
                            </tr>
                            <tr>
                                <td colspan="4">
                                    <fieldset style="height: 100px; width: 527px;">
                                        <legend style="margin-bottom: 10px">Details</legend>
                                        <table>
                                            <tr>
                                                <td>
                                                    Organization
                                                </td>
                                                <td>
                                                    <telerik:RadComboBox ID="radCombx_Organization" runat="server" AutoPostBack="true"
                                                        OnSelectedIndexChanged="radCombx_Organization_SelectedIndexChanged" AppendDataBoundItems="true">
                                                    </telerik:RadComboBox>
                                                    <asp:HiddenField ID="hdn_OrganizationId" runat="server" />
                                                </td>
                                                <td>
                                                    User
                                                </td>
                                                <td>
                                                    <telerik:RadComboBox ID="radCombx_Requestor" runat="server" AutoPostBack="true" OnSelectedIndexChanged="radCombx_Requestor_SelectedIndexChanged"
                                                        AppendDataBoundItems="true">
                                                    </telerik:RadComboBox>
                                                    <asp:HiddenField ID="hdn_UserId" runat="server" />
                                                </td>
                                                <%--   <td align="right" style="width: 115px">
                                                    User
                                                </td>
                                                <td>
                                                    <telerik:RadComboBox ID="radCombx_User" runat="server">
                                                    </telerik:RadComboBox>
                                                </td>--%>
                                            </tr>
                                            <tr>
                                                <td>
                                                    Location
                                                </td>
                                                <td>
                                                    <telerik:RadComboBox ID="radCombx_Location" runat="server">
                                                    </telerik:RadComboBox>
                                                </td>
                                                <td align="right">
                                                    Department
                                                </td>
                                                <td>
                                                    <telerik:RadComboBox ID="radCombx_Department" runat="server">
                                                    </telerik:RadComboBox>
                                                </td>
                                            </tr>
                                            <%-- <tr>
                                                <td colspan="8" align="center">
                                                    <telerik:RadGrid ID="RadGrid1" runat="server" GridLines="None" AutoGenerateColumns="true">
                                                    </telerik:RadGrid>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="8" align="center">
                                                    <telerik:RadGrid ID="RadGrid2" runat="server">
                                                    </telerik:RadGrid>
                                                </td>
                                            </tr>--%>
                                            <tr>
                                                <td>
                                                    <asp:Label ID="lbl_Name" Text="Name :" runat="server"></asp:Label>
                                                </td>
                                                <td colspan="3">
                                                    <asp:Label ID="lbl_NameDisplay" runat="server" Text="Label" Width="100px"></asp:Label><asp:Label
                                                        ID="lbl_EmailDisplay" runat="server" Text="Label" Width="150px"></asp:Label>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <asp:Label ID="lbl_Location" Text="Location:" runat="server"></asp:Label>
                                                </td>
                                                <td colspan="3">
                                                    <asp:Label ID="lbl_LocationDispaly" runat="server" Text="Label"></asp:Label>
                                                    <asp:Label ID="lbl_CityDisplay" runat="server" Text="Label"></asp:Label>
                                                    <asp:Label ID="lbl_StateDisplay" runat="server" Text="Label"></asp:Label>
                                                </td>
                                            </tr>
                                        </table>
                                    </fieldset>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Notes
                                </td>
                                <td colspan="3">
                                    <telerik:RadTextBox ID="radtxt_Notes" runat="server" Height="75px" TextMode="MultiLine"
                                        Width="450px">
                                    </telerik:RadTextBox>
                                </td>
                            </tr>
                        </table>
                    </div>
                </telerik:RadAjaxPanel>
            </telerik:RadPageView>
            <telerik:RadPageView runat="server" ID="RadPageView2">
                <ul class="chat">
                    <li>Custom Fields<span class="time">(10:27)</span>: Custom Field PageView Show </li>
                </ul>
            </telerik:RadPageView>
            <telerik:RadPageView runat="server" ID="RadPageView3">
                <div style="width: 100%">
                    <table align="center">
                        <tr>
                            <td>
                                <telerik:RadAsyncUpload ID="RadAsyncUpload1" runat="server" MultipleFileSelection="Automatic"
                                    MaxFileInputsCount="10" MaxFileSize="10">
                                </telerik:RadAsyncUpload>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <telerik:RadGrid ID="RadGrid_Attachments" runat="server">
                                </telerik:RadGrid>
                            </td>
                        </tr>
                    </table>
                </div>
            </telerik:RadPageView>
            <telerik:RadPageView runat="server" ID="RadPageView4">
                <div style="width: 70%">
                    <table width="90%" align="center">
                        <tr>
                            <td>
                                <telerik:RadGrid ID="RadGrid_Requests" runat="server" Skin="Office2007">
                                </telerik:RadGrid>
                            </td>
                        </tr>
                    </table>
                </div>
            </telerik:RadPageView>
            <telerik:RadPageView runat="server" ID="RadPageView5">
                <div style="width: 70%">
                    <table width="90%" align="center">
                        <tr>
                            <td>
                                <asp:Label ID="Label1" runat="server" Text="Lease Provider" Width="130px"></asp:Label>
                            </td>
                            <td>
                                <telerik:RadTextBox runat="server" ID="Lease_Provider" Width="150px">
                                </telerik:RadTextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="Label2" runat="server" Text="Start Date" Width="130px"></asp:Label>
                            </td>
                            <td>
                                <telerik:RadDatePicker runat="server" ID="Lease_StartDate" Width="150px" DateInput-DateFormat="dd/MM/yyyy">
                                </telerik:RadDatePicker>
                            </td>
                            <td>
                                <asp:Label ID="Label3" runat="server" Text="End Date" Width="100px"></asp:Label>
                            </td>
                            <td>
                                <telerik:RadDatePicker runat="server" ID="Lease_EndDate" Width="150px" DateInput-DateFormat="dd/MM/yyyy">
                                </telerik:RadDatePicker>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="Label4" runat="server" Text="Payment Amount" Width="130px"></asp:Label>
                            </td>
                            <td>
                                <telerik:RadNumericTextBox runat="server" ID="Lease_PaymentAmount" Width="150px">
                                </telerik:RadNumericTextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="Label5" runat="server" Text="Payment Frequency" Width="130px"></asp:Label>
                            </td>
                            <td>
                                <telerik:RadNumericTextBox runat="server" ID="Lease_PaymentFrequency" Width="150px">
                                </telerik:RadNumericTextBox>
                            </td>
                            <td>
                                <asp:Label ID="Label6" runat="server" Text="Payment Terms" Width="100px"></asp:Label>
                            </td>
                            <td>
                                <telerik:RadNumericTextBox runat="server" ID="Lease_TotalPayments" Width="150px">
                                </telerik:RadNumericTextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="Label7" runat="server" Text="Additional Notes" Width="130px"></asp:Label>
                            </td>
                            <td colspan="2">
                                <telerik:RadTextBox runat="server" ID="Lease_Notes" Width="250" TextMode="MultiLine">
                                </telerik:RadTextBox>
                            </td>
                        </tr>
                        <%--<tr>
                        <td align="center" colspan="4">
                            <asp:Button runat="server" ID="Save" AccessKey="s" Text="Save" OnClick="Save_Click" />
                            <asp:Button runat="server" ID="Can" AccessKey="c" Text="Cancel" OnClick="Can_Click" />
                        </td>
                    </tr>--%>
                    </table>
                </div>
            </telerik:RadPageView>
            <telerik:RadPageView runat="server" ID="RadPageView6">
                <telerik:RadAjaxPanel ID="RadAjaxPanel2" runat="server" LoadingPanelID="RadAjaxLoadingPanel1">
                    <div style="width: 90%">
                        <table width="90%" align="center">
                            <tr>
                                <td>
                                    <telerik:RadGrid ID="RadGrid_ServiceContracts" runat="server" Skin="Office2007" AllowAutomaticInserts="True"
                                        AllowAutomaticUpdates="True" GridLines="None" AutoCompleteType="Disabled" AllowFilteringByColumn="True"
                                        AllowPaging="True" AllowSorting="True" OnNeedDataSource="RadGrid_ServiceContracts_NeedDataSource"
                                        OnItemDataBound="RadGrid_ServiceContracts_ItemDataBound" OnItemCommand="RadGrid_ServiceContracts_ItemCommand">
                                        <GroupingSettings CaseSensitive="false" />
                                        <MasterTableView AutoGenerateColumns="false" CommandItemDisplay="Top" EditMode="PopUp"
                                            IsFilterItemExpanded="false">
                                            <CommandItemTemplate>
                                                <telerik:RadToolBar ID="RadToolBar1" OnButtonClick="RadToolBar1_ButtonClick" runat="server"
                                                    OnClientButtonClicking="onToolBarClientButtonClicking">
                                                    <Items>
                                                        <telerik:RadToolBarButton Text="Add new" CommandName="InitInsert" ImageUrl="../../images/AddRecord.gif"
                                                            Visible='<%# !RadGrid_ServiceContracts.MasterTableView.IsItemInserted %>'>
                                                        </telerik:RadToolBarButton>
                                                        <telerik:RadToolBarButton Text="Filter" CommandName="Filter" ImageUrl="../../images/Filter 3.gif">
                                                        </telerik:RadToolBarButton>
                                                        <telerik:RadToolBarButton Text="Print" CommandName="Print" onclick="PrintRadGrid()">
                                                        </telerik:RadToolBarButton>
                                                        <telerik:RadToolBarButton Text="Refresh" CommandName="RebindGrid" ImageUrl="../../images/Refresh.gif">
                                                        </telerik:RadToolBarButton>
                                                    </Items>
                                                </telerik:RadToolBar>
                                            </CommandItemTemplate>
                                            <PagerStyle BackColor="#D8EBFC" Mode="NextPrevNumericAndAdvanced" />
                                            <HeaderStyle CssClass="dataheadcolor" />
                                            <RowIndicatorColumn>
                                                <HeaderStyle Width="20px"></HeaderStyle>
                                            </RowIndicatorColumn>
                                            <CommandItemSettings ExportToPdfText="Export to Pdf"></CommandItemSettings>
                                            <Columns>
                                                <telerik:GridEditCommandColumn ButtonType="ImageButton" HeaderStyle-Width="10px" />
                                                <telerik:GridBoundColumn DataField="ContractID" ReadOnly="true" Visible="false" SortExpression="ContractID"
                                                    UniqueName="ContractID" HeaderStyle-Width="30px">
                                                    <HeaderStyle Width="30px"></HeaderStyle>
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn DataField="Contract_Description" HeaderText="Contract Description"
                                                    SortExpression="Contract_Description" UniqueName="Contract_Description" HeaderStyle-Width="250px">
                                                    <HeaderStyle Width="250px"></HeaderStyle>
                                                </telerik:GridBoundColumn>
                                                <telerik:GridDropDownColumn HeaderText="Vendor Name" UniqueName="Vendor" DataSourceID="VendorDataSource"
                                                    ListTextField="Vendor_Name" ListValueField="Vendor_ID" DataField="Vendor_Name"
                                                    Visible="false">
                                                </telerik:GridDropDownColumn>
                                                <telerik:GridBoundColumn DataField="Vendor_Name" HeaderText="Vendor Name" SortExpression="Vendor_Name"
                                                    UniqueName="Vendor_Name" HeaderStyle-Width="150px" ReadOnly="true">
                                                    <HeaderStyle Width="150px"></HeaderStyle>
                                                </telerik:GridBoundColumn>
                                                <telerik:GridDateTimeColumn DataField="Contract_StartDate" HeaderText="StartDate"
                                                    SortExpression="Contract_StartDate" UniqueName="Contract_StartDate" FilterControlWidth="100px"
                                                    HeaderStyle-Width="150" PickerType="DatePicker" DataFormatString="{0:MM/dd/yyyy}"
                                                    Visible="false">
                                                </telerik:GridDateTimeColumn>
                                                <telerik:GridDateTimeColumn DataField="Contract_EndDate" HeaderText="EndDate" SortExpression="Contract_EndDate"
                                                    UniqueName="Contract_EndDate" FilterControlWidth="100" HeaderStyle-Width="150px"
                                                    PickerType="DatePicker" DataFormatString="{0:MM/dd/yyyy}" Visible="false">
                                                </telerik:GridDateTimeColumn>
                                                <telerik:GridDateTimeColumn DataField="Contract_WarrantyExpiryDate" HeaderText="ExpiryDate"
                                                    SortExpression="Contract_WarrantyExpiryDate" UniqueName="Contract_WarrantyExpiryDate"
                                                    FilterControlWidth="100px" HeaderStyle-Width="150px" PickerType="DatePicker"
                                                    DataFormatString="{0:MM/dd/yyyy}" Visible="false">
                                                </telerik:GridDateTimeColumn>
                                                <telerik:GridButtonColumn CommandName="Delete" ButtonType="ImageButton" UniqueName="DeleteColumn"
                                                    CommandArgument="Child" ConfirmDialogType="RadWindow" ConfirmText="Are You Sure Want To Delete This Record?"
                                                    ConfirmTitle="Delete Confirm" HeaderStyle-Width="10px" />
                                            </Columns>
                                        </MasterTableView>
                                    </telerik:RadGrid>
                                </td>
                            </tr>
                        </table>
                        <asp:SqlDataSource ID="VendorDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:TBSHelpDeskLiveDB_ConnectionString %>"
                            SelectCommand="SELECT Vendor_ID,Vendor_Name from AssetVendors where Vendor_Inactive=0">
                        </asp:SqlDataSource>
                    </div>
                </telerik:RadAjaxPanel>
            </telerik:RadPageView>
            <telerik:RadPageView runat="server" ID="RadPageView7">
                <ul class="chat">
                    <li>Audit<span class="time">(10:27)</span>: Audit PageView Show </li>
                </ul>
            </telerik:RadPageView>
        </telerik:RadMultiPage>



Thanks,
Mohamed
mohamed
Top achievements
Rank 1
 answered on 06 May 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?