<
telerik:RadToolBar
ID
=
"RadTool"
runat
=
"server"
AutoPostBack
=
"true"
onbuttonclick
=
"RadTool_ButtonClick"
>
<
Items
>
<
telerik:RadToolBarButton
runat
=
"server"
Text
=
"Edit"
></
telerik:RadToolBarButton
>
<
ItemTemplate
>
<
asp:CheckBox
ID
=
"CheckBox1"
runat
=
"server"
/>
</
ItemTemplate
>
</
telerik:RadToolBarButton
>
</
Items
>
</
telerik:RadToolBar
>
Public Sub CheckBoxParent(ByVal sender As System.Object, ByVal e As System.EventArgs)
For Each item As GridDataItem In rParent.Items
Dim myCheckbox As CheckBox = DirectCast(item.FindControl("CheckBoxParent"), CheckBox)
Dim hAttributeID As HiddenField = DirectCast(dataItem.FindControl("hAttributeID"), HiddenField)
' Child radGrid
Dim dg As Telerik.Web.UI.RadGrid = item.FindControl("radChild")
' trying to Loop through each DataGridItem of the child grid
For Each dgItem As GridDataItem In dg.Items
Next
Next
End Sub
<
telerik:RadGrid
id
=
"rParent"
runat
=
"server"
AllowMultiRowSelection
=
"True"
>
<
MasterTableView
ShowHeader
=
"true"
AutoGenerateColumns
=
"false"
>
<
Columns
>
<
telerik:GridTemplateColumn
>
<
HeaderTemplate
></
HeaderTemplate
>
<
ItemTemplate
>
<
asp:CheckBox
id
=
"CheckBoxParent"
OnCheckedChanged
=
"findScore"
AutoPostBack
=
"True"
runat
=
"server"
></
asp:CheckBox
>
<%# DataBinder.Eval(Container.DataItem, "KeyID") %>
<
asp:HiddenField
ID
=
"hAttributeID"
runat
=
"Server"
Value='<%# DataBinder.Eval(Container.DataItem, "AttributeID") %>' />
<
telerik:RadGrid
id
=
"rChild"
runat
=
"server"
>
<
MasterTableView
ShowHeader
=
"false"
AutoGenerateColumns
=
"false"
>
<
Columns
>
<
telerik:GridTemplateColumn
>
<
ItemTemplate
>
<%# DataBinder.Eval(Container.DataItem, "Description") %>
<%# DataBinder.Eval(Container.DataItem, "AttributeID") %>
<
asp:CheckBox
id
=
"CheckBoxChild"
OnCheckedChanged
=
"findScore"
AutoPostBack
=
"True"
runat
=
"server"
></
asp:CheckBox
>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
</
Columns
>
</
MasterTableView
>
<
ClientSettings
EnableRowHoverStyle
=
"false"
EnablePostBackOnRowClick
=
"true"
/>
</
telerik:RadGrid
>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
</
Columns
>
</
MasterTableView
>
</
telerik:RadGrid
>
Hi all,
i am facing problem to closing clorbox when record is successfully inserted, my scenerio is follows
i am currently working on web application and using asp.net, c# and jquery languages, i have designed registration form and open into iframe so i have palced all input fields which is required in registration process like username, email, password etc. it is working fine when i am clicking on user registration anchor than register.aspx page is open in lightbox or popup window but light box not closed when user is successfully inserted. so how can i close it on successfully record insertion rather than cliking on close button.
i have also tried to close write this line $.colorbox.close(); on register.aspx page on submit click but it is not working ..
kindly helpout me.
i have written following code to open light box and this is URL which i have implement in my project
URL::::: http://jacklmoore.com/colorbox/
<
asp:Content
ID
=
"Content2"
ContentPlaceHolderID
=
"cph_body"
runat
=
"server"
> <
link
href
=
"../Styles/colorbox.css"
rel
=
"stylesheet"
type
=
"text/css"
/> <
script
src
=
"../Scripts/jquery-1.5.1.min.js"
type
=
"text/javascript"
></
script
> <
script
src
=
"../Scripts/jquery.colorbox.js"
type
=
"text/javascript"
></
script
> <
div
class
=
"content-body"
> <
div
style
=
"padding-bottom: 10px;"
> <
a
class
=
'UserRegistration'
href
=
"Register.aspx"
title
=
"User Registration"
><
span
> New User Registred Here</
span
></
a
> </
div
> </
div
> </
div
> <
script
type
=
"text/javascript"
> jQuery(document).ready(function () { jQuery(".UserRegistration").colorbox({ iframe: true, width: "580", height: "480", onClosed: function () { location.reload(true); } }); jQuery("#cboxClose").click(function () { location.reload(); }); }); function CloseColorBox() { $.colorbox.close(); location.reload(); } </
script
></
asp:Content
>
<
telerik:RadComboBox
ID
=
"RadComboBox1"
runat
=
"server"
Width
=
"150px"
DropDownWidth
=
"300px"
OnClientSelectedIndexChanged
=
"AlignLeftAfterSelectedIndexChange"
>
</
telerik:RadComboBox
>
function AlignLeftAfterSelectedIndexChange(sender) {
var input = sender.get_inputDomElement();
input.setSelectionRange(0, 0);
}
<telerik:RadTreeView ID="RadTreeView1" runat="server" OnClientContextMenuShowing="ClientContextMenuShowing">
<telerik:RadCodeBlock ID=
"RadCodeBlock1"
runat=
"server"
>
<script type=
"text/javascript"
language=
"javascript"
>
function
ClientContextMenuShowing(sender, eventArgs) {
var
node = eventArgs.get_node();
var
menu = eventArgs.get_menu();
var
domEvent = eventArgs.get_domEvent();
/* Change value of context menu based on whether an item is approved or not is Consent
Agenda */
if
(menu.get_id() ==
"ctl00_ContentPlaceHolder1_RadTreeView1_cmOtherApprovalsAgenda"
) {
var
attributes = node.get_attributes();
attributes.getAttribute(
"isApproved"
);
if
(attributes.getAttribute(
"isApproved"
) ==
"Yes"
) {
menu.findItemByValue(
"cmOtherApprovalsAgendaApproveAB"
).set_text(
"UnApprove Agenda Bill"
);
}
else
{
menu.findItemByValue(
"cmOtherApprovalsAgendaApproveAB"
).set_text(
"Approve Agenda Bill"
);
}
}
}
</script>
</telerik:RadCodeBlock>