Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
85 views
Hi guys,

I have a very annoying problem. I have a multipage including radgrids. From one pageview I requests a rebind of a grid in another pageview. The data is rebinded correctly, but something goes wrong in the layout. The grid height becomes so low that the rows disapears. If i resizing my browser window the columns are again become visible, but I do not want to be forced to do this resizing.

Any ideas?!

Best regards,
Ahrensberg
Dimo
Telerik team
 answered on 26 Feb 2010
3 answers
105 views
Hello community

My RadTreeView works with ServerSideCallbacks. In a demo for myself I add a UserControl as a node to the TreeView - which works fine as long as I do not use Telerik components.
However, as soon as I use telerik components in the UserControl I get an error that " " is not a registered client script control.

How I use it:
protected void UrlTreeView_NodeExpand(object sender, RadTreeNodeEventArgs e) 
        { 
            RadTreeNode onDemandNode = new RadTreeNode(); 
            SubdomainProperties sp = LoadControl("~/Controls/SubdomainProperties.ascx"as SubdomainProperties; 
            onDemandNode.Controls.Add(sp); 
            //Configure the node to populate on demand as well 
            onDemandNode.ExpandMode = TreeNodeExpandMode.ServerSideCallBack; 
            //Add the node as a child of the currently expanded node 
            e.Node.Nodes.Add(onDemandNode); 
 
            e.Node.Expanded = true
        } 

Part of the UserControl itself:
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="SubdomainProperties.ascx.cs" 
    Inherits="XSite.XIS.Web.UI.Controls.SubdomainProperties" %> 
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
<asp:Panel ID="subdomainPropertiesPanel" runat="server" style="padding:10px;"
... 
<telerik:RadDateInput runat="server"></telerik:RadDateInput> 
... 
</asp:Panel> 

I'd definitely appreciate any kind of help!

Thanks in advance
Best
Roman



Roman
Top achievements
Rank 1
 answered on 26 Feb 2010
1 answer
221 views
Has anyone tried a radlistbox with checkboxes in a filter template?
I'm trying to used the radlistbox checkeditems to filter a column...
Princy
Top achievements
Rank 2
 answered on 26 Feb 2010
7 answers
118 views
Hi

I'm creating a grid where I'd like to be able to delete a row client-side and have the delete command sent to the server using AJAX. What I did was to add a GridClientDeleteColumn to the grid, set AllowAutomaticDeletes=true on the MasterTableView and hook the RowDeleting client event. However when I click the Delete link nothing happens. The event isn't raised and the row isn't removed. I'm using client-side data binding through a web-service.

If I instead create a button column and set the command name to Delete, the Command event is fired correctly (but with no reference to the row in question). So apparently the command system is working, and if I place a breakpoint in the onclick of the Delete link emitted by the GridClientDeleteColumn I can see that it is called, but returns false before reaching my event handler.

Any ideas?

I'll try to recreate the problem in a smaller example, and post my finding, but wanted to post the question in case anyone had experienced similar problems.

/kim
Kim Birkelund
Top achievements
Rank 1
 answered on 26 Feb 2010
3 answers
290 views
I am building a web application in Visual Studio Team System 2008 using VB.NET 3.5 and RadControls for ASP.NET AJAX 2009 3 1314. My web page has a RadTreeView on one side and a number of fields on the other side, these fields being populated from a database when a node is clicked.

I am attempting to provide a similar functionality with RadTreeView when Javascript is disabled.

However, the AutoPostBack property (mentioned in http://www.telerik.com/help/aspnet/treeview/radtreeview-telerik.webcontrols.radtreeview-autopostback.html) is not recognised as a valid property by my RadTreeView, nor does it appear in the Visual Studio Object Browser. Can you assist in this regard?

In addition, would you have any suggestions as to how to cause the nodes to expand and cause the postback when Javascript is disabled?

Thanks in advance.
Yana
Telerik team
 answered on 26 Feb 2010
2 answers
127 views
Hello,
        I create a RadGrid programmaticaly with a RadContextMenu, however, it always popup script error. The code is below:
       
        1. Generate the RadContextMenu:
                    RadContextMenu RadMenu1 = new RadContextMenu(); 
                    RadMenu1.ID = "RadMenu1"
                    RadMenuItem viewItem = new RadMenuItem("View", "#"); 
                    RadMenu1.Items.Add(viewItem); 
                    RadMenuItem editItem = new RadMenuItem("Edit", "#"); 
                    RadMenu1.Items.Add(editItem); 
                    RadMenuItem deleteItem = new RadMenuItem("Delete", "#"); 
                    RadMenu1.Items.Add(deleteItem); 
                    this.Controls.Add(RadMenu1); 
          2. Bind to RadGrid:
grid.ClientSettings.ClientEvents.OnRowContextMenu = "RowContextMenu"
          3. Register the script:
                   string script = @"<script type='text/javascript'
                                        function RowContextMenu(sender, eventArgs)   
                                        {   
                                            var menu = $find('<%=RadMenu1.ClientID %>'); 
                                            var evt = eventArgs.get_domEvent(); 
                                            menu.show(evt); 
                 
                                            evt.cancelBubble = true
                                            evt.returnValue = false
 
                                            if (evt.stopPropagation) 
                                            { 
                                               evt.stopPropagation(); 
                                               evt.preventDefault(); 
                                            } 
                                    </script>"; 
 
                    if (!this.Page.ClientScript.IsStartupScriptRegistered(typeof(String), "RowDblClick")) 
                    {                         
                        this.Page.ClientScript.RegisterStartupScript(typeof(String), "RowDblClick", script);                         
                    } 
How to add a RadContextMenu for dataitem? When users click a menu item, RadMenu1_ItemClick will be fired, how to get the column data as I need to set the navigationUrl for menu item?

TIA
BR
Jerry
Radoslav
Telerik team
 answered on 26 Feb 2010
2 answers
128 views
Hi Friends,

Can anyone help me y the images in the toolbar is not displayed in editor sometimes.
this problem is not occuring regularly but it happens some time in both IE & FireFox.

Please review the attached image file....


Thanks
K²
kiran
Top achievements
Rank 1
 answered on 26 Feb 2010
3 answers
310 views
hi

i am using rad editor (version  Q1) . i want to set cursor position to the last character. when the page post back it goes on the top .

Regards

Rahul


sculver
Top achievements
Rank 1
 answered on 25 Feb 2010
5 answers
431 views
Hi -

I would like to use an image as a boolean indicator (e.g. "off.gif" and "on.gif") instead of using something the GridCheckBoxColumn.  Is there a solution that somebody has already done for this?  I couldn't find one searching this forum and I would think its not a unique usage of a boolean flag.

I know one solution can be a template column with an <asp:Image> and we can swap out the image source in the proper code event, but we have a lot of places to use this pattern in multiple grids/pages and would like to figure out some way to encapsulate it.

Thanks!
Rich
Grey
Top achievements
Rank 1
 answered on 25 Feb 2010
1 answer
125 views
Hi, I have a tree with templated nodes.  Each node contains a few text boxes.  When a text box is selected and the spacebar is hit, the root node is immediately selected (no matter where I am working on the tree), and no space is put into the text box that has focus.  This happens once, when the node I'm working with is first selected, and each time I select a subsequent node to work with it.  I have tried capturing the OnClientKeyPressing event to prevent this, but the event is not even firing the first time I hit the spacebar.  When I hit the spacebar after that, it seems to work fine, and the OnClientKeyPressing event fires.  That is until I click on another node and try to type a space in the text box in that node--then the cycle repeats itself. 

Is there a way to totally disable key selection for the entire tree?

EDIT
I've done some further investigation.  When I edit a node, I am swapping out the innerHTML for an HTML block with text fields.  When that happens, I unselect() the node because I don't want the background to change color, but that leaves no selected nodes in the tree.  If I click any other node *before* I type a space into the textbox, everything works fine.  So I'm guessing the tree needs to have at least one selected node if a keydown event occurs within it, otherwise it will automatically select the root node--is this correct?
Nicholas Cloud
Top achievements
Rank 1
 answered on 25 Feb 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?