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 NextNextEnd 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>Had a few reports from customers that the upload control was not properly displayed. Only a small box was displayed on the screen - no browse button, and nothing happened when clicking.
I was able to reproduce the problem in IE8 compatibility mode (presumably, this would also happen in IE7 and in IE9 compatibility mode).
The span wrapper around the file input box was set to overflow:hidden, which chopped off the control display, leaving just a little bit peeking out.
I added the following to my page to fix the problem:
<style type="text/css"> .RadUpload .ruFileWrap { overflow:visible !important; } </style>
Since the overflow style in the telerik upload.css file is "!important", I could not find a way to fix the overflow globally - I need to add the above style to every page where the control is used. Is there a better way to do this?