Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
150 views
I have a hierarchy RadGrid with a master and one detail.  I'm declaring my dataSources with SQLDataSource.  The master shows a column summing up the detail dollar amounts.

The binding works great on initial load and if I manually click refresh on the detail. 

I can't seem to figure out how to get the master to auto-refresh (rebind) after a detail record is added, deleted or updated.

Please help.

Thanks,
Scott
Princy
Top achievements
Rank 2
 answered on 18 Dec 2009
1 answer
127 views
Binding the radcomboboxes in the edit item template in radgrid detail table view,where two radcomboboxes has relation.and they had to be selected when we  click edit.

Example:

I have two radcombobboxes in two  Different  EditItem Templates's in radgrid detail table view ,one radcombobox consists of country's and based on the selection of the country another rad combobox is get databinded with city.

While inserting there is no problem,but when i click edit the radcomboboxes are not been selected with there selected values
Yavor
Telerik team
 answered on 18 Dec 2009
2 answers
173 views
Hi,

In the RadEditor, I used Image Manager to upload an image and then added it to the Editor. But if I move the image to a new position, the relative url image path get rewritten to the absolute url (<IMG alt="" src="/MyProject/content/Images/$2_Bill_Concert.jpg"> ===> <IMG alt="" src="http://localhost/MyProject/content/Images/$2_Bill_Concert.jpg"> ). I tried using "

HtmlContent.ContentFilters =

EditorFilters.None;" and also 

 

"StripAbsoluteImagesPaths

 

="true". None of those seemed work. Is there any other way to fix this. I want the image url to stay relative.

Thanks in adavnce for your help.
AM

 

Fit2Page
Top achievements
Rank 3
Bronze
Bronze
Iron
 answered on 18 Dec 2009
1 answer
130 views
Is it possible to have multiple columns in a griddropdowncolumn combobox like the combobox control can?
Princy
Top achievements
Rank 2
 answered on 18 Dec 2009
1 answer
137 views

I am encountering a very weird problem where my Radgrid seems to refresh or update the page on its own when I’m entering data in edit mode and insert mode.  It’s not prematurely submitting the form because there is no postback (I checked it with a response.write on the form values) and the form is not refreshing because it doesn’t ask me if I want to resent the information previously submitted after to hitting the edit button to get to edit mode.  If there is no querystring the grid automatically goes into insert mode and it does the same thing there also.  There are no “OnClientSelectedIndexChanged” events and AutoPostBack is set to false on my RadComboBoxes.  I have wrestled with this issue for the last few hours and I couldn’t find any post on this site or anywhere else that addresses this issue.  When this event happens it whips the form clean of any information like it is clearing or resetting the form.  It seems to be very random and I could not find any particular thing that sets it off.  It also does not happen by simply clicking in one particular area or any certain control on the form.  If anyone can help with this issue it would be greatly appreciated for as of now my grid is almost useless.  I will post the aspx code, the c# code behind, one of the radcomboxbox controls with it’s codebehind.  The page has multiple user controls that have radcomboboxes but they are all pretty much the same.

 

 

Page aspx:

 

<%

@ Page Title="" Language="C#" MasterPageFile="~/isite/risk/risk.master" AutoEventWireup="true" CodeFile="risk.aspx.cs" Inherits="isite_risk_risk" %>

 

<%

@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>

 

<%

@ Register src="../controls/editusers.ascx" tagname="editusers" tagprefix="uc1" %>

 

<%

@ Register src="../controls/editprogram.ascx" tagname="editprogram" tagprefix="uc2" %>

 

<%

@ Register src="../controls/risktypes.ascx" tagname="risktypes" tagprefix="uc3" %>

 

<%

@ Register src="../controls/Risktypechain.ascx" tagname="Risktypechain" tagprefix="uc4" %>

 

<%

--<%@ Register src="users.ascx" tagname="users" tagprefix="uc1" %>--%>

 

 

 

<

 

asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">

 

</

 

asp:Content>

 

<

 

asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

 




 

<

 

telerik:RadGrid ID="RadGrid1" runat="server" EnableLinqExpressions="false"

 

 

 

 

 

GridLines="None" AllowFilteringByColumn="False"

 

 

ShowGroupPanel="False" onitemdatabound="RadGrid1_ItemDataBound"

 

 

onupdatecommand="RadGrid1_UpdateCommand"

 

 

onitemcommand="RadGrid1_ItemCommand" AutoGenerateColumns="False"

 

 

oninsertcommand="RadGrid1_InsertCommand">

 

 

 

 

 

 

 

 

<

 

MasterTableView cellspacing="-1" AllowSorting="False" AllowAutomaticDeletes="False"

 

 

AllowAutomaticInserts="False" AllowAutomaticUpdates="False" AutoGenerateColumns="False">

 

<

 

RowIndicatorColumn>

 

<

 

HeaderStyle Width="20px"></HeaderStyle>

 

</

 

RowIndicatorColumn>

 

<

 

ExpandCollapseColumn>

 

<

 

HeaderStyle Width="20px"></HeaderStyle>

 

</

 

ExpandCollapseColumn>

 

 

 

 

<%

--<CommandItemTemplate>

 

<asp:LinkButton ID="LinkButton1" runat="server" CommandName="updategrid">LinkButton</asp:LinkButton>

</CommandItemTemplate>--

 

%>

 


 

 

<Columns>

 

<

 

telerik:GridButtonColumn CommandName="Delete" ButtonType="LinkButton" ConfirmText="Are you sure you want to delete this Risk which includes all categories and mitigation plans associated with the overall risk?"

 

 

 

 

 

UniqueName="column1" Text="Delete">

 

 

 

 

 

<HeaderStyle Width="20px" />

 

 

 

 

 

</telerik:GridButtonColumn>

 

 

 

 

 

 

<telerik:GridButtonColumn CommandName="Edit" ButtonType="LinkButton"

 

 

UniqueName="column2" Text="Edit">

 

 

 

 

 

<HeaderStyle Width="20px" />

 

 

 

 

 

</telerik:GridButtonColumn>

 

 

 

 

 

 

<telerik:GridTemplateColumn DataField="title" HeaderText="Title"

 

 

SortExpression="title" UniqueName="title" ItemStyle-Width="125">

 

 

 

 

 

<ItemTemplate>

 

 

 

 

 

<telerik:RadToolTip ID="RadToolTip1" runat="server" Text='<%# "Description: " + Eval("description")%>' TargetControlID="Label1" ShowDelay="1">

 

 

 

 

 

</telerik:RadToolTip>

 

 

 

 

 

<asp:HyperLink ID="HyperLinkriskid" NavigateUrl='<%#Eval("riskid")%>' runat="server">

 

 

 

 

 

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

 

 

</asp:HyperLink>

 

 

</ItemTemplate>

 

 

 

 

 

<EditItemTemplate>

 

 

<telerik:RadTextBox ID="RadTextBoxtitle" runat="server" Text='<%#Bind("title")%>'>

 

 

 

 

 

</telerik:RadTextBox>

 

 

 

 

<%

--<asp:LinkButton ID="LinkButton1" runat="server" CommandName="gridupdate">LinkButton</asp:LinkButton>--%>

 

 

</EditItemTemplate>

 

 

 

<

 

ItemStyle Width="125px"></ItemStyle>

 

 

 

 

 

</telerik:GridTemplateColumn>

 

 

 

 

 

 

 

<telerik:GridTemplateColumn DataField="RiskType" HeaderText="Risk Type"

 

 

SortExpression="RiskType" UniqueName="Description" Visible="False">

 

 

 

 

 

<EditItemTemplate>

 

 

<%

--<uc3:risktypes ID="risktypes1" runat="server" /> --%>

 

 

<uc4:Risktypechain ID="Risktypechain1" runat="server" />

 

 

 

 

 

 

</EditItemTemplate>

 

 

 

<

 

ItemStyle Width="200px"></ItemStyle>

 

 

 

 

 

</telerik:GridTemplateColumn>

 

 

 

 

 

 

 

 

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

 

 

SortExpression="Description" UniqueName="Description" ItemStyle-Width="200" Visible="False">

 

 

 

 

 

<EditItemTemplate>

 

 

 

<telerik:RadTextBox ID="RadTextBoxDesc" runat="server" Text='<%#Bind("Description")%>' Width="300" Height="50" AutoPostBack="true">

 

 

 

 

 

</telerik:RadTextBox>

 

 

 

 

 

 

</EditItemTemplate>

 

 

 

<

 

ItemStyle Width="200px"></ItemStyle>

 

 

 

 

 

</telerik:GridTemplateColumn>

 

 

 

 

 

 

<telerik:GridTemplateColumn DataField="Engineer" HeaderText="Engineer"

 

 

SortExpression="Engineer" UniqueName="Engineer">

 

 

 

 

 

<ItemTemplate>

 

 

 

 

 

<asp:HyperLink ID="HyperLinkuserid" NavigateUrl='<%#Eval("userlink")%>' runat="server">

 

 

 

 

 

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

 

 

</asp:HyperLink>

 

 

 

</ItemTemplate>

 

 

<EditItemTemplate>

 

 

 

 

 

 

<uc1:editusers ID="editusers1" runat="server" />

 

 

 

 

 

 

</EditItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

 

 

 

 

 

 

 

 

 

 

 

<

 

telerik:GridTemplateColumn DataField="avgscore" HeaderText="RPNμ" ReadOnly="True"

 

 

 

 

 

SortExpression="avgscore" UniqueName="avgscore" ItemStyle-HorizontalAlign="Center" HeaderTooltip="The average of all risk category RPNs (Risk Priority Numbers) associated with item.">

 

 

 

 

 

<%

--<HeaderTemplate>

 

<asp:Image ID="Image3" runat="server" ImageUrl="../image/post_button_about.gif" />

<telerik:RadToolTip ID="RadToolTipavgscore" runat="server" TargetControlID="Image3" ShowDelay="1" ManualClose="True">

 

<table align="left" border="0" cellpadding="0" cellspacing="0" class="style1"

style="mso-table-lspace: 9.0pt; mso-table-rspace: 9.0pt; mso-table-anchor-vertical: paragraph; mso-table-anchor-horizontal: margin; mso-table-left: 77.35pt; mso-table-top: 1.5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt"

width="455">

<tr style="mso-yfti-irow:0;mso-yfti-firstrow:yes;height:16.2pt">

<td colspan="3"

style="border: solid windowtext 1.0pt; padding: 0in 5.4pt 0in 5.4pt; height: 16.2pt"

valign="top">

<span style="font-size:10.0pt;font-family:Arial">The RPN (Risk Priority Number)

is the score is figured by cross referencing the priority and the highest score

between Impact of Performance, Impact of Schedule and Impact of Cost.</span><span

lang="EN" style="font-size:10.0pt;

font-family:Arial;mso-ansi-language:EN"><span style="mso-spacerun:yes">&nbsp; </span>The failure

modes that have the highest RPN should be given the highest priority for

corrective action. This means it is not always the failure modes with the

highest severity numbers that should be treated first. There could be less

severe failures, but which occur more often and are less detectable.<span

style="mso-spacerun:yes">&nbsp; </span>RPNs severity follows the chart

below.<span style="mso-spacerun:yes">&nbsp; </span>RPN calculation is not linear

and follows the chart on figure 5.<o:p></o:p></span></td>

</tr>

<tr style="mso-yfti-irow:0;mso-yfti-firstrow:yes;height:16.2pt">

<td style="width:85.0pt;border:solid windowtext 1.0pt;

padding:0in 5.4pt 0in 5.4pt;height:16.2pt" valign="top" width="142">

<p class="MsoNormal">

<span lang="EN" style="mso-ansi-language:EN">RPN Score</span></p>

</td>

<td style="width:88.0pt;border:solid windowtext 1.0pt;

border-left:none;padding:0in 5.4pt 0in 5.4pt;height:16.2pt" valign="top" width="147">

<p class="MsoNormal">

<span lang="EN" style="mso-ansi-language:EN">Severity</span></p>

</td>

<td style="width:100.0pt;border:solid windowtext 1.0pt;

border-left:none;padding:0in 5.4pt 0in 5.4pt;height:16.2pt" valign="top" width="167">

<p class="MsoNormal">

<span lang="EN" style="mso-ansi-language:EN">Mitigation</span></p>

</td>

</tr>

<tr style="mso-yfti-irow:1;height:16.2pt">

<td style="width:85.0pt;border:solid windowtext 1.0pt;

border-top:none;padding:0in 5.4pt 0in 5.4pt;height:16.2pt" valign="top" width="142">

<p class="MsoNormal">

<span lang="EN" style="mso-ansi-language:EN">0-.29</span></p>

</td>

<td style="width: 88.0pt; border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; background: #99CC00; padding: 0in 5.4pt 0in 5.4pt; height: 16.2pt"

valign="top" width="147">

<p class="MsoNormal">

<span lang="EN" style="mso-ansi-language:EN">Low</span></p>

</td>

<td style="width:100.0pt;border-top:none;border-left:

none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;

padding:0in 5.4pt 0in 5.4pt;height:16.2pt" valign="top" width="167">

<p class="MsoNormal">

<span lang="EN" style="mso-ansi-language:EN">No</span></p>

</td>

</tr>

<tr style="mso-yfti-irow:2;height:16.2pt">

<td style="width:85.0pt;border:solid windowtext 1.0pt;

border-top:none;padding:0in 5.4pt 0in 5.4pt;height:16.2pt" valign="top" width="142">

<p class="MsoNormal">

<span lang="EN" style="mso-ansi-language:EN">0.3-.59</span></p>

</td>

<td style="width: 88.0pt; border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; background: yellow; padding: 0in 5.4pt 0in 5.4pt; height: 16.2pt"

valign="top" width="147">

<p class="MsoNormal">

<span lang="EN" style="mso-ansi-language:EN">Medium</span></p>

</td>

<td style="width:100.0pt;border-top:none;border-left:

none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;

padding:0in 5.4pt 0in 5.4pt;height:16.2pt" valign="top" width="167">

<p class="MsoNormal">

<span lang="EN" style="mso-ansi-language:EN">Yes</span></p>

</td>

</tr>

<tr style="mso-yfti-irow:3;mso-yfti-lastrow:yes;height:16.2pt">

<td style="width:85.0pt;border:solid windowtext 1.0pt;

border-top:none;padding:0in 5.4pt 0in 5.4pt;height:16.2pt" valign="top" width="142">

<p class="MsoNormal">

<span lang="EN" style="mso-ansi-language:EN">>0.6</span></p>

</td>

<td style="width: 88.0pt; border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; background: red; padding: 0in 5.4pt 0in 5.4pt; height: 16.2pt"

valign="top" width="147">

<p class="MsoNormal">

<span lang="EN" style="mso-ansi-language:EN">High</span></p>

</td>

<td style="width:100.0pt;border-top:none;border-left:

none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;

padding:0in 5.4pt 0in 5.4pt;height:16.2pt" valign="top" width="167">

<p class="MsoNormal">

<span lang="EN" style="mso-ansi-language:EN">Yes</span></p>

</td>

</tr>

</table>

 

<asp:Image ID="riskmatrix" runat="server" ImageUrl="../image/riskmatrix.jpg" />

 

 

</telerik:RadToolTip></HeaderTemplate>--

 

%>

 

 

 

<ItemTemplate>

 

 

 

 

 

<asp:Label ID="Labelavgscore" runat="server" Text='<%#Eval("avgscore")%>' BackColor='<%# System.Drawing.ColorTranslator.FromHtml(DataBinder.Eval(Container.DataItem, "color").ToString()) %>' Width="50"></asp:Label>

 

 

</ItemTemplate>

 

<

 

ItemStyle HorizontalAlign="Center"></ItemStyle>

 

 

 

 

 

</telerik:GridTemplateColumn>

 

 

 

 

 

 

 

 

<telerik:GridTemplateColumn DataField="wrpn" HeaderText="WRPNμ" ReadOnly="True"

 

 

 

 

 

SortExpression="wrpn" UniqueName="wrpn" ItemStyle-HorizontalAlign="Center" HeaderTooltip="The average of all risk category RPNs (Risk Priority Numbers) associated with item.">

 

 

 

 

 

 

<ItemTemplate>

 

 

 

 

 

<asp:Label ID="Labelwrpn" runat="server" Text='<%#Eval("wrpn")%>' BackColor='<%# System.Drawing.ColorTranslator.FromHtml(DataBinder.Eval(Container.DataItem, "wcolor").ToString()) %>' Width="50"></asp:Label>

 

 

</ItemTemplate>

 

<

 

ItemStyle HorizontalAlign="Center"></ItemStyle>

 

 

 

 

 

</telerik:GridTemplateColumn>

 

 

 

 

 

 

<telerik:GridTemplateColumn DataField="top5rpn" HeaderText="Top5RPN" ReadOnly="True"

 

 

 

 

 

SortExpression="top5rpn" UniqueName="top5rpn" ItemStyle-HorizontalAlign="Center" HeaderTooltip="RPN x weight.">

 

 

 

 

 

 

<ItemTemplate>

 

 

 

 

 

<asp:Label ID="Labeltop5rpn" runat="server" Text='<%#Eval("top5rpn")%>' BackColor='<%# System.Drawing.ColorTranslator.FromHtml(DataBinder.Eval(Container.DataItem, "color5").ToString()) %>' Width="50"></asp:Label>

 

 

</ItemTemplate>

 

<

 

ItemStyle HorizontalAlign="Center"></ItemStyle>

 

 

 

 

 

</telerik:GridTemplateColumn>

 

 

 

 

 

 

 

<telerik:GridTemplateColumn DataField="Type" HeaderText="Attached To"

 

 

 

 

 

SortExpression="Type" UniqueName="Type" HeaderTooltip="Risks can be attached to SDRLS, Suppliers, Effectivities or Objects which can be further characterized as Components, Drawings and Schematics. Risks can also be free floating and are labeled Unattached.">

 

 

 

 

 

<ItemTemplate>

 

 

 

 

 

<asp:HyperLink ID="HyperLinktype" NavigateUrl='<%#Eval("link")%>' runat="server">

 

 

 

 

 

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

 

 

</asp:HyperLink>

 

 

</ItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

 

 

 

 

 

<telerik:GridTemplateColumn DataField="TEC" HeaderText="∑(Est.Cost)"

 

 

SortExpression="TEC" UniqueName="TEC" ItemStyle-HorizontalAlign="Right" HeaderTooltip="Total Estimated Cost. This is the estimated cost the risk can incur on the program it comes to fruition. This is a total for all categories associated with item.">

 

 

 

 

 

<ItemTemplate>

 

 

 

 

 

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

 

 

</ItemTemplate>

 

<

 

ItemStyle HorizontalAlign="Right"></ItemStyle>

 

 

 

 

 

</telerik:GridTemplateColumn>

 

 

 

 

 

 

<telerik:GridTemplateColumn DataField="avgprogpercent" HeaderText="Probability%μ"

 

 

SortExpression="avgprogpercent" UniqueName="avgprogpercent" ItemStyle-HorizontalAlign="Center" AllowFiltering="False" HeaderStyle-Wrap="False" HeaderStyle-Width="100" HeaderStyle-VerticalAlign="Middle" HeaderStyle-Height="40">

 

 

 

 

 

 

<ItemTemplate>

 

 

 

 

 

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

 

 

</ItemTemplate>

 

 

 

 

<%

--<HeaderTemplate>

 

<asp:Image ID="Image1" runat="server" ImageUrl="../image/post_button_about.gif" />--

 

%>

 

<%

--<telerik:RadToolTip ID="RadToolTipavgprog" runat="server" TargetControlID="Image1" ShowDelay="1" ManualClose="True">

 

 

<table border="0" cellpadding="0" cellspacing="0" class="style2" style="mso-padding-alt: 0in 5.4pt 0in 5.4pt"

width="486">

<tr style="mso-yfti-irow: 0; mso-yfti-firstrow: yes; height: 12.6pt">

<td colspan="5">

Probability is accessed from Low(10%), Minor(25%), Moderate(50%), Significant(75%)

to High(90%). This value is determined by gauging the likelihood that the associated

risk category is likely to happen. The probability is half of the score that is

used to cross reference RPN and determines the percentage of occurrence. Temples

are provided for each probability that gives definitions to how the risk should

be accessed.

</td>

</tr>

<tr style="mso-yfti-irow: 0; mso-yfti-firstrow: yes; height: 12.6pt">

<td nowrap style="width: 49.15pt; padding: 0in 5.4pt 0in 5.4pt; height: 12.6pt" valign="bottom"

width="82">

<p class="MsoNormal">

<a name="RANGE!A1:E6"><span style="font-family: &quot; ms sans serif&quot;">ImpactID</span></a><span

style="font-family: &quot; ms sans serif&quot;"><o:p></o:p></span></p>

</td>

<td nowrap style="width: 62.45pt; padding: 0in 5.4pt 0in 5.4pt; height: 12.6pt" valign="bottom"

width="104">

<p class="MsoNormal">

<span style="font-family: &quot; ms sans serif&quot;">ImpactName<o:p></o:p></span></p>

</td>

<td nowrap style="width: 72.5pt; padding: 0in 5.4pt 0in 5.4pt; height: 12.6pt" valign="bottom"

width="121">

<p class="MsoNormal">

<span style="font-family: &quot; ms sans serif&quot;">ProbablityNum<o:p></o:p></span></p>

</td>

<td nowrap style="width: 58.6pt; padding: 0in 5.4pt 0in 5.4pt; height: 12.6pt" valign="bottom"

width="98">

<p class="MsoNormal">

<span style="font-family: &quot; ms sans serif&quot;">ImpactNum<o:p></o:p></span></p>

</td>

<td nowrap style="width: 48.8pt; padding: 0in 5.4pt 0in 5.4pt; height: 12.6pt" valign="bottom"

width="81">

<p class="MsoNormal">

<span style="font-family: &quot; ms sans serif&quot;">Percent<o:p></o:p></span></p>

</td>

</tr>

<tr style="mso-yfti-irow: 1; height: 12.6pt">

<td nowrap style="width: 49.15pt; padding: 0in 5.4pt 0in 5.4pt; height: 12.6pt" valign="bottom"

width="82">

<p align="right" class="MsoNormal">

<span style="font-family: &quot; ms sans serif&quot;">1<o:p></o:p></span></p>

</td>

<td nowrap style="width: 62.45pt; padding: 0in 5.4pt 0in 5.4pt; height: 12.6pt" valign="bottom"

width="104">

<p class="MsoNormal">

<span style="font-family: &quot; ms sans serif&quot;">Low<o:p></o:p></span></p>

</td>

<td nowrap style="width: 72.5pt; padding: 0in 5.4pt 0in 5.4pt; height: 12.6pt" valign="bottom"

width="121">

<p align="right" class="MsoNormal">

<span style="font-family: &quot; ms sans serif&quot;">0.1<o:p></o:p></span></p>

</td>

<td nowrap style="width: 58.6pt; padding: 0in 5.4pt 0in 5.4pt; height: 12.6pt" valign="bottom"

width="98">

<p align="right" class="MsoNormal">

<span style="font-family: &quot; ms sans serif&quot;">0.1<o:p></o:p></span></p>

</td>

<td nowrap style="width: 48.8pt; padding: 0in 5.4pt 0in 5.4pt; height: 12.6pt" valign="bottom"

width="81">

<p align="right" class="MsoNormal">

<span style="font-family: &quot; ms sans serif&quot;">0.1<o:p></o:p></span></p>

</td>

</tr>

<tr style="mso-yfti-irow: 2; height: 12.6pt">

<td nowrap style="width: 49.15pt; padding: 0in 5.4pt 0in 5.4pt; height: 12.6pt" valign="bottom"

width="82">

<p align="right" class="MsoNormal">

<span style="font-family: &quot; ms sans serif&quot;">2<o:p></o:p></span></p>

</td>

<td nowrap style="width: 62.45pt; padding: 0in 5.4pt 0in 5.4pt; height: 12.6pt" valign="bottom"

width="104">

<p class="MsoNormal">

<span style="font-family: &quot; ms sans serif&quot;">Minor<o:p></o:p></span></p>

</td>

<td nowrap style="width: 72.5pt; padding: 0in 5.4pt 0in 5.4pt; height: 12.6pt" valign="bottom"

width="121">

<p align="right" class="MsoNormal">

<span style="font-family: &quot; ms sans serif&quot;">0.1<o:p></o:p></span></p>

</td>

<td nowrap style="width: 58.6pt; padding: 0in 5.4pt 0in 5.4pt; height: 12.6pt" valign="bottom"

width="98">

<p align="right" class="MsoNormal">

<span style="font-family: &quot; ms sans serif&quot;">0.2<o:p></o:p></span></p>

</td>

<td nowrap style="width: 48.8pt; padding: 0in 5.4pt 0in 5.4pt; height: 12.6pt" valign="bottom"

width="81">

<p align="right" class="MsoNormal">

<span style="font-family: &quot; ms sans serif&quot;">0.25<o:p></o:p></span></p>

</td>

</tr>

<tr style="mso-yfti-irow: 3; height: 12.6pt">

<td nowrap style="width: 49.15pt; padding: 0in 5.4pt 0in 5.4pt; height: 12.6pt" valign="bottom"

width="82">

<p align="right" class="MsoNormal">

<span style="font-family: &quot; ms sans serif&quot;">3<o:p></o:p></span></p>

</td>

<td nowrap style="width: 62.45pt; padding: 0in 5.4pt 0in 5.4pt; height: 12.6pt" valign="bottom"

width="104">

<p class="MsoNormal">

<span style="font-family: &quot; ms sans serif&quot;">Moderate<o:p></o:p></span></p>

</td>

<td nowrap style="width: 72.5pt; padding: 0in 5.4pt 0in 5.4pt; height: 12.6pt" valign="bottom"

width="121">

<p align="right" class="MsoNormal">

<span style="font-family: &quot; ms sans serif&quot;">0.2<o:p></o:p></span></p>

</td>

<td nowrap style="width: 58.6pt; padding: 0in 5.4pt 0in 5.4pt; height: 12.6pt" valign="bottom"

width="98">

<p align="right" class="MsoNormal">

<span style="font-family: &quot; ms sans serif&quot;">0.3<o:p></o:p></span></p>

</td>

<td nowrap style="width: 48.8pt; padding: 0in 5.4pt 0in 5.4pt; height: 12.6pt" valign="bottom"

width="81">

<p align="right" class="MsoNormal">

<span style="font-family: &quot; ms sans serif&quot;">0.5<o:p></o:p></span></p>

</td>

</tr>

<tr style="mso-yfti-irow: 4; height: 12.6pt">

<td nowrap style="width: 49.15pt; padding: 0in 5.4pt 0in 5.4pt; height: 12.6pt" valign="bottom"

width="82">

<p align="right" class="MsoNormal">

<span style="font-family: &quot; ms sans serif&quot;">4<o:p></o:p></span></p>

</td>

<td nowrap style="width: 62.45pt; padding: 0in 5.4pt 0in 5.4pt; height: 12.6pt" valign="bottom"

width="104">

<p class="MsoNormal">

<span style="font-family: &quot; ms sans serif&quot;">Significant<o:p></o:p></span></p>

</td>

<td nowrap style="width: 72.5pt; padding: 0in 5.4pt 0in 5.4pt; height: 12.6pt" valign="bottom"

width="121">

<p align="right" class="MsoNormal">

<span style="font-family: &quot; ms sans serif&quot;">0.2<o:p></o:p></span></p>

</td>

<td nowrap style="width: 58.6pt; padding: 0in 5.4pt 0in 5.4pt; height: 12.6pt" valign="bottom"

width="98">

<p align="right" class="MsoNormal">

<span style="font-family: &quot; ms sans serif&quot;">0.5<o:p></o:p></span></p>

</td>

<td nowrap style="width: 48.8pt; padding: 0in 5.4pt 0in 5.4pt; height: 12.6pt" valign="bottom"

width="81">

<p align="right" class="MsoNormal">

<span style="font-family: &quot; ms sans serif&quot;">0.75<o:p></o:p></span></p>

</td>

</tr>

<tr style="mso-yfti-irow: 5; mso-yfti-lastrow: yes; height: 12.6pt">

<td nowrap style="width: 49.15pt; padding: 0in 5.4pt 0in 5.4pt; height: 12.6pt" valign="bottom"

width="82">

<p align="right" class="MsoNormal">

<span style="font-family: &quot; ms sans serif&quot;">5<o:p></o:p></span></p>

</td>

<td nowrap style="width: 62.45pt; padding: 0in 5.4pt 0in 5.4pt; height: 12.6pt" valign="bottom"

width="104">

<p class="MsoNormal">

<span style="font-family: &quot; ms sans serif&quot;">High<o:p></o:p></span></p>

</td>

<td nowrap style="width: 72.5pt; padding: 0in 5.4pt 0in 5.4pt; height: 12.6pt" valign="bottom"

width="121">

<p align="right" class="MsoNormal">

<span style="font-family: &quot; ms sans serif&quot;">0.3<o:p></o:p></span></p>

</td>

<td nowrap style="width: 58.6pt; padding: 0in 5.4pt 0in 5.4pt; height: 12.6pt" valign="bottom"

width="98">

<p align="right" class="MsoNormal">

<span style="font-family: &quot; ms sans serif&quot;">0.6<o:p></o:p></span></p>

</td>

<td nowrap style="width: 48.8pt; padding: 0in 5.4pt 0in 5.4pt; height: 12.6pt" valign="bottom"

width="81">

<p align="right" class="MsoNormal">

<span style="font-family: &quot; ms sans serif&quot;">0.9<o:p></o:p></span></p>

</td>

</tr>

</table>

 

 

</telerik:RadToolTip>

</HeaderTemplate>

<HeaderStyle VerticalAlign="Middle" Wrap="False" Height="40px" Width="100px"></HeaderStyle>--

 

%>

 

 

 

<

 

HeaderStyle VerticalAlign="Middle" Wrap="False" Height="40px" Width="100px"></HeaderStyle>

 

<

 

ItemStyle HorizontalAlign="Center"></ItemStyle>

 

 

 

 

 

</telerik:GridTemplateColumn>

 

 

 

 

 

 

<telerik:GridTemplateColumn DataField="programname" HeaderText="Program"

 

 

SortExpression="programname" UniqueName="programname" ItemStyle-HorizontalAlign="Left">

 

 

 

 

 

<ItemTemplate>

 

 

 

 

 

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

 

 

</ItemTemplate>

 

 

 

 

 

<EditItemTemplate>

 

 

 

<uc2:editprogram ID="editprogram1" runat="server" />

 

 

 

 

 

 

</EditItemTemplate>

 

 

 

<

 

ItemStyle HorizontalAlign="Left"></ItemStyle>

 

 

 

 

 

</telerik:GridTemplateColumn>

 

 

 

 

 

 

<telerik:GridTemplateColumn DataField="wtcost" HeaderText="∑(W.Cost)" ReadOnly="True"

 

 

 

 

 

SortExpression="wtcost" UniqueName="wtcost" ItemStyle-HorizontalAlign="Right" AllowFiltering="False" HeaderTooltip="Weighted cost is the Estimated Cost multiplied by the percentage of probability. This value is use to calculate how much money should be carried in the budget for risk. Example: If a risk has a probability of “High” and an estimated cost of $1000, the weighted cost would be $900 (1000 x 0.9).">

 

 

 

 

 

<ItemTemplate>

 

 

 

 

 

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

 

 

</ItemTemplate>

 

<

 

ItemStyle HorizontalAlign="Right"></ItemStyle>

 

 

 

 

 

</telerik:GridTemplateColumn>

 

 

 

 

 

<%

-- <telerik:GridTemplateColumn DataField="mtotalcost" HeaderText="∑(Mit.Cost)"

 

SortExpression="mtotalcost" UniqueName="mtotalcost" ItemStyle-HorizontalAlign="Right" AllowFiltering="False" HeaderTooltip="Total cost off all mitigation steps associated with all categories of item">

<ItemTemplate>

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

</ItemTemplate>

</telerik:GridTemplateColumn>

 

<telerik:GridTemplateColumn DataField="mtotalcount" HeaderText="∑(Mit.Steps)"

SortExpression="mtotalcount" UniqueName="mtotalcount" ItemStyle-HorizontalAlign="Right" ShowFilterIcon="False" AllowFiltering="False" HeaderTooltip="Total number of mitigation steps associated with all categories of item">

<ItemTemplate>

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

</ItemTemplate>

</telerik:GridTemplateColumn>--

 

%>

 

 

 

 

</Columns>

 



 

 

 

</MasterTableView>

 

 

 

 

 

<PagerStyle Mode="NumericPages" Position="Top" HorizontalAlign="Right" BackColor="#eaf2fd"

 

 

 

 

 

ForeColor="Navy"></PagerStyle>

 

 

 

 

 


 

 

 

 

</

 

telerik:RadGrid>

 

 

 

 

<%

-- <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">

 

<AjaxSettings>

<telerik:AjaxSetting AjaxControlID="RadGrid1">

<UpdatedControls>

<telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1"/>

</UpdatedControls>

</telerik:AjaxSetting>

</AjaxSettings>

</telerik:RadAjaxManager>

<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Height="75px" Width="75px" Transparency="25">

<img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>' style="border:0;" />

</telerik:RadAjaxLoadingPanel>--

 

%>

 

 

 

 

 

 

 

 

 

 

</

 

asp:Content>

*********************************************************************************************************************
page c#:

 

using

 

System;

 

 

 

using

 

System.Collections.Generic;

 

 

 

using

 

System.Linq;

 

 

 

using

 

System.Web;

 

 

 

using

 

System.Web.UI;

 

 

 

using

 

System.Web.UI.WebControls;

 

 

 

using

 

System.Data;

 

 

 

using

 

System.Data.SqlClient;

 

 

 

using

 

System.Configuration;

 

 

 

using

 

System.Web.Configuration;

 

 

 

using

 

Telerik.Web.UI;

 

 

 

//using Telerik.Web.UI.Editor.DialogControls;

 

 

 

using

 

Risk;

 

 

 

public

 

partial class isite_risk_risk : System.Web.UI.Page

 

 

 

 

{

 

protected void Page_Load(object sender, EventArgs e)

 

{

 

 

if (Request.QueryString["id"] != null)

 

{

 

if (!Page.IsPostBack)

 

{

 

//Response.Write("not null");

 

 

 

 

 

//Response.End();

 

 

 

 

RadGrid1.DataSource =

StoredProcedures.GetRiskSummary();

 

RadGrid1.DataBind();

}

 

}

 

else

 

 

 

 

{

 

//Response.Write("null");

 

 

 

 

 

//Response.End();

 

 

 

 

RadGrid1.DataSource =

StoredProcedures.GetRiskSummary();

 

RadGrid1.MasterTableView.IsItemInserted =

true;

 

RadGrid1.DataBind();

RadGrid1.ShowHeader =

false;

 

RadGrid1.Width = 700;

}

 

}

 

protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)

 

{

 

if ((e.Item is GridEditFormItem) && (e.Item.IsInEditMode))

 

{

 

 

GridEditFormItem item = (GridEditFormItem)e.Item;

 

 

RadComboBox editusers = (RadComboBox)item.FindControl("editusers1").FindControl("RadComboBoxEditUsers");

 

editusers.SelectedValue = (

string)DataBinder.Eval(e.Item.DataItem, "userid").ToString();

 

 

GridEditFormItem item2 = (GridEditFormItem)e.Item;

 

 

RadComboBox editprogram = (RadComboBox)item2.FindControl("editprogram1").FindControl("RadComboBoxEditProgram");

 

editprogram.SelectedValue = (

string)DataBinder.Eval(e.Item.DataItem, "programid").ToString();

 

 

//GridEditFormItem item3 = (GridEditFormItem)e.Item;

 

 

 

 

 

//RadComboBox editriskimpact = (RadComboBox)item2.FindControl("riskimpact1").FindControl("RadComboBoxEditImpact");

 

 

 

 

 

//editprogram.SelectedValue = (string)DataBinder.Eval(e.Item.DataItem, "impactid").ToString();

 

 

 

 

 

}

}

 

protected void RadGrid1_UpdateCommand(object source, GridCommandEventArgs e)

 

{

 

string currenttime = Convert.ToString(System.DateTime.Now);

 

 

string id = Request.QueryString["id"];

 

 

int idint = int.Parse(id);

 

 

GridEditableItem item = e.Item as GridEditableItem;

 

 

RadComboBox editusers = (RadComboBox)item.FindControl("editusers1").FindControl("RadComboBoxEditUsers") as RadComboBox;

 

 

RadComboBox editprogram = (RadComboBox)item.FindControl("editprogram1").FindControl("RadComboBoxEditProgram") as RadComboBox;

 

 

int programidint = int.Parse(editprogram.SelectedValue);

 

 

int useridint = int.Parse(editusers.SelectedValue);

 

 

TextBox textbox2 = (TextBox)item.FindControl("TextBox1") as TextBox;

 

 

RadTextBox title = (RadTextBox)item.FindControl("RadTextBoxtitle") as RadTextBox;

 

 

RadTextBox desc = (RadTextBox)item.FindControl("RadTextBoxDesc") as RadTextBox;

 

 

GridEditableItem editedItem = (GridEditableItem)e.Item;

 

 

//RadComboBox combo = (RadComboBox)editedItem["Engineer"].FindControl("RadComboBoxEditUsers");

 

 

 

 

 

RadTextBox tb = (RadTextBox)editedItem["title"].FindControl("RadTextBoxtitle");

 

 

//string strVal = combo.SelectedItem.Text.ToString();

 

 

 

 

 

 

//Response.Write("dec: " + desc.Text + "<br />title: " + title.Text + "<br />user: " + editusers.SelectedValue + "<br />program: " + editprogram.SelectedValue + "<br />id: " + id + "<br />time: " + currenttime + "<br />rtb: " + tb.Text);

 

 

 

 

 

//Response.End();

 

 

 

 

 

SqlConnection connection = new SqlConnection(WebConfigurationManager.ConnectionStrings["Sitefinity"].ToString());

 

 

SqlCommand cmd = new SqlCommand("isite_risk_summary_update", connection);

 

cmd.CommandType =

CommandType.StoredProcedure;

 

cmd.Parameters.Add(

"@id", SqlDbType.Int).Value = idint;

 

cmd.Parameters.Add(

"@userid", SqlDbType.Int).Value = useridint;

 

cmd.Parameters.Add(

"@title", SqlDbType.NVarChar).Value = title.Text;

 

cmd.Parameters.Add(

"@programid", SqlDbType.Int).Value = programidint;

 

cmd.Parameters.Add(

"@description", SqlDbType.NVarChar).Value = desc.Text;

 

cmd.Parameters.Add(

"@datemodified", SqlDbType.SmallDateTime).Value = currenttime;

 

connection.Open();

cmd.ExecuteNonQuery();

connection.Close();

RadGrid1.DataSource =

StoredProcedures.GetRiskSummary();

 

RadGrid1.Rebind();

}

 

protected void RadGrid1_ItemCommand(object source, GridCommandEventArgs e)

 

{

 

if (e.CommandName == "InitInsert")

 

{

 

}

 

else

 

 

 

 

{

}

 

if (e.CommandName == "Edit")

 

{

RadGrid1.DataSource =

StoredProcedures.GetRiskSummary();

 

RadGrid1.DataBind();

}

 

else

 

 

 

 

{

 

// RadGrid1.MasterTableView.IsItemInserted = true;

 

 

 

 

}

 

}

 

protected void RadGrid1_InsertCommand(object source, GridCommandEventArgs e)

 

{

 

string currenttime = Convert.ToString(System.DateTime.Now);

 

 

GridEditableItem item = e.Item as GridEditableItem;

 

 

RadComboBox editusers = (RadComboBox)item.FindControl("editusers1").FindControl("RadComboBoxEditUsers") as RadComboBox;

 

 

RadComboBox editprogram = (RadComboBox)item.FindControl("editprogram1").FindControl("RadComboBoxEditProgram") as RadComboBox;

 

 

//HiddenField typehiddenfield (HiddenField)var.FindControl("Risktypechain1").FindControl("hiddenfield1") as HiddenField;

 

 

 

 

 

//HiddenField hdnSelect = (HiddenField)var.FindControl("hdnSelect");

 

 

 

 

 

int programidint = int.Parse(editprogram.SelectedValue);

 

 

int typeidint = int.Parse(Request.Form["myHiddenField"]);

 

 

int useridint = int.Parse(editusers.SelectedValue);

 

 

TextBox textbox2 = (TextBox)item.FindControl("TextBox1") as TextBox;

 

 

RadTextBox title = (RadTextBox)item.FindControl("RadTextBoxtitle") as RadTextBox;

 

 

RadTextBox desc = (RadTextBox)item.FindControl("RadTextBoxDesc") as RadTextBox;

 

 

GridEditableItem editedItem = (GridEditableItem)e.Item;

 

 

//RadComboBox combo = (RadComboBox)editedItem["Engineer"].FindControl("RadComboBoxEditUsers");

 

 

 

 

 

// RadTextBox tb = (RadTextBox)editedItem["title"].FindControl("RadTextBoxtitle");

 

 

 

 

 

//string strVal = combo.SelectedItem.Text.ToString();

 

 

 

 

 

Response.Write(

"dec: " + desc.Text + "<br />title: " + title.Text + "<br />user: " + editusers.SelectedValue + "<br />program: " + editprogram.SelectedValue + "<br />type: " + Request.Form["myHiddenField"] + "<br />time: " + currenttime);

 

Response.End();

 

SqlConnection connection = new SqlConnection(WebConfigurationManager.ConnectionStrings["Sitefinity"].ToString());

 

 

SqlCommand cmd = new SqlCommand("isite_risk_summary_insert", connection);

 

cmd.CommandType =

CommandType.StoredProcedure;

 

cmd.Parameters.Add(

"@userid", SqlDbType.Int).Value = useridint;

 

cmd.Parameters.Add(

"@type", SqlDbType.Int).Value = typeidint;

 

cmd.Parameters.Add(

"@title", SqlDbType.NVarChar).Value = title.Text;

 

cmd.Parameters.Add(

"@programid", SqlDbType.Int).Value = programidint;

 

cmd.Parameters.Add(

"@description", SqlDbType.NVarChar).Value = desc.Text;

 

cmd.Parameters.Add(

"@link", SqlDbType.NVarChar).Value = "test";

 

cmd.Parameters.Add(

"@datemodified", SqlDbType.SmallDateTime).Value = currenttime;

 

connection.Open();

cmd.ExecuteNonQuery();

connection.Close();

RadGrid1.DataSource =

StoredProcedures.GetRiskSummary();

 

RadGrid1.Rebind();

}

}

 

*****************************************************************************************************************
control ascx:

 

<%

@ Control Language="C#" AutoEventWireup="true" CodeFile="editusers.ascx.cs" Inherits="isite_controls_editusers" %>

 

 

<telerik:RadComboBox

 

 

ID="RadComboBoxEditUsers"

 

 

Runat="server"

 

 

AutoPostBack="False">

 

 

 

 

 

 

</telerik:RadComboBox>

 

 

 

**************************************************************************************************************
control ascx.cs:

 

using

 

System;

 

 

 

 

using

 

System.Collections.Generic;

 

 

 

 

using

 

System.Linq;

 

 

 

 

using

 

System.Web;

 

 

 

 

using

 

System.Web.UI;

 

 

 

 

using

 

System.Web.UI.WebControls;

 

 

 

 

using

 

Risk;

 

 

 

 

using

 

Telerik.Web.UI;

 

 

 

 

using

 

System.ComponentModel;

 

 

 

 

public

 

partial class isite_controls_editusers : System.Web.UI.UserControl

 

 

 

 

 

{

 

protected void Page_Load(object sender, EventArgs e)

 

{

 

if (RadComboBoxEditUsers.Items.Count == 0)

 

{

 

// Fill the continents combo

 

 

 

 

 

LoadUsers();

}

}

 

//Continent, Coutry

 

 

 

 

 

[

Bindable(BindableSupport.Yes, BindingDirection.TwoWay)]

 

 

public string Continent

 

{

 

get

 

 

 

 

 

{

 

return RadComboBoxEditUsers.SelectedValue;

 

}

 

set

 

 

 

 

 

{

RadComboBoxEditUsers.SelectedValue =

value;

 

}

}

 

 

 

protected void LoadUsers()

 

{

RadComboBoxEditUsers.DataSource =

StoredProcedures.GetAllData();

 

RadComboBoxEditUsers.ClearSelection();

 

//RadComboBoxEditUsers.Items.Insert(0, new RadComboBoxItem("- Select Engineer -"));

 

 

 

 

 

 

//RadComboBoxEditUsers.AppendDataBoundItems = true;

 

 

 

 

 

RadComboBoxEditUsers.DataTextField =

"engineer";

 

RadComboBoxEditUsers.DataValueField =

"userid";

 

RadComboBoxEditUsers.DataBind();

}

}

 

 

Yavor
Telerik team
 answered on 18 Dec 2009
3 answers
181 views
I am new to formdecorator and am really impressed with  the functionality it offers. 

I have an application where the skin will be selectable by each client and I am offering all the skins in that selection process.  I am running into problems with asp:label and understand it is out of scope for the skins because how it is rendered.  Is there a list of fonts and font colors used in each skin so I can set them programatically based off of the chosen skin?

Thanks.

-Joel
Martin
Telerik team
 answered on 18 Dec 2009
1 answer
329 views
I am new to these controls and am missing the boat somewhere. I am trying to get the value of a specific cell when youclick the cell. I have just dropped a radgrid onto the page and configured it to a sqldatasource. I made one of the columns a button column using a link. I read through the Accessing Cells and Rows docs and added the following code to try to use the UniqueName to extract the value.

Using RadGrid
Protected Sub RadGrid1_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles RadGrid1.ItemDataBound  
 
'e is the event argument object  
 
If TypeOf e.Item Is GridDataItem Then 
 
Dim dataItem As GridDataItem = CType(e.Item, GridDataItem)  
 
Dim cell As TableCell = dataItem("UserName")  
 
Dim celltxt As String = cell.Text  
 
lblCell.Text = celltxt  
 
End If 
 
End Sub 
 
 

I am not sure if I have set up the radgrid correctly or if I am using the correct event. I want to convert a .net grid to a radgrid and used the RowCommand event in the .net grid to extract the values which is something like this.

Using ASP.Net Grid

 

Protected Sub gvManageSales_RowCommand(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewCommandEventArgs) Handles gvManageSales.RowCommand  
' CommandName property to determine which button was clicked.  
If e.CommandName = "SalesID" Then 
 
' Convert the row index stored in the CommandArgument  
' property to an Integer.  
 
Dim index As Integer = Convert.ToInt32(e.CommandArgument)  
' Retrieve the row that contains the button clicked   
 
' by the user from the Rows collection.  
 
Dim row As GridViewRow = gvManageSales.Rows(index)  
 
' Create a new ListItem object for the contact in the row.   
 
Dim UName As New ListItem()  
 
UName.Text = Server.HtmlDecode(row.Cells(1).Text)  
 
'Display name etc.  
lblName.text = UName  
 
End If 
 
End Sub 
 

 

Any ideas on how to acheive this in the radgrid.

Shinu
Top achievements
Rank 2
 answered on 18 Dec 2009
1 answer
72 views
Hello,

I have a grid that has a master and detail.  I've turned on the ability for the user to add a master record and a detail.  Both have the radEditor on the edit screen, allowing them to insert new records.  With the needdatasource, how do I now which insert there are selecting?  How can I tell if they are inserting a master vs a detail record?

Thanks,

Randy
Princy
Top achievements
Rank 2
 answered on 18 Dec 2009
0 answers
98 views
Hi,

When I deploy the project onto the server, found the problem that freezes the web application (such as  the control do not get respond ).  I suspect the security  that causes the trouble.  May I have someone experience in order to get over it?

Cheers,

Duy
Duy
Top achievements
Rank 1
 asked on 18 Dec 2009
1 answer
173 views
In the ASP.Net GridView, there was a server-side OnRowCreated that we used to make the rows clickable (links to detail pages), and to set ids on the rows.  What is the alternative to this with the Telerik Asp.Net 3.5 Ajax Grid?
Shinu
Top achievements
Rank 2
 answered on 18 Dec 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?