<telerik:RadSplitter ID="RadSplitter1" runat="server" Height="500px" Skin="Forest" Width="220px"> <telerik:RadPane ID="LeftPane" runat="server" Height="16px" Scrolling="none" Width="41px"> <telerik:RadSlidingZone ID="SlidingZone1" runat="server" Width="22px"> <telerik:RadSlidingPane ID="RadSlidingPane1" runat="server" Width="200px"> <telerik:RadPanelBar ID="RadPanelBar2" Runat="server" Height="100%" Skin="Forest" Width="180px"> </telerik:RadPanelBar> </telerik:RadSlidingPane> </telerik:RadSlidingZone> </telerik:RadPane> <telerik:RadSplitBar ID="Radsplitbar1" runat="server"> </telerik:RadSplitBar></telerik:RadSplitter><telerik:RadSplitter ID="RadSplitter1" runat="server" Height="500px" Skin="Forest" Width="220px"> <telerik:RadPane ID="LeftPane" runat="server" Height="16px" Scrolling="none" Width="41px"> <telerik:RadSlidingZone ID="SlidingZone1" runat="server" Width="22px"> <telerik:RadSlidingPane ID="RadSlidingPane1" runat="server" Width="200px"> <telerik:RadPanelBar ID="RadPanelBar2" Runat="server" Height="100%" Skin="Forest" Width="180px"> </telerik:RadPanelBar> </telerik:RadSlidingPane> </telerik:RadSlidingZone> </telerik:RadPane> <telerik:RadSplitBar ID="Radsplitbar1" runat="server"> </telerik:RadSplitBar> </telerik:RadSplitter>{if(T==null){throw"Syntax error, unrecognized expression: "+ad}else{break}} this function calls the jquery: _find: function _find(selector, context, single, filter) { var found = [], selectors; if (typeof(selector) === "string") { selectors = [selector]; } else { selectors = selector; } var includeSelf = context instanceof Array, simpleNonTag = /^([\$#\.])((\w|[$:\.\-])+)$/, tag = /^((\w+)|\*)$/; if ((typeof(context) === "string") || (context instanceof Array)) { context = Sys._find(context); } if (context instanceof Sys.ElementSet) { context = context.get(); } foreach(selectors, function(selector) { if (typeof(selector) !== "string") { if (filter) { if (contains(context, selector)) { found.push(selector); } } else { found.push(selector); } } else { var match = simpleNonTag.exec(selector); if (match && match.length === 4) { selector = match[2]; var type = match[1]; if (type === "$") { Sys._getComponent(found, selector, context); } else { var finder = type === "#" ? Sys._getById : Sys._getByClass; if (context) { foreach(context, function(node) { if (node.nodeType === 1) { return finder(found, selector, single, includeSelf, node, filter); } }); } else { finder(found, selector, single); } } } else if (tag.test(selector)) { if (context instanceof Array) { foreach(context, function(node) { if (node.nodeType === 1) { if (includeSelf && (selector === "*" || (node.tagName.toLowerCase() === selector))) { found.push(node); if (single) return true; } if (!filter) { if(!foreach(all(selector, node), function(node) { found.push(node); if (single) return true; })) { return true; } } } }); } else { var nodes = all(selector, context); if (single) { if (nodes[0]) { found.push(nodes[0]); } return true; } foreach(nodes, function(node) { found.push(node); }); } } else if (window.jQuery) { if (!filter) { found.push.apply(found, jQuery(selector, context).get()); } if (includeSelf) { found.push.apply(found, jQuery(context).filter(selector).get()); } } } });
Line 4: <%@ Register Src="Advetr3.ascx" TagName="Advetr3" TagPrefix="uc4" %>
Line 5: <%@ Register Src="Advetr4.ascx" TagName="Advetr4" TagPrefix="uc5" %>
Line 6: <%@ Register Assembly="Telerik.Charting, Version=2.0.4.0, Culture=neutral, PublicKeyToken=d14f3dcc8e3e8763"
Line 7: Namespace="Telerik.Charting" TagPrefix="telerik" %>
Line 8: <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
|
<telerik:RadToolBar ID="RadToolBar1" Runat="server" EnableViewState="False" Height="100%" Skin="Forest" Width="100%"> <Items> <telerik:RadToolBarButton Width="100%" runat="server" Text="Button1"> <ItemTemplate> <asp:TextBox ID="txtsearch" runat="server" CssClass="imgButtonRight" onkeypress="keyPress()" Font-Size="X-Large" Height="40px" Width="650px"></asp:TextBox> </ItemTemplate> </telerik:RadToolBarButton> </Items> </telerik:RadToolBar>public String txtsearchid{ get { RadToolBarItem textItem = RadToolBar1.FindItemByText("Button1"); TextBox txtseach = (TextBox)textItem.FindControl("txtsearch"); return txtseach.ClientID; }}<script type="text/javascript"> function keyPress() { var tb = document.getElementById('Text1'); var txtsearch = document.getElementById("<%=txtsearchid%>"); if (txtsearch.nodeValue.length <= 2) { PageMethods.Getadata(document.getElementById(txt2).value, myFunction); alert(msg); } return false; } function myFunction(msg) { }</script>
RadScriptManager.RegisterStartupScript(this, this.GetType(), "RadGridRebindFlightSeats", "RadGridRebindFlightSeats();", true);...
when not closing a radwindow but from another command button on the dock header the script works OK...???
<telerik:RadWindow runat="server" ID="RadWindowCreateFlight" InitialBehaviors="None" NavigateUrl="~/Dialogs/CreateFlight.aspx" ReloadOnShow="true" Animation="None" OnClientClose="CloseRadWindowCreateFlight" Height="550px" Modal="true" Title="Create Flight" Width="700px" Behaviors="Close, Move" Enabled="True" VisibleStatusbar="False" IconUrl="~/favicon.ico" KeepInScreenBounds="True" ShowContentDuringLoad="False"> </telerik:RadWindow>
function CloseRadWindowCreateFlightMeal() { var action = get_cookie("ACTION"); delete_cookie("ACTION"); if (action == "FLIGHT MEAL CREATED") { var tabStrip = $find("ctl00_contentBody_tabStripEvent"); var tab = tabStrip.findTabByText('Flights'); tab.set_selected(true); //The same as tab.select(); var multiPage = $find("ctl00_contentBody_multiPageEvent"); var pageView = multiPage.findPageViewByID("ctl00_contentBody_pageFlights"); pageView.set_selected(true); var masterTable = $find("ctl00_contentBody_RadDockFlightMeals_C_RadGridFlightMeals").get_masterTableView(); masterTable.rebind(); } return false; } function RadGridRebindFlightSeats() { var masterTable = $find("ctl00_contentBody_RadDockFlightSeats_C_RadGridFlightSeats").get_masterTableView(); masterTable.rebind(); return false; }
I would like to add grouping to my Grid.
I want 3 horizontal sections in my grid. At the beginning of Each section I would like to specifically Add Group Header.
I want paging separate to group Level ( Not to Grid level)
EditForm for Each group will be opening a same user control.
How do I do this?
Thanks
Hi,
I want my TreeView to remove a marked post when I've confirmed it from a button located in a modal popup.
Scenario:
1. TreeView is populated from DB.
2. Right click on some item.
3. Choose delete.
4. Modal popup appears asking if you're sure you want to delete the selected node.
5. If no, just close the popup. If yes, delete it from DB and refresh tree.
The problem is that it has to rerender the tree to show the changes. Is it possible to use the .Remove() function from a asp:button? If so, can I also use the add and rename functions?
Code for TreeView:
01.Protected Sub tree_ContextMenuItemClick(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadTreeViewContextMenuEventArgs) Handles tree.ContextMenuItemClick 02. Dim node As RadTreeNode = e.Node 03. Dim item As RadMenuItem = e.MenuItem 04. Dim menu As RadMenu = item.Menu 05. Dim value As String = item.Value 06. 07. Dim r As New Regex("\d*:") 08. Dim strName As String = node.Text 09. Select Case value 10. Case "3" 'delete 11. hdfNode.Value = node.Value 12. If (r.IsMatch(strName)) Then13. lblConfirmDelete.Text = strName.Substring(strName.IndexOf(": ") + 2).Replace("*", "") 14. Else15. lblConfirmDelete.Text = strName.Replace("*", "") 16. End If17. mpeNodeDelete.Show() 18. Exit Select19. End Select20.End SubCode for button:
1.Protected Sub btnNodeDelete_ok_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnNodeDelete_ok.Click 2. Try3. wrkTree.DeleteNode(hdfNode.Value.ToString()) 4. Catch ex As Exception 5. lblMess.Text = ErrorHandler.ExceptionTranslation(ex) 6. End Try7. setuptree() 8.End Sub