Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
183 views
Hi,
How can I add an unique Id value to the URL in a hyperlink column:
Here is the code I have:

<telerik:GridHyperLinkColumn DataNavigateUrlFields="Firstname" UniqueName="FirstName" 
                                    DataNavigateUrlFormatString="VPCLeadDetails.aspx" DataTextField="Firstname" HeaderText="First Name" SortExpression="Firstname"

I tried searching on these topics and find it somewhat difficult with all the control properties available to me and not really knowing if I'm looking at the right property.

Thanks,
Princy
Top achievements
Rank 2
 answered on 09 Jun 2009
1 answer
157 views

I have a Radgrid with 4 detail tables at the same level beneath the Master. The last detail table sits right next to the previous table instead of below. How can I get the last table below the previous table.

<telerik:RadGrid ID="projectViewRG" runat="server" AutoGenerateColumns="False" DataSourceID="opportunityDS" GridLines="None" Skin="Office2007" AllowAutomaticUpdates="True" AllowPaging="True" PageSize="15">

                <MasterTableView DataKeyNames="OPPORTUNITY_SID,OPPORTUNITY_STATUS_SID" TableLayout="Auto" DataSourceID="opportunityDS" >

                    <RowIndicatorColumn>

                        <HeaderStyle Width="20px" />

                    </RowIndicatorColumn>

                    <ExpandCollapseColumn Visible="True">

                        <HeaderStyle Width="20px" />

                    </ExpandCollapseColumn>

                    <Columns>

                        <telerik:GridButtonColumn CommandName="Forward" CommandArgument="OPPORTUNITY_SID" Text="Forward" UniqueName="ForwardColumn">

                        </telerik:GridButtonColumn>

                        <telerik:GridButtonColumn CommandName="DBEAccept" Text="Accept" CommandArgument="OPPORTUNITY_SID" UniqueName="DBEAcceptColumn">

                        </telerik:GridButtonColumn>

                        <telerik:GridButtonColumn CommandName="DBEReject" Text="Reject" CommandArgument="OPPORTUNITY_SID" UniqueName="DBERejectColumn">

                        </telerik:GridButtonColumn>

                        <telerik:GridButtonColumn CommandName="DBEWaive" Text="Waive" CommandArgument="OPPORTUNITY_SID" UniqueName="DBEWaiveColumn">

                        </telerik:GridButtonColumn>

                        <telerik:GridButtonColumn CommandName="Post" Text="Post" CommandArgument="OPPORTUNITY_SID" UniqueName="PostColumn">

                        </telerik:GridButtonColumn>

                        <telerik:GridButtonColumn CommandName="BidClose" Text="Close Bidding" CommandArgument="OPPORTUNITY_SID" UniqueName="BidCloseColumn">

                        </telerik:GridButtonColumn>

                        <telerik:GridButtonColumn CommandName="Award" Text="Award"  CommandArgument="OPPORTUNITY_SID" UniqueName="AwardColumn">

                        </telerik:GridButtonColumn>

                        <telerik:GridButtonColumn CommandName="Allowance" Text="Allowance" CommandArgument="OPPORTUNITY_SID" UniqueName="AllowanceColumn">

                        </telerik:GridButtonColumn>

                        <telerik:GridButtonColumn CommandName="Close" Text="Close" CommandArgument="OPPORTUNITY_SID" UniqueName="CloseColumn">

                        </telerik:GridButtonColumn>

                        <telerik:GridEditCommandColumn>

                        </telerik:GridEditCommandColumn>

                        <telerik:GridBoundColumn DataField="OPPORTUNITY_SID" DataType="System.Int32" EmptyDataText="&amp;nbsp;"

                            HeaderText="ID" ReadOnly="True" SortExpression="OPPORTUNITY_SID"

                            UniqueName="OPPORTUNITY_SID">

                        </telerik:GridBoundColumn>

                        <telerik:GridBoundColumn DataField="AGENCY_DIVISION_SID" DataType="System.Int32"

                            EmptyDataText="&amp;nbsp;" HeaderText="AGENCY_DIVISION_SID" SortExpression="AGENCY_DIVISION_SID"

                            UniqueName="AGENCY_DIVISION_SID" Visible="False">

                        </telerik:GridBoundColumn>

                        <telerik:GridBoundColumn DataField="OPPORTUNITY_TYPE_SID" DataType="System.Int32"

                            EmptyDataText="&amp;nbsp;" HeaderText="OPPORTUNITY_TYPE_SID" SortExpression="OPPORTUNITY_TYPE_SID"

                            UniqueName="OPPORTUNITY_TYPE_SID" Visible="False">

                        </telerik:GridBoundColumn>

                        <telerik:GridBoundColumn DataField="OPPORTUNITY_STATUS_SID" DataType="System.Int32"

                            EmptyDataText="&amp;nbsp;" HeaderText="OPPORTUNITY_STATUS_SID" SortExpression="OPPORTUNITY_STATUS_SID"

                            UniqueName="OPPORTUNITY_STATUS_SID" Visible="False">

                        </telerik:GridBoundColumn>

                        <telerik:GridBoundColumn DataField="OPPORTUNITY_APPROVAL_SID" DataType="System.Int32"

                            EmptyDataText="&amp;nbsp;" HeaderText="OPPORTUNITY_APPROVAL_SID" SortExpression="OPPORTUNITY_APPROVAL_SID"

                            UniqueName="OPPORTUNITY_APPROVAL_SID" Visible="False">

                        </telerik:GridBoundColumn>

                        <telerik:GridBoundColumn DataField="OPPORTUNITY_TITLE" EmptyDataText="&amp;nbsp;"

                            HeaderText="Title" SortExpression="OPPORTUNITY_TITLE" UniqueName="OPPORTUNITY_TITLE">

                        </telerik:GridBoundColumn>

                        <telerik:GridTemplateColumn DataField="OPPORTUNITY_DESC" HeaderText="Description"

                            SortExpression="OPPORTUNITY_DESC" UniqueName="OPPORTUNITY_DESC" Visible="False">

                            <EditItemTemplate>

                                <asp:TextBox ID="OPPORTUNITY_DESCTextBox" runat="server" Rows="6" Text='<%# Bind("OPPORTUNITY_DESC") %>'

                                    TextMode="MultiLine" Width="400px"></asp:TextBox>

                            </EditItemTemplate>

                            <ItemTemplate>

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

                            </ItemTemplate>

                        </telerik:GridTemplateColumn>

                        <telerik:GridTemplateColumn DataField="OPPORTUNITY_DATE_POSTED" DataType="System.DateTime"

                            HeaderText="Date Posted" SortExpression="OPPORTUNITY_DATE_POSTED" UniqueName="OPPORTUNITY_DATE_POSTED">

                            <EditItemTemplate>

                                <asp:TextBox ID="OPPORTUNITY_DATE_POSTEDTextBox" runat="server" Text='<%# Bind("OPPORTUNITY_DATE_POSTED", "{0:MM-dd-yyyy}") %>'></asp:TextBox>

                                <cc1:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="OPPORTUNITY_DATE_POSTEDTextBox">

                                </cc1:CalendarExtender>

                            </EditItemTemplate>

                            <ItemTemplate>

                                <asp:Label ID="OPPORTUNITY_DATE_POSTEDLabel" runat="server" Text='<%# Eval("OPPORTUNITY_DATE_POSTED", "{0:MM-dd-yyyy}") %>'></asp:Label>

                            </ItemTemplate>

                        </telerik:GridTemplateColumn>

                        <telerik:GridTemplateColumn DataField="OPPORTUNITY_DATE_OPEN" DataType="System.DateTime"

                            HeaderText="Opened" SortExpression="OPPORTUNITY_DATE_OPEN" UniqueName="OPPORTUNITY_DATE_OPEN"

                            Visible="False">

                            <EditItemTemplate>

                                <asp:TextBox ID="OPPORTUNITY_DATE_OPENTextBox" runat="server" Text='<%# Bind("OPPORTUNITY_DATE_OPEN") %>'></asp:TextBox>

                            </EditItemTemplate>

                            <ItemTemplate>

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

                            </ItemTemplate>

                        </telerik:GridTemplateColumn>

                        <telerik:GridBoundColumn DataField="OPPORTUNITY_DATE_CLOSED" DataType="System.DateTime"

                            EmptyDataText="&amp;nbsp;" HeaderText="Closed" SortExpression="OPPORTUNITY_DATE_CLOSED"

                            UniqueName="OPPORTUNITY_DATE_CLOSED" Visible="False">

                        </telerik:GridBoundColumn>

                        <telerik:GridTemplateColumn DataField="OPPORTUNITY_AMOUNT" DataType="System.Decimal"

                            HeaderText="Amount" SortExpression="OPPORTUNITY_AMOUNT" UniqueName="OPPORTUNITY_AMOUNT">

                            <EditItemTemplate>

                                <asp:TextBox ID="OPPORTUNITY_AMOUNTTextBox" runat="server" Text='<%# Bind("OPPORTUNITY_AMOUNT", "{0:c}") %>'></asp:TextBox>

                            </EditItemTemplate>

                            <ItemTemplate>

                                <asp:Label ID="OPPORTUNITY_AMOUNTLabel" runat="server" Text='<%# Eval("OPPORTUNITY_AMOUNT", "{0:c}") %>'></asp:Label>

                            </ItemTemplate>

                        </telerik:GridTemplateColumn>

                        <telerik:GridBoundColumn DataField="OPPORTUNITY_RECOMMEND_DBE_PERCENT" DataType="System.Decimal"

                            EmptyDataText="&amp;nbsp;" HeaderText="DBE %" SortExpression="OPPORTUNITY_RECOMMEND_DBE_PERCENT"

                            UniqueName="OPPORTUNITY_RECOMMEND_DBE_PERCENT">

                        </telerik:GridBoundColumn>

                        <telerik:GridCheckBoxColumn DataField="OPPORTUNITY_FAX_BIDS" DataType="System.Boolean"

                            HeaderText="Fax Bids?" SortExpression="OPPORTUNITY_FAX_BIDS" UniqueName="OPPORTUNITY_FAX_BIDS" Visible="False">

                        </telerik:GridCheckBoxColumn>

                        <telerik:GridBoundColumn DataField="AGENCY_DIVISION_MGR_SID" DataType="System.Int32"

                            EmptyDataText="&amp;nbsp;" HeaderText="Manager" SortExpression="AGENCY_DIVISION_MGR_SID"

                            UniqueName="AGENCY_DIVISION_MGR_SID" Visible="False">

                        </telerik:GridBoundColumn>

                        <telerik:GridBoundColumn DataField="OPPORTUNITY_DATE_BID_CLOSED" DataType="System.DateTime"

                            EmptyDataText="&amp;nbsp;" HeaderText="Closed" SortExpression="OPPORTUNITY_DATE_BID_CLOSED"

                            UniqueName="OPPORTUNITY_DATE_BID_CLOSED" Visible="False">

                        </telerik:GridBoundColumn>

                        <telerik:GridTemplateColumn UniqueName="AddDocColumn">

                            <ItemTemplate>

                                <asp:LinkButton ID="AddDocLB" runat="server"  CausesValidation="False" CommandName="AddDoc" Text="Add Doc" CommandArgument='<%# Eval("OPPORTUNITY_SID") %>'></asp:LinkButton>

                            </ItemTemplate>

                        </telerik:GridTemplateColumn>

                        <telerik:GridButtonColumn CommandName="Delete" Text="Delete" UniqueName="DeleteColumn">

                        </telerik:GridButtonColumn>

                    </Columns>

                    <EditFormSettings>

                        <EditColumn UniqueName="EditCommandColumn1">

                        </EditColumn>

                        <FormTemplate>

                            Test Edit

                        </FormTemplate>

                    </EditFormSettings>

                    <DetailTables>

                        <telerik:GridTableView runat="server" Caption="Action Notes" Name="ActionNotes" NoDetailRecordsText="No Notes to display."  DataSourceID="OpportunityNotesDS"

                         BorderStyle="Inset" Width="550px" BorderColor="#000099" BorderWidth="1px" Font-Bold="False" Font-Italic="False" Font-Names="Verdana" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" GridLines="Horizontal" CellPadding="1" CellSpacing="1" DataKeyNames="OPPORTUNITY_SID"

                        >

                            <RowIndicatorColumn>

                                <HeaderStyle Width="20px" />

                            </RowIndicatorColumn>

                            <ExpandCollapseColumn>

                                <HeaderStyle Width="20px" />

                            </ExpandCollapseColumn>

                            <Columns>

                             <telerik:GridBoundColumn DataField="ACTION_NOTE" EmptyDataText="&amp;nbsp;"

                                    HeaderText="Action Note" UniqueName="ACTIONNOTEColumn">

                             </telerik:GridBoundColumn>

                             <telerik:GridBoundColumn DataField="ACTION_NOTE_DATE" DataFormatString="{0:M-dd-yyyy}" EmptyDataText="&amp;nbsp;"

                                    HeaderText="Date Added" UniqueName="NoteDateColumn">

                             </telerik:GridBoundColumn>

                            <telerik:GridBoundColumn DataField="OPPORTUNITY_SID" EmptyDataText="&amp;nbsp;"

                                    HeaderText="Opportunity ID" Visible="False" UniqueName="OpportunityIDColumn">

                             </telerik:GridBoundColumn>

                                <telerik:GridBoundColumn DataField="OPPORTUNITY_ACTION_NOTE_ID" EmptyDataText="&amp;nbsp;"

                                    HeaderText="OPPORTUNITY_ACTION_NOTE_ID" UniqueName="column" Visible="False">

                                </telerik:GridBoundColumn>

                            </Columns>

                            <HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"

                                Font-Underline="False" Wrap="False" Font-Names="Verdana" HorizontalAlign="Left" />

                            <ParentTableRelation>

                                <telerik:GridRelationFields DetailKeyField="OPPORTUNITY_SID" MasterKeyField="OPPORTUNITY_SID" />

                            </ParentTableRelation>

                        </telerik:GridTableView>

                        <telerik:GridTableView runat="server" DataKeyNames="OPPORTUNITY_SID,RESOURCE_PRIME_BID_SID"

                        Caption="Current Bids" DataSourceID="bidsDS" Name="CurrentBids" NoDetailRecordsText="No bids to display." Summary="Current Bids" BorderStyle="Inset" Width="550px" BorderColor="#000099" BorderWidth="1px" Font-Bold="False" Font-Italic="False" Font-Names="Verdana" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" GridLines="Horizontal" CellPadding="1" CellSpacing="1">

                            <RowIndicatorColumn>

                                <HeaderStyle Width="20px" />

                            </RowIndicatorColumn>

                            <ExpandCollapseColumn>

                                <HeaderStyle Width="20px" />

                            </ExpandCollapseColumn>

                            <Columns>

                                <telerik:GridButtonColumn CommandName="Award" Text="Award" UniqueName="AwardColumn" CommandArgument="RESOURCE_PRIME_BID_SID">

                                </telerik:GridButtonColumn>

                                <telerik:GridBoundColumn DataField="RESOURCE_PRIME_BID_SID" EmptyDataText="&amp;nbsp;"

                                    HeaderText="Bid ID" UniqueName="BidIDColumn">

                                </telerik:GridBoundColumn>

                                <telerik:GridBoundColumn DataField="OPPORTUNITY_SID" EmptyDataText="&amp;nbsp;" HeaderText="Opportunity ID"

                                    UniqueName="column1" Visible="False">

                                </telerik:GridBoundColumn>

                                <telerik:GridBoundColumn DataField="CONTRACTOR_SID" EmptyDataText="&amp;nbsp;" HeaderText="Contractor ID"

                                    UniqueName="column2" Visible="False">

                                </telerik:GridBoundColumn>

                                <telerik:GridBoundColumn DataField="CONTRACTOR_COMPANY_NAME" EmptyDataText="&amp;nbsp;"

                                    HeaderText="Company Name" SortExpression="CONTRACTOR_COMPANY_NAME" UniqueName="column5">

                                </telerik:GridBoundColumn>

                                <telerik:GridBoundColumn DataField="MATCH_DATE" DataFormatString="{0:mm/dd/yyyy}"

                                    EmptyDataText="&amp;nbsp;" HeaderText="Date Entered" SortExpression="MATCH_DATE"

                                    UniqueName="column4">

                                </telerik:GridBoundColumn>

                                <telerik:GridBoundColumn DataField="BID_AMOUNT" DataFormatString="{0:c}" EmptyDataText="&amp;nbsp;"

                                    HeaderText="Amount" SortExpression="BID_AMOUNT" UniqueName="column3">

                                </telerik:GridBoundColumn>

                            </Columns>

                            <HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"

                                Font-Underline="False" Wrap="False" Font-Names="Verdana" HorizontalAlign="Left" />

                        </telerik:GridTableView>

                        <telerik:GridTableView runat="server" NoDetailRecordsText="No Tasks Entered" AllowAutomaticDeletes="True" AllowAutomaticInserts="True" Width="550px" BorderColor="#000099" BorderWidth="1px" BorderStyle="Solid" Caption="Job Tasks" DataKeyNames="OPPORTUNITY_SID"

                            DataSourceID="opportunityTaskDS" Name="OpportunityTasks" HorizontalAlign="Left" Summary="Job Tasks">

                            <ParentTableRelation>

                                <telerik:GridRelationFields DetailKeyField="OPPORTUNITY_SID" MasterKeyField="OPPORTUNITY_SID" />

                            </ParentTableRelation>

                           <HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"

                                Font-Underline="False" Wrap="False" Font-Names="Verdana" HorizontalAlign="Left" />

                            <RowIndicatorColumn>

                                <HeaderStyle Width="20px" />

                            </RowIndicatorColumn>

                            <ExpandCollapseColumn>

                                <HeaderStyle Width="20px" />

                            </ExpandCollapseColumn>

                            <Columns>

                                <telerik:GridBoundColumn DataField="OPPORTUNITY_TASK_SID" EmptyDataText="&amp;nbsp;"

                                    HeaderText="OPPORTUNITY_TASK_SID" UniqueName="column1" Visible="False">

                                </telerik:GridBoundColumn>

                                <telerik:GridBoundColumn DataField="OPPORTUNITY_SID" EmptyDataText="&amp;nbsp;" HeaderText="OPPORTUNITY_SID"

                                    UniqueName="column2" Visible="False">

                                </telerik:GridBoundColumn>

                                <telerik:GridBoundColumn DataField="OPPORTUNITY_TASK_CONTRACTOR_SID" EmptyDataText="&amp;nbsp;"

                                    HeaderText="Contractor ID" SortExpression="OPPORTUNITY_TASK_CONTRACTOR_SID" UniqueName="column3">

                                </telerik:GridBoundColumn>

                                <telerik:GridBoundColumn DataField="OPPORTUNITY_TASK_NAICS_CODE" EmptyDataText="&amp;nbsp;"

                                    HeaderText="NAICS Code" SortExpression="OPPORTUNITY_TASK_NAICS_CODE" UniqueName="column4">

                                </telerik:GridBoundColumn>

                                <telerik:GridBoundColumn DataField="OPPORTUNITY_TASK_NAME" EmptyDataText="&amp;nbsp;"

                                    HeaderText="Name" SortExpression="OPPORTUNITY_TASK_NAME" UniqueName="column5">

                                </telerik:GridBoundColumn>

                                <telerik:GridBoundColumn DataField="OPPORTUNITY_TASK_DESCRIPTION" EmptyDataText="&amp;nbsp;"

                                    HeaderText="Description" SortExpression="OPPORTUNITY_TASK_DESCRIPTION" UniqueName="column6">

                                </telerik:GridBoundColumn>

                                <telerik:GridBoundColumn DataField="OPPORTUNITY_TASK_STATUS" EmptyDataText="&amp;nbsp;"

                                    HeaderText="Status" SortExpression="OPPORTUNITY_TASK_STATUS" UniqueName="column">

                                </telerik:GridBoundColumn>

                            </Columns>

                        </telerik:GridTableView>

                        <telerik:GridTableView runat="server" Caption="Project Documents" Width="550px" BorderColor="#000099" BorderWidth="1px" BorderStyle="Solid"

                            DataKeyNames="OPPORTUNITY_SID,OPPORTUNITY_DOCUMENT_SID" DataSourceID="documentsDS" Summary="Project Documents" GridLines="Horizontal" HorizontalAlign="Left" NoDetailRecordsText="No opportunity documents saved." AllowAutomaticDeletes="True" EditMode="PopUp" Name="ProjectDocuments">

                            <ParentTableRelation>

                                <telerik:GridRelationFields DetailKeyField="OPPORTUNITY_SID" MasterKeyField="OPPORTUNITY_SID" />

                            </ParentTableRelation>

                            <HeaderStyle BorderColor="Silver" BorderWidth="1px" Font-Bold="True" Font-Italic="False" Font-Names="Arial" Font-Overline="False" Font-Size="X-Small" Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Left" Wrap="True" />

                            <RowIndicatorColumn>

                                <HeaderStyle Width="20px" />

                            </RowIndicatorColumn>

                            <ExpandCollapseColumn>

                                <HeaderStyle Width="20px" />

                            </ExpandCollapseColumn>

                            <Columns>

                                <telerik:GridEditCommandColumn>

                                </telerik:GridEditCommandColumn>

                                <telerik:GridTemplateColumn HeaderText="View" UniqueName="ViewDocument">

                                    <ItemTemplate>

                                        <asp:LinkButton ID="viewDocLB" runat="server" CommandArgument='<%# Bind("OPPORTUNITY_DOCUMENT_FILENAME") %>' >View</asp:LinkButton>

                                        <br />

                                    </ItemTemplate>

                                </telerik:GridTemplateColumn>

                                <telerik:GridTemplateColumn DataField="OPPORTUNITY_DOCUMENT_ACTIVE" DataType="System.Boolean"

                                    HeaderText="isActive" UniqueName="column">

                                    <EditItemTemplate>

                                        <asp:CheckBox ID="isActiveCB" runat="server" Checked='<%# Bind("OPPORTUNITY_DOCUMENT_ACTIVE") %>' />

                                    </EditItemTemplate>

                                    <ItemTemplate>

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

                                    </ItemTemplate>

                                </telerik:GridTemplateColumn>

                                <telerik:GridBoundColumn DataField="OPPORTUNITY_DOCUMENT_SID" EmptyDataText="&amp;nbsp;"

                                    HeaderText="ID" UniqueName="column1" Visible="False">

                                </telerik:GridBoundColumn>

                                <telerik:GridBoundColumn DataField="OPPORTUNITY_DOCUMENT_TITLE" EmptyDataText="&amp;nbsp;"

                                    HeaderText="Title" UniqueName="column2">

                                </telerik:GridBoundColumn>

                                <telerik:GridBoundColumn DataField="OPPORTUNITY_DOCUMENT_DESC" EmptyDataText="&amp;nbsp;"

                                    HeaderText="Description" UniqueName="column6" Visible="False">

                                </telerik:GridBoundColumn>

                                <telerik:GridTemplateColumn DataField="OPPORTUNITY_DOCUMENT_FILENAME" HeaderText="File Name"

                                    UniqueName="column3" Visible="False">

                                    <EditItemTemplate>

                                        <asp:TextBox ID="OPPORTUNITY_DOCUMENT_FILENAMETextBox" runat="server" Text='<%# Bind("OPPORTUNITY_DOCUMENT_FILENAME") %>' Width="200px"></asp:TextBox>

                                    </EditItemTemplate>

                                    <ItemTemplate>

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

                                    </ItemTemplate>

                                </telerik:GridTemplateColumn>

                                <telerik:GridTemplateColumn DataField="OPPORTUNITY_DOCUMENT_DATE_POST" HeaderText="Date Posted"

                                    UniqueName="column4">

                                    <EditItemTemplate>

                                        <asp:TextBox ID="OPPORTUNITY_DOCUMENT_DATE_POSTTextBox" runat="server" Text='<%# Bind("OPPORTUNITY_DOCUMENT_DATE_POST") %>'></asp:TextBox>

                                    </EditItemTemplate>

                                    <ItemTemplate>

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

                                    </ItemTemplate>

                                </telerik:GridTemplateColumn>

                                <telerik:GridBoundColumn DataField="OPPORTUNITY_DOCUMENT_PAYMENT_AMOUNT" EmptyDataText="&amp;nbsp;"

                                    HeaderText="Cost" UniqueName="DocCostColumn">

                                </telerik:GridBoundColumn>

                                <telerik:GridTemplateColumn DataField="OPPORTUNITY_DOCUMENT_PAYMENT_REQUIRED" HeaderText="Payment Required"

                                    UniqueName="column5">

                                    <EditItemTemplate>

                                        <asp:CheckBox ID="paymentReqCB" runat="server" Checked='<%# Bind("OPPORTUNITY_DOCUMENT_PAYMENT_REQUIRED") %>' />

                                    </EditItemTemplate>

                                    <ItemTemplate>

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

                                    </ItemTemplate>

                                </telerik:GridTemplateColumn>

                            </Columns>

                            <EditFormSettings>

                                <EditColumn UniqueName="EditCommandColumn1">

                                </EditColumn>

                            </EditFormSettings>

                        </telerik:GridTableView>

                       

                    </DetailTables>

                </MasterTableView>

                <FilterMenu EnableTheming="True" Skin="Office2007">

                    <CollapseAnimation Duration="200" Type="OutQuint" />

                </FilterMenu>

            </telerik:RadGrid>

Shinu
Top achievements
Rank 2
 answered on 09 Jun 2009
5 answers
167 views
Hi
I am using radgrid q3 2008 and the default skin which I have not modified in anyway. I have a very simple master -detail grid and it is not being displayed properly. I believe this is because the detail grid is a lot smaller than the child grid. Specifically the right border of the child grid is not displayed and neither is the botom border of the row above the detail table or the top border of the row below the detail table

You can look at the page here. Click the submit button to show the grid.

84.92.22.217/suretrack2/tracking/vehicletrackingreport.aspx

Many thanks
andieje
Top achievements
Rank 1
 answered on 08 Jun 2009
3 answers
169 views
Hi

I am using 2 datetimepickers and a control validator to make sure the end date of something is after the start date but it is not working. I am receiving the error message of the validator no matter what I put in the end date. Please can you tell me what I am doing wrong.

Many thanks

 

<tr>

 

 

<td>Start date</td>

 

 

<td>

 

 

<telerik:RadDateTimePicker ID="dpStartTime" runat="server">

 

 

</telerik:RadDateTimePicker>

 

 

<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="dpStartTime"

 

 

ErrorMessage="RequiredFieldValidator">Start date required</asp:RequiredFieldValidator>

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td>End Time</td>

 

 

<td>

 

 

<telerik:RadDateTimePicker ID="dpEndTime" runat="server">

 

 

</telerik:RadDateTimePicker>

 

 

<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="dpEndTime"

 

 

ErrorMessage="RequiredFieldValidator">End date required</asp:RequiredFieldValidator></td>

 

 

</tr>

 

 

<tr>

 

 

<td>

 

 

<asp:CompareValidator ID="dateCompareValidator" runat="server" ControlToValidate="dpEndTime"

 

ControlToCompare

 

="dpStartTime" Operator="GreaterThan" Type="Date" ErrorMessage="The end date must be after the start date."></asp:CompareValidator>

 

 

</td>

 

 

<td>

 

 

</td>

 

 

</tr>

 

andieje
Top achievements
Rank 1
 answered on 08 Jun 2009
2 answers
159 views
Hi,

I have a problem here. I don't know if my approach is the best, but I'm using a menu as breadcrumbs because I need  each breadcrumb to have a menu. I am implementing the easy way and recreating in javascript all the items and menus of the breadbrumbs. In my case there is no performance issues as at most there will be only 4 layers and not many menu items on each layer.

However, I'm now facing a problem. When someone clicks one of the items in the breadcrumbs menu, I clear all items in the menu and recreate it to reflect the new navigation content. Everything seems to work fine, until I get a javascript error on the Telerik code when I try to hover the new menu item. It happens when it tries to run some code to update the zIndex of the control, however the control items are not there anymore, my routine already removed and recreated with other items.

Is there a way to accomplish that? Recreating the whole menu is much easier than checking where it was clicked and only update the items needed :)

Here it is a testing code I am using (the real code is much, much bigger):

<html xmlns="http://www.w3.org/1999/xhtml" > 
<head runat="server"
    <title></title
     
    <telerik:radcodeblock ID="RadCodeBlock1" runat="server"
        <script type="text/javascript"
            function onClicking(sender, eventArgs) { 
                var BreadCrumbs = $find("<%= RadMenu1.ClientID %>"); 
                var item = eventArgs.get_item(); 
                var name = item.get_text(); 
                BreadCrumbs.get_items().clear(); 
                var childItem = new Telerik.Web.UI.RadMenuItem(); 
                childItem.set_text(name); 
                for (var i = 0; i < 3; i++) { 
                    var menuItem = new Telerik.Web.UI.RadMenuItem(); 
                    menuItem.set_text("Test " + i); 
                    childItem.get_items().add(menuItem); 
                } 
                BreadCrumbs.get_items().add(childItem); 
            } 
        </script> 
    </telerik:radcodeblock> 
</head> 
<body> 
    <form id="form1" runat="server"
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server"
    </telerik:RadScriptManager> 
    <div> 
        <telerik:RadMenu ID="RadMenu1" runat="server" 
                OnClientItemClicking="onClicking"
            <Items> 
                <telerik:RadMenuItem runat="server" Text="Root"
                    <Items> 
                        <telerik:RadMenuItem runat="server" Text="Test 1"
                        </telerik:RadMenuItem> 
                        <telerik:RadMenuItem runat="server" Text="Test 2"
                        </telerik:RadMenuItem> 
                        <telerik:RadMenuItem runat="server" Text="Test 3"
                        </telerik:RadMenuItem> 
                    </Items> 
                </telerik:RadMenuItem> 
            </Items> 
        </telerik:RadMenu> 
    </div> 
    </form> 
</body> 
</html> 
 

Thanks,
Eduardo
Eduardo
Top achievements
Rank 1
 answered on 08 Jun 2009
2 answers
204 views

Is there a good source for commands to help me uninstall and deploy RadControls?

 

I’m having problems removing the old RadControls (RadControls_for_ASP.NET_AJAX_2008_3_1314_dev.exe) and deploying the new RadControls (RadControls_for_ASP.NET_AJAX_2009_1_402_dev.exe) to several of our software developers computers. We are using System Center Essentials to deploy our applications.

 

 

-----Uninstalling RadControls_for_ASP.NET_AJAX_2008_3_1314_dev.exe-----

I used the TARGET right from the properties of the RadControls Uninstall option in the Start Menu (msiexec.exe /qn /x {2B1D699A-9AA3-11DD-89B7-11CA56D89593}). Well, I guess I added the /qn to make it a “silent” uninstall. Using this command seems to only partially work. It removes references from the desktop and the Start Menu, but I look in the Add/Remove Programs it is still listed.

 

 

-----Deploy RadControls_for_ASP.NET_AJAX_2009_1_402_dev.exe-----

When Q3 2008 came out I was able to use “-s –v –sms” to create a deployment package that installed it quite well. Unfortunately I can’t remember where I found the source of that information. Also, those parameters/switches aren’t working when trying to deploy Q1 2009. The only way I’ve been able to successfully install Q1 2009 is by manually running the exe without any parameters/switches. We have many developers so it wouldn’t be practical to manually install this.

 

I would appreciate any links or insight on this subject.

 

Thank you,

Jim

Jim
Top achievements
Rank 1
 answered on 08 Jun 2009
6 answers
191 views
Hopefully someone can help me.

I have a user control that will have a tool tip on it.

So I have a tooltip manager on it:

<telerik:RadToolTipManager runat="server" ID="RadToolTipManager1" Skin="Vista" OnAjaxUpdate="OnAjaxUpdate" Position="MiddleRight" Width="400px" Height="300px" Animation="Slide" Sticky="true" /> 

in the code behind for the control I have

protected void OnAjaxUpdate(object sender, ToolTipUpdateEventArgs args) 
        { 
            this.UpdateToolTip(args.Value, args.UpdatePanel); 
        } 
        private void UpdateToolTip(string elementID, UpdatePanel panel) 
        { 
            HtmlGenericControl htmlGenericControl = new HtmlGenericControl("H1"); 
            htmlGenericControl.InnerText = "<font style=\"color: black;\">This is a tool tip for " + elementID + "</font>"; 
            panel.ContentTemplateContainer.Controls.Add(htmlGenericControl); 
            panel.ContentTemplateContainer.Controls.Add(new HtmlGenericControl("HR")); 
        } 


I step through the code and on the mouseover of my target it goes into these methods but when its all done, the tooltip is just blank.  Any ideas on what I should look at?
Feizal Amlani
Top achievements
Rank 1
 answered on 08 Jun 2009
2 answers
86 views
Hi,

Is there a way to find out if a Grid has been grouped by any column using the client API?  The grid I'm using is grouped on the client. I need to disable some items on my page when the user groups the grid by any column.

Thank you!
Condorito
Top achievements
Rank 1
 answered on 08 Jun 2009
2 answers
103 views
Hi there

I'm currently working on a project where we'd like to have the same functionality as Telerik uses on the demos pages. What I'm refering to is the part in the bottom where they are using a toolbar to mimic tab behavior.

Has anyone (Telerik) perhaps any examples on how such functionality is implemented?

Thanks in advance...
Bent
Top achievements
Rank 2
 answered on 08 Jun 2009
3 answers
518 views
Why does the input control (when textmode = password) default with asterisks in firefox?  IE does not have this issue.  8 asterisks appear making it seem as if a value is already in the textbox, however when you click into the textbox they disappear.

If I place two password controls on the same page, only the first input box displays the asterisks.

Here is a very simple page showing this issue, please advise how we can fix this.  We would like the default logic to appear with no asterisks as it may be confusing to the user.  Thanks.

<%@ Page language="VB" AutoEventWireup="false" %>  
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>  
  
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">  
<html xml:lang="en-US" xmlns="http://www.w3.org/1999/xhtml">  
<body>  
    <form runat="server" id="mainForm" method="post">  
        <asp:ScriptManager id="ScriptManager1" runat="server" />  
 
        <p>Type Old Password:</p>  
        <telerik:radtextbox Width="220px" id="OldPassword" TabIndex="1" runat="server" TextMode="Password" Skin="Vista"></telerik:radtextbox> 
         
        <p>Type New Password:</p>  
        <telerik:radtextbox Width="220px" id="NewPassword" TabIndex="2" runat="server" TextMode="Password" Skin="Vista"></telerik:radtextbox> 
 
    </form>  
</body>  
</html>  

Brenden
Top achievements
Rank 1
 answered on 08 Jun 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?