RadGrid1.ExportSettings.ExportOnlyData = FalseRadGrid1.ExportSettings.FileName = lPDF.TextRadGrid1.ExportSettings.IgnorePaging = TrueRadGrid1.ExportSettings.OpenInNewWindow = TrueRadGrid1.BorderStyle = BorderStyle.NoneRadGrid1.MasterTableView.BorderStyle = BorderStyle.NoneRadGrid1.MasterTableView.DataBind()RadGrid1.MasterTableView.ExportToPdf()<telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False" DataSourceID="sqlSubmittedWks" GridLines="None" OnItemDataBound="RadGrid1_ItemDataBound" ><MasterTableView datasourceid="sqlSubmittedWks" ><RowIndicatorColumn><HeaderStyle Width="20px"></HeaderStyle></RowIndicatorColumn><ExpandCollapseColumn><HeaderStyle Width="20px"></HeaderStyle></ExpandCollapseColumn> <ItemTemplate> <asp:Label ID="Label1" runat="server" Font-Size="16pt" Text='<%# Eval("QuestionName") %>'></asp:Label> <br /> <br /> <asp:Literal ID="lChartPrint" runat="server" Text='<%# Replace(Wks_Helper.Statistics_AnswerStatistics_Chart(lWalkID.text, Eval("QuestionID")), "chs=440x220", "chs=600x400") %>'></asp:Literal> <br /> <uc1:AnswerResults_Item ID="AnswerResults_Item1" runat="server" SchoolWalkID='<%# lwalkid.text %>' QuestionID='<%# Eval("QuestionID") %>' /> <br /> <asp:Label ID="lQidPrint" runat="server" Text='<%# Eval("QuestionID") %>' Visible="False"></asp:Label> <asp:Literal ID="lNewPage" runat="server" Text="<?hard-pagebreak?>"></asp:Literal> </ItemTemplate> <Columns> <telerik:GridTemplateColumn UniqueName="TemplateColumn"> <ItemTemplate> </ItemTemplate> </telerik:GridTemplateColumn> </Columns> <CommandItemTemplate> </CommandItemTemplate></MasterTableView> </telerik:RadGrid>I want to update a Label control which is inside the same GridItem (row).
I have added the OnSelectedIndexChanged Event to the combobox but i just cannot get the current row as it's (i assume) not selected when you change the combobox index.
I just want to select a new item in the combobox and make it updates the Label1 in the same ItemTemplate (findControl i guess but as mentioned i cannot find the currently selected index.
I tried something along the following but, i am missing something.
01.Protected Sub cmbSetMarkup(ByVal sender As Object, _ 02. ByVal e As Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs) 03. Dim combo As RadComboBox = DirectCast(sender, RadComboBox) 04. Dim NewValue As String = combo.SelectedValue 05. 06. For Each markupItem As GridItem In RadGrid1.MasterTableView.GetItems( _ 07. New GridItemType() {GridItemType.Item, GridItemType.AlternatingItem}) 08. Dim LblPercent As Label = CType(WHATHERE.FindControl("MyPercent"), Label) 09. LblPercent.SelectedValue = NewValue 10. Next11. 12. End SubIn the column, I had set <nobr> so that it will have only 1 column if i dragged the column width to smaller. But when mouseover the link, the tooltip become <nobr>XXXXX.doc</nobr> not XXXXX.doc. How do I remove the <nobr> or remove the tooltip but still preserve to 1 row event the width turn smaller.
Thanks in advance.
<telerik:GridHyperLinkColumn DataNavigateUrlFormatStringa.aspx?id={0}" DataNavigateUrlFields="ID" DataTextFormatString="<nobr>{0}</nobr>" DataTextField="Filename" HeaderText="<nobr>Filename</nobr>" UniqueName="Filename" SortExpression="Filename"> </telerik:GridHyperLinkColumn>I'm using a web usercontrol with fields to edit an XML file. I have an "Edit" link on this usercontrol to edit a radgrid on this parent usercontrol by opening a child radwindow then in the child radwindow i save the values and close the child radwindow. The problem I'm having is that the values are saved are refreshed in the parent window and the grid is populated with the new values but the values that I had in the form in other fields get lost because a full postback is caused. Is there a way I can only refresh the grid only on the parent usercontrol instead of refreshing the whole parent. I'm using the following JavaScript to open the radwindow then refresh the parent after the child window is closed.
Code to open the child radwindow
function openDevDealTailredPopup(tailoredIndex) {
var oWnd = radopen(“blabla”, "RadWindow1");
oWnd.set_modal(true);
oWnd.SetWidth((document.documentElement.clientWidth) * (95 / 100));
oWnd.SetHeight((document.documentElement.clientHeight) * (80 / 100));
oWnd.center();
}
The code that closes the child radwindow and refreshes the parent usercontrol
function GetRadWindow() {
var oWindow = null;
if (window.radWindow) oWindow = window.radWindow;
else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
return oWindow;
}
function CloseRadWindow() {
var oWindow = GetRadWindow();
oWindow.opener = "x";
oWindow.Close();
OnClose();
}
function OnClose() {
var oWnd = GetRadWindow().BrowserWindow;
oWnd.location.href = oWnd.location.href;
}
I would appreciate your help on this matter.
