Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
135 views
Hi there,
I'd like to have a PanelBar which has the following type of layout:

Workflow
    Cases
        Case 1001
        Case 1002
        Case 1003
Search
    Search by case number
    Search by id
Reports
    Activity report
    Audit report

Where All but the items under the Cases node are static, but those under Cases are dynamic, retrieved by a call to a WCF service method.

Is this possible??

Thanks,

James

Veselin Vasilev
Telerik team
 answered on 15 Jan 2010
1 answer
269 views
Hi,

I m facing the following below problem on my Deployment Server ,
i am using microsoft script manager and radscript manager in my application ,locally it run pretty much fine but when i m going to deploy
it on my Development server it shows the below error when my Login page is open


error description:

Method not found: 'Void System.Web.UI.ScriptManager.RegisterHiddenField(System.Web.UI.Page, System.String, System.String)'.


[MissingMethodException: Method not found: 'Void System.Web.UI.ScriptManager.RegisterHiddenField(System.Web.UI.Page, System.String, System.String)'.]
   Telerik.Web.UI.RadScriptManager.OnLoad(EventArgs e) +0
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627



Looking Forward
Veselin Vasilev
Telerik team
 answered on 15 Jan 2010
1 answer
170 views
I have added a new Grid ContextMenuItem and added a handler for the click event. I want to open the Upload Window on this event but don't know how to do it. This functionality is to allow for document versioning and I'll do all of the checks for versioning serverside.

Here's the handler:

    function OnClientContextMenuItemClicked(sender, args) { 
        var buttonValue = args.get_item().get_value(); 
        if (buttonValue == "Checkin") { 
            var oExplorer = $find("<%= DocumentExplorer.ClientID %>"); 
            var oAjax = $find("RadAjaxManager"); 
            // I want to open the upload window here 
        } 
    } 
 

Thanks,
Steve


Steve White
Top achievements
Rank 1
 answered on 15 Jan 2010
2 answers
158 views
In my CustomProvider I've added an Attribute to a FileItem and I'm displaying it in the Grid as a new column. This Attribute is based on business logic and shows the status of the File (checked-out/in). The column is called 'Status' and when checked out the row displays 'Locked'.

Couple of things:
1) how do I change the backbround on any grid rows that are 'Locked'? In other words how do I get the Attribute server-side?
2) when the user selects the 'Locked' row I want to disable some elements in the Toolbar as well as the selected grid row contextmenu. Specifically, I want to grey-out the 'Delete' item in the contextmenu when a file is checked out.

I have added 2 ToolBar items to the Explorer: 'Check Out' and 'Edit File'. If the selected item is already checked out, I want to change the 'Check Out' ToolBar item to 'Check In' (of course I'll need to run a security check to make sure the person who has the file checked out is the same as the current user).

I've tried using ExplorerPopulated and I can correctly get the 'Locked' item as below, but I'm stuck on how to do 1) and 2) above.

    Private Sub DocumentExplorer_ExplorerPopulated(ByVal sender As Object, ByVal e As RadFileExplorerPopulatedEventArgs) 
        Dim items As List(Of Widgets.FileBrowserItem) = e.List 
        'Dim isGridPopulated As Boolean = items.Exists(Function(it) (TypeOf it Is Widgets.FileItem)) 
        'If (isGridPopulated) Then 
        Dim i As Integer = 0 
        While i < items.Count 
            If TypeOf items(i) Is Widgets.FileItem Then 
                If items(i).Attributes("Status").ToString = "Locked" Then 
                    ' how do I get the contextmenu here so I can grey out some of the items? 
                    ' also the comment line below seems to have no effect!!!!!!!! 
                    'items(i).Permissions = Widgets.PathPermissions.Read 
                End If 
            End If 
            i += 1 
        End While 
        'End If 
    End Sub 
 

Thanks,
Steve


Steve White
Top achievements
Rank 1
 answered on 15 Jan 2010
6 answers
144 views
How work disposed event, only work F4+ALT (dispose)

protected

 

void RadWindow1_Disposed(object sender, EventArgs e)

 

{

dsSektor.DataBind();

}

 

Sinan
Top achievements
Rank 1
 answered on 15 Jan 2010
1 answer
113 views
Hi to all !

I  have RadAjaxPanel and urlrewriter (IsapiRewrite4) in my application.
As you see i use javascript functions for ClientEvents.
I have a simple asp:LinkButton on my page.
My first problem was that i could not postback to this page  when i turned on urlrewriter. I solved it by direct setting
PostBackUrl property for linkbutton. Now it os ok

But ajax functions do not called anymore with rewriter. Please help me, what should i do to force it work?

Thanks a lot

<

RA:RadAjaxPanel OnAjaxRequestError="AjaxRequestErrorHandler" id="main" runat="server" ClientEvents-OnRequestStart="ShowWait(); ..." ClientEvents-OnResponseEnd="EndWait(); ...">

 

Veli
Telerik team
 answered on 15 Jan 2010
6 answers
263 views
That's it, any ideas? I think it's tied to a registry problem maybe, this seems to be the case with other installers that give this message. Tried reboot, clearing temp folder, re-downloading installer, and searching regex for telerik all to no avail.

Thanks
Andrey
Telerik team
 answered on 15 Jan 2010
1 answer
110 views
Hi,

When I set AllowPaging="True" and from codebehind

RadFileExplorer1.Grid.PageSize=9
it works

RadFileExplorer1.Grid.PageSize=10
PAGING IS NOT WORKING!

RadFileExplorer1.Grid.PageSize=11
it works

Strange but true...

Regards,
Marc
Fiko
Telerik team
 answered on 15 Jan 2010
1 answer
264 views
Hi,

Im trying out the sample at http://www.telerik.com/help/aspnet-ajax/grid-persist-selected-rows-client-sorting-paging-grouping-filtering.html
Here is my page: http://www.ximnet.com.my/aspnet35/test_grid.aspx.

However, the page doesn't maintain the selected row after page change or after sorting.
Is there something wrong with my code?

ASPX:
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="test_grid.aspx.vb" Inherits="test_grid" %> 
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head runat="server"> 
    <title></title> 
 
    <script type="text/javascript"> 
        var selected = {}; 
        function RadGrid1_RowSelected(sender, args) { 
            var gID = args.getDataKeyValue("gID"); 
            if (!selected[gID]) { 
                selected[gID] = true; 
            } 
        } 
        function RadGrid1_RowDeselected(sender, args) { 
            var gID = args.getDataKeyValue("gID"); 
            if (selected[gID]) { 
                selected[gID] = null; 
            } 
        } 
        function RadGrid1_RowCreated(sender, args) { 
            var gID = args.getDataKeyValue("gID"); 
            if (selected[gID]) { 
                args.get_gridDataItem().set_selected(true); 
            } 
        } 
        function GridCreated(sender, eventArgs) { 
            var masterTable = sender.get_masterTableView(); 
            //check whether all items on the active page are selected 
            if (masterTable.get_selectedItems().length == masterTable.get_pageSize()) { 
                //find the checkbox in the header of the GridClientSelectColumn and set checked state for it - will work with AllowMultiRowSelection = true only! 
                var gridHeader = masterTable.get_element().getElementsByTagName("TH")[0]; 
                for (var i = 0; i < gridHeader.childNodes.length; i++) { 
                    if (gridHeader.childNodes[i].id.indexOf("columnSelectCheckBox") > -1) { 
                        gridHeader.childNodes[i].checked = "true"; 
                    } 
                } 
            } 
        } 
    </script> 
 
</head> 
<body> 
    <form id="form1" runat="server"> 
    <telerik:radscriptmanager id="RSM" runat="server" /> 
    <div> 
        <telerik:radgrid runat="server" id="gPoint" allowmultirowselection="True" showfooter="true" 
            runat="server" allowpaging="True" allowsorting="True" skin="Default" horizontalalign="NotSet" 
            width="100%" cellpadding="5"> 
                                <pagerstyle position="Top" mode="NextPrevAndNumeric" /> 
                                 <ClientSettings> 
   <Selecting AllowRowSelect="True" /> 
      <ClientEvents OnRowCreated="RadGrid1_RowCreated" OnRowSelected="RadGrid1_RowSelected" 
                   OnRowDeselected="RadGrid1_RowDeselected" OnGridCreated="GridCreated" /> 
 </ClientSettings> 
                                <mastertableview autogeneratecolumns="False" gridlines="None" ClientDataKeyNames="gID"><NoRecordsTemplate> 
 
<div style="text-align:left; vertical-align:middle;">No points found</div> 
</NoRecordsTemplate> 
 
<Columns> 
    <telerik:GridClientSelectColumn UniqueName="ClientSelectColumn" /> 
<telerik:GridTemplateColumn UniqueName="gID" SortExpression="gID" HeaderText="Serial"> 
<ItemTemplate> 
 
<%#DataBinder.Eval(Container, "DataItem.gID")%> 
 
</ItemTemplate> 
</telerik:GridTemplateColumn> 
 
</Columns> 
</mastertableview> 
</telerik:radgrid> 
    </div> 
    </form> 
</body> 
</html> 
 


VB:
Imports System.Data 
 
Partial Class test_grid 
    Inherits System.Web.UI.Page 
    Protected Sub gPoint_NeedDataSource(ByVal source As Object, ByVal e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles gPoint.NeedDataSource 
        Dim dt As DataTable = New DataTable 
        Dim dc As DataColumn = New DataColumn 
        dc.ColumnName = "gID" 
 
        dt.Columns.Add(dc) 
 
        Dim dr As DataRow 
        Dim i As Integer 
 
        While i <> 50 
 
            dr = dt.NewRow 
            dr("gID") = System.Guid.NewGuid.ToString 
            dt.Rows.Add(dr) 
 
            i = i + 1 
 
        End While 
 
        gPoint.DataSource = dt 
 
 
    End Sub 
 
End Class 
 



Yavor
Telerik team
 answered on 15 Jan 2010
1 answer
155 views
I have a grid that I am using as a shopping cart with an editable quantity column. With items are in the cart, the quantity column is a 

GridNumericColumnEditor 

 

with all rows always in edit mode. The problem is that only the first row gets the width setting but the other rows ignore it. I tried to change the width with headerstyle, itemstyle, customeditorID, css but nothing seems to work. The class applied to the numeric box is "riTextBox riEnabled" and the rows that don't change defaults to style="width:125px;" How can I make all column the applied width of "col.NumericTextBox.Width = Unit.Pixel(21);" ?

 

<

 

telerik:GridNumericColumn DataField="Quantity" HeaderText="Quantity"

 

 

UniqueName="Quantity" HeaderStyle-Width="40px" ItemStyle-Width="40px" MaxLength="3" />

 

 


<td style="width:40px;"><span id="grdOrderCart_ctl00_ctl05_RNTB_Quantity_wrapper" class="RadInput RadInput_Default" style="white-space:nowrap;"><input type="text" value="999" maxlength="3" id="grdOrderCart_ctl00_ctl05_RNTB_Quantity_text" name="grdOrderCart_ctl00_ctl05_RNTB_Quantity_text" class="riTextBox riEnabled" style="width:125px;" /><input style="visibility:hidden;margin:-18px 0 0 0;width:1px;height:1px;overflow:hidden;border:0;padding:0;" id="grdOrderCart_ctl00_ctl05_RNTB_Quantity" class="rdfd_" value="999" type="text" /><input style="visibility:hidden;margin:-18px 0 0 0;width:1px;height:1px;overflow:hidden;border:0;padding:0;" id="grdOrderCart_ctl00_ctl05_RNTB_Quantity_Value" class="rdfd_" name="grdOrderCart$ctl00$ctl05$RNTB_Quantity" value="999" type="text" /><input id="grdOrderCart_ctl00_ctl05_RNTB_Quantity_ClientState" name="grdOrderCart_ctl00_ctl05_RNTB_Quantity_ClientState" type="hidden" /></span></td>

 

protected void grdOrderCart_CreateColumnEditor(object sender, GridCreateColumnEditorEventArgs e)

 

{

 

if (e.Column.HeaderText == "Quantity")

 

{

e.Column.ItemStyle.Width =

Unit.Pixel(21);

 

 

GridNumericColumnEditor col = e.ColumnEditor as GridNumericColumnEditor;

 

col.NumericTextBox.Width =

Unit.Pixel(21);

 

col.NumericTextBox.CssClass =

"QuantityBox";

 

 

//e.ColumnEditor = new GridNumericColumnEditor(e.gr

 

}

}

Princy
Top achievements
Rank 2
 answered on 15 Jan 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?