Hi
I want to refresh/rebind all child grids (child2 gridtableview) on edit/insert case of chid1 (gridtableview), child1 and chid2 are on same level in Detail tables of RadGrid.
I am using update command function to insert/edit records in chid1.
After completing insert/edit case of child1 gridview rebind automatically while the other child2 on same level contain old data, i want to refresh/rebind the child2 grid as well.
Here is code structure for understanding...
<telerik:RadGrid ID="PlEmployee" runat="server" AllowPaging="True" AllowSorting="True" AllowFilteringByColumn="True"
OnUpdateCommand="PlEmployee_UpdateCommand"
<DetailTables>
<telerik:GridTableView runat="server" Name="Child1">
<telerik:GridTableView runat="server" Name="Child2">
</DetailTables>
</telerik:RadGrid>
Regards,
Zain
Hi team,
I am having listview, I want to add treeview inside listview.
And the listview should be combobox same like in this demo
Please help me how to do this.
aspx page
<
telerik:RadListView
ID
=
"rlvUsers"
runat
=
"server"
ItemPlaceholderID
=
"EmployeesContainer"
DataKeyNames
=
"userid"
OnItemDataBound
=
"rlvUsers_ItemDataBound"
>
<
LayoutTemplate
>
<
fieldset
>
<
legend
>New Employees - Manage Profiles</
legend
>
<
asp:PlaceHolder
ID
=
"EmployeesContainer"
runat
=
"server"
></
asp:PlaceHolder
>
</
fieldset
>
</
LayoutTemplate
>
<
ItemTemplate
>
<
fieldset
>
<
legend
class
=
"gray"
><%#Eval("fullName")%></
legend
>
<
table
style
=
"line-height: 30px; padding: 60px; width: 100%"
>
<
tr
>
<
td
style
=
"width: 120px"
>
<
asp:Label
ID
=
"Label1"
runat
=
"server"
CssClass
=
"ax-text-gray"
Text
=
"Employee Code"
></
asp:Label
>
</
td
>
<
td
>
<
asp:Label
ID
=
"Label2"
runat
=
"server"
CssClass
=
"ax-input-noborder"
Text='<%#Eval("empid")%>'></
asp:Label
>
</
td
>
<
td
style
=
"width: 50px"
></
td
>
<
td
style
=
"width: 120px"
>
<
asp:Label
ID
=
"Label7"
runat
=
"server"
CssClass
=
"ax-text-gray"
Text
=
"Select Parent"
></
asp:Label
>
</
td
>
<
td
>
<
telerik:RadComboBox
ID
=
"cbParent"
runat
=
"server"
Width
=
"400px"
>
<
ItemTemplate
>
<
telerik:RadTreeView
ID
=
"rTreeParent"
runat
=
"server"
DataFieldID
=
"userid"
DataFieldParentID
=
"parent_id"
DataTextField
=
"fullName"
DataValueField
=
"userid"
>
</
telerik:RadTreeView
>
</
ItemTemplate
>
</
telerik:RadComboBox
>
</
td
>
<
td
rowspan
=
"3"
>
<
asp:Button
ID
=
"btnAssignProfiles"
CssClass
=
"btn btn-circle btn-sky"
runat
=
"server"
Text
=
"Assign"
/>
</
td
>
</
tr
>
</
table
>
<
br
/>
<
br
/>
</
fieldset
>
</
ItemTemplate
>
</
telerik:RadListView
>
code behind
protected
void
rlvUsers_ItemDataBound(
object
sender, RadListViewItemEventArgs e)
{
if
(e.Item.ItemType == RadListViewItemType.DataItem || e.Item.ItemType == RadListViewItemType.AlternatingItem)
{
RadListViewItem item = e.Item
as
RadListViewItem;
RadComboBox cbParent = (RadComboBox)item.FindControl(
"cbParent"
);
cbParent.DataSource = getActiveUsers();
cbParent.DataBind();
}
}
Now it is loading in combo box. But I wan this in tree inside combobox
Thanks
Alex
How to get value from javascript in server side using RadConfirm.
I have the following code but I am not getting any value in server side:
here my HTML code:
function ConfirmCancel() {
var confirmvalue = false;
if (!confirmvalue) {
radconfirm('CANCELLING A REQUEST IS DEFINE AS : When an employee who received original request approval never performed one day of service in the Sixth Period Coverage Program. This action might trigger the recoupment of the original payments', confirmCallBackFn); return false;
}
}
function confirmCallBackFn(arg) {
var control = $find("<%= inpHide.ClientID%>");
if (arg) {
confirmValue = true;
document.getElementById(control).value = "1";
}
else {
document.getElementById(control).value = "0";
}
}
<input id="inpHide" type="hidden" runat="server" />
<telerik:GridTemplateColumn HeaderText="Link to Form/Cancel Request" UniqueName="ButtonColumn" HeaderStyle-HorizontalAlign="Center" HeaderStyle-Width="200px" >
<ItemTemplate> <
<asp:ImageButton ID="CancelReqBtn" ImageUrl="~/Image/Cancel_button6.png" runat="server" CommandName="Cancel" ImageAlign="Right" BackColor="Transparent" ToolTip="cancel the request" Width="50px" Height="20px" Visible="false" OnClientClick="return ConfirmCancel();" />
</ItemTemplate>
</telerik:GridTemplateColumn>
And here is my code behind:
if (e.CommandName == "Cancel")
{
int result = int.Parse(inpHide.Value);
if (result == 0)
{
}
But for some reason when I put breakpoint on command name it is not executing.
Please help me to solve this issue.
thanks so much
Hi,
Checkboxes and radiobuttons in Microsoft Edge browser with Lightweight render mode doesn't work at all!
You can see this in your demo:
http://demos.telerik.com/aspnet-ajax/formdecorator/examples/overview/defaultcs.aspx
When using classic render mode it works!
Regards<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server"> |
<script type="text/javascript"> |
function ShowInvoice(file) { |
window.radopen("InvoiceWindow.aspx?file=" + file, "InvoiceWin"); |
return false; |
} |
</script> |
<telerik:RadWindowManager ID="RadWindowManager1" runat="server"> |
<Windows> |
<telerik:RadWindow Skin="Sunset" ID="InvoiceWin" runat="server" Title="Monthly Invoice" Height="800" |
Width="850" Left="10px" ReloadOnShow="true" Modal="true" ShowContentDuringLoad="false" Animation="None" /> |
</Windows> |
</telerik:RadWindowManager> |
</telerik:RadCodeBlock> |
<html xmlns="http://www.w3.org/1999/xhtml"> |
<head runat="server"> |
<title>Dealership Invoice Viewer</title> |
<script type="text/javascript"> |
function GetRadWindow() { |
var oWindow = null; |
if (window.radWindow) oWindow = window.radWindow; |
else if (window.frameElement.radWindow) |
oWindow = window.frameElement.radWindow; |
return oWindow; |
} |
function CloseRadWin() { |
//get a reference to the RadWindow |
var oWnd = GetRadWindow(); |
//close the RadWindow |
oWnd.close(); |
} |
</script> |
</head> |
<body> |
<form id="form1" runat="server"> |
<iframe style="width:820px; height:680px;" id="iframe1" runat="server"></iframe><br /> |
<a href="#" onclick='return CloseRadWin();'><img src="images/close_win.gif" border="0" style="vertical-align: middle" /> Close Invoice</a> |
</form> |
</body> |
</html> |
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load |
iframe1.Attributes("src") = Request("file") |
End Sub |
Hi,
I have an aspx page where i declared a radwindow (Contenttemplate). In that radwindow i have some text which needs to be copied to clipboard.
I tried with traditional way of copying to clipboard by using the exec("copy"). it works in IE. but it doesn't in Google Chrome (Version 47.0.2526.106)
In other page, i used radbutton for the action of copying, since it was not working i have changed it to asp button.Now its working there for IE and Chrome. that page has no controls which would collapse in the script runtime. But here the radwindow is doing some weird things of stopping that js code.
When in debugging, it is executing but not evaluating anything. ?
any work around for this?
Hi ,
Problem : I have problem statement in which i need to dynamically generate multiple textbox for edit.Number of textboxes depends on the number of tags read from xml file.I need to save the updated values into the xml again.
What I have done is as follows:
I am using RadGrid control.
When users click edit button ,On IteamDataboud event of radgrid I have read one hidden value field in EditFormSetting.Using this value I fetch record from xml and create Textboxs and display the value.When user is done with editing ,user press update button and Updateclick event fires.I am trying to access the dynamically created control values on clcik event but i guess these controls are not available due to Postback of page happen when update Button clicked.
I want to use the updated values of these dynamically generated controls.Can anyone please suggest me how to proceed?.
I am new to Asp.net
Thanks,
Mukesh
<
telerik:RadAsyncUpload
runat
=
"server"
ID
=
"AsyncUpload"
MaxFileSize
=
"5242880"
CssClass
=
"DokumentUpload"
EnableViewState
=
"true"
EnableInlineProgress
=
"true"
InputSize
=
"30"
Culture
=
"DE-de"
MaxFileInputsCount
=
"10"
MultipleFileSelection
=
"Disabled"
AllowedFileExtensions
=
"pdf,doc,docx,ppt,pptx,gif,png,jpg,tif,tiff,txt"
OnFileUploaded
=
"RadAsyncUploadFileUploaded"
OnClientFileUploading
=
"fileUploading"
OnClientFilesUploaded
=
"filesUploaded"
OnClientFileUploadRemoved
=
"fileRemoved"
OnClientFileUploadFailed
=
"fileUploadFailed"
OnClientValidationFailed
=
"validationFailed"
>
<
Localization
Select
=
"Hochladen"
Cancel
=
"Abbrechen"
Remove
=
"Entfernen"
/>
</
telerik:RadAsyncUpload
>