or
'I want do download the corresponding file when i click the grid Image button
'Here i paste my code. it shows this bug(shows in attachment)
Protected Sub ExplorerGrid_ItemCommand(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles VersionGrid.ItemCommand Dim objGridDataItem As GridDataItem = CType(e.Item, GridDataItem) Dim stringVersion As String stringVersion = objGridDataItem.Item("Version").Text Dim stringPath As String = Request.QueryString("filepath") Dim temppath As String = stringPath.Substring(0, stringPath.LastIndexOf("\")) Dim filename As String = stringPath.Substring(stringPath.LastIndexOf("\") + 1) filename = filename.Replace("'", "''") Dim sqlcon As New SqlConnection(ConfigurationManager.ConnectionStrings("MyConnection").ToString()) Dim objSqlDASec As New SqlDataAdapter("select * from Sample where [DocumentName]= '" + filename + "'", sqlcon) objSqlDASec.SelectCommand.CommandTimeout = 1200 Dim objDTSec As New DataSet objDTSec.Clear() objSqlDASec.Fill(objDTSec) Dim buffer As Byte() buffer = objDTSec.Tables(0).Rows(0)("Document") Try Dim req As New WebClient Dim response As HttpResponse response = HttpContext.Current.Response response.Clear() response.ClearContent() response.ClearHeaders() response.Buffer = True response.AddHeader("Content-Disposition", "attachment; filename=" + filename) response.ContentType = "application/octet-stream" response.BinaryWrite(buffer) response.Flush() response.End() Catch ex As Exception End Try End SubRight(document.getElementById('Mybox').value, 5) < 1000
this number is built up like so. 'project-module-1xxx'
I.E I only want to get values that are higher than 1000. How can I get the same functionality from a radcombobox ?
I tried with
Right($find("Mybox").get_text(), 5) < 1000) but that didnt recognize the right functionality.
all help appreciated,
Server Error in '/' Application.--------------------------------------------------------------------------------The specified view is invalid. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.ArgumentException: The specified view is invalid.Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [ArgumentException: The specified view is invalid.] Microsoft.SharePoint.SPViewCollection.get_Item(Guid guid) +26039668 Telerik.Ajax.SharePoint.TelerikDataBoundWebPart.get_CurrentView() +321 Telerik.Ajax.SharePoint.SPListBoundRadControlToolPart.SetUpListViewCombo() +725 System.Web.UI.Control.EnsureChildControls() +146 System.Web.UI.Control.PreRenderRecursiveInternal() +61 System.Web.UI.Control.PreRenderRecursiveInternal() +224 System.Web.UI.Control.PreRenderRecursiveInternal() +224 System.Web.UI.Control.PreRenderRecursiveInternal() +224 System.Web.UI.Control.PreRenderRecursiveInternal() +224 System.Web.UI.Control.PreRenderRecursiveInternal() +224 System.Web.UI.Control.PreRenderRecursiveInternal() +224 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3394 --------------------------------------------------------------------------------Version Information: Microsoft .NET Framework Version:2.0.50727.4963; ASP.NET Version:2.0.50727.4971<telerik:RadTreeView ID="RadTreeView1" Runat="server" OnNodeClick="RadTreeView1_NodeClick" EnableDragAndDrop="True" Skin="Vista" OnContextMenuItemClick="RadTreeView1_ContextMenuItemClick" OnNodeEdit="RadTreeView1_NodeEdit" OnNodeDrop="RadTreeView1_HandleDrop" SingleExpandPath="True" EnableViewState="true" > <ContextMenus> <telerik:RadTreeViewContextMenu ID="RightClick" runat="server"> <Items> <telerik:RadMenuItem Value="NewParentNode" Text="Create New Parent Folder" > </telerik:RadMenuItem> <telerik:RadMenuItem Value="NewNode" Text="Create New Folder" > </telerik:RadMenuItem> <telerik:RadMenuItem IsSeparator="true"> </telerik:RadMenuItem> <telerik:RadMenuItem Value="NewVirtualDocument" Text="New Virtual Document" > </telerik:RadMenuItem> <telerik:RadMenuItem Value="UploadPDF" Text="Upload PDF" > </telerik:RadMenuItem> <telerik:RadMenuItem IsSeparator="true"> </telerik:RadMenuItem> <telerik:RadMenuItem Value="DeleteNode" Text="Delete Folder" > </telerik:RadMenuItem> </Items> <CollapseAnimation Type="none" /> </telerik:RadTreeViewContextMenu> </ContextMenus></telerik:RadTreeView>protected void RadTreeView1_NodeClick(object sender, RadTreeNodeEventArgs NodeEvent){ clickedNode = NodeEvent.Node; ViewState["ClickedNode"] = clickedNode.Value.ToString(); createDynamicTable(Convert.ToInt32(ViewState["ClickedNode"].ToString())); string savetreeViewState = RadTreeView1.GetXml(); savetreeViewState = savetreeViewState.Replace("South Africa", "save state is working"); Session["myTreeView"] = savetreeViewState;}
Thank you for your time.
function pageLoad() { fixWindow(); }function fixWindow() { // Fix the height to show the buttons in the right place. var oWnd = GetRadWindow(); var contentHeight = $('#mainContent').height(); var newHeight = contentHeight + 10; var windowWidth = oWnd.get_width(); $('#popupWrapper').height(newHeight); $('#popupWrapper').width(windowWidth - 75); var windowHeight = newHeight + 105; oWnd.set_height(windowHeight + "px"); // if (oWnd != null) { // oWnd.center(); // }}<telerik:RadListView ID="listViewProducts" runat="server" onneeddatasource="listViewProducts_NeedDataSource" ItemPlaceholderID="ProductsHolder" DataKeyNames="ProductCatalogID" > <AlternatingItemTemplate> <div class="rlvA" style="height: 160px; width: 200px; margin-top: 5px; margin-right: 5px; margin-bottom: 5px; padding-left: 5px;"> <table cellpadding="1" cellspacing="1" border="0" width="200"> <tr style="height:60px;"> <td class="header4" ><%#Eval("Products")%></td> </tr> <tr> <td align="center"><%--<asp:ImageButton ID="ImageButton2" ImageUrl="~/Images/Product.jpg" PostBackUrl='<%# Eval("Link")%>' runat="server" target="_blank" />--%> <asp:ImageButton ID="ImageButton1" ImageUrl="~/Images/Product.jpg" runat="server" OnClientClick=<%# "window.open('" + Eval("Link") + "','',''); return false;" %> /></td> </tr> </table> </div> </AlternatingItemTemplate> <ItemTemplate> <div class="rlvI" style="height: 160px; width: 200px; margin-top: 5px; margin-right: 5px; margin-bottom: 5px; padding-left: 5px;"> <table cellpadding="1" cellspacing="1" border="0" width="200"> <tr style="height:60px;"> <td class="header4"><%#Eval("Products")%></td> </tr> <tr> <td align="center"><asp:ImageButton ID="ImageButton3" ImageUrl="~/Images/Product.jpg" runat="server" OnClientClick=<%# "window.open('" + Eval("Link") + "','',''); return false;" %> /></td> </tr> </table> </div> </ItemTemplate> <EmptyDataTemplate> <div class="RadListView RadListView_Windows7"> <div class="rlvEmpty"> There are no items to be displayed.</div> </div> </EmptyDataTemplate> <LayoutTemplate> <div style="width:1150px;" class="RadListView RadListViewFloated RadListView_Windows7"> <div class="rlvFloated rlvAutoScroll"> <div id="Div1" runat="server"> <div id="ProductsHolder" runat="server"> </div> </div> </div> </LayoutTemplate> </telerik:RadListView>
<telerik:RadTreeView ID="RadTreeViewSource" runat="server" Height="580px"
OnNodeClick="RadTreeViewSource_NodeClick" >
<DataBindings>
<telerik:RadTreeNodeBinding Expanded="false" />
</DataBindings>
</telerik:RadTreeView>
Above is my code.
am binding treeview in codebehind with datattable value.
Thanks,
Mugdha