Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
341 views
Is it possible to disable insert button in PreRender event ?
Princy
Top achievements
Rank 2
 answered on 18 Jul 2008
2 answers
160 views
I have a masked textbox in the edit form of my grid.  The field is displaying locker combinations which should be in the format:
## ## ##
where # can be any digit 0-9.  Here is the code for the texbox:

 <EditItemTemplate> 
  <telerik:RadMaskedTextBox ID="RadMaskedTextBox1" 
      runat="server"    
      Text='<%# Bind("Combo1") %>'  Mask="## ## ##"   
      DisplayMask="## ## ##" Width="50px" 
      DisplayPromptChar="_">  
  </telerik:RadMaskedTextBox> 
</EditItemTemplate> 

The problem is that when I go to edit a row the combination
01 29 03
displays as __ 01 29
and when I click in the masked input box it changes to
01 __ 29

Can anyone help me with what I am doing wrong?

Thanks.
mdonato
Top achievements
Rank 1
 answered on 18 Jul 2008
2 answers
140 views
Hello telerik,

I have a column for displaying descriptions and the text is long. I wanna display ellipse(...) at the end of the text instead of word wrap.

What I did is set "ItemStyle-Wrap="false"" for that column:
<telerik:GridBoundColumn UniqueName="clmRtnNotes" HeaderText="refund notes" ItemStyle-Wrap="false" DataField="refund_notes" Resizable="false">  
                                                    </telerik:GridBoundColumn> 
It works in IE, even when I resize the grid. I m using IE 7 btw.

but in firefox, the long text crossed the boundry of the cell and overlaps the following cells!

Any idea on this issue?

Best Regards,
Elton
Elton
Top achievements
Rank 1
 answered on 17 Jul 2008
3 answers
180 views
Hi,

How can I control the width of the GridDropDownColumn when it is part of a grid who has edit mode set to in-line?

It seems I can control the width of the column when it is in read mode, but when I switch to edit or insert mode, the width expands to some arbitrary amount that I am unable to (yet) define.

Thanks,

Adam
Adam
Top achievements
Rank 1
 answered on 17 Jul 2008
0 answers
164 views
I'm looking for a simple working sample of a RadGrid working inside of a RadComboBox.  Specifically, I'd like to select a row from the grid and have the id as the value reported back in the RadComboBox's SelectedValue property.  The other thing I'm having trouble getting to work is Grid filtering and the proper javascript to prevent the RadComboBox from closing when a filter is selected.  Also the FilterMenu items are showing up behind the grid and I'm getting an error when I try to set the <FilterItemStyle> of the RadGrid.

Here's what I've got so far:
<telerik:RadComboBox runat="server" ID="RadDropDownList" DropDownWidth="400px" AllowCustomText="true" OnClientDropDownClosing="OnClientDropDownClosing"> 
                    <ItemTemplate> 
                        <div id="divGrid"> 
                           <telerik:RadGrid  
                                ID="DropDownGrid" runat="server" 
                                AllowFilteringByColumn="True"  
                                AllowPaging="True" AllowSorting="True"  
                                GridLines="None" AllowMultiRowSelection="false" 
                                Width="780px"> 
                           </telerik:RadGrid> 
                       </div> 
                   </ItemTemplate> 
                   <Items> 
                        <telerik:RadComboBoxItem /> 
                   </Items> 
                </telerik:RadComboBox> 

Kevin
Top achievements
Rank 2
 asked on 17 Jul 2008
5 answers
187 views
Hi!

I have this tree that loads first some folders nodes then some document nodes.
The tree does not have a root node, all this nodes are added directly in the tree like this:

ASPX:
<telerik:RadTreeView  
        ID="DocumentTreeView"  
        Runat="server"  
        LoadingStatusPosition="BeforeNodeText"  
        CssClass="treeContainer"  
        AllowNodeEditing="True"  
        EnableDragAndDrop="True"  
        EnableDragAndDropBetweenNodes="True"  
         
        onnodeexpand="DocumentTreeView_NodeExpand" 
         
        onclientnodedropping="onNodeDropping"  
        onclientnodeediting="onClientEditing" EnableViewState="False" PersistLoadOnDemandNodes="False" 
         
        > 
         
         
         
        <CollapseAnimation Type="OutQuint" Duration="10"></CollapseAnimation> 
 
        <ExpandAnimation Type="OutQuart" Duration="10"></ExpandAnimation> 
    </telerik:RadTreeView> 

Code-behind:
 private void LoadDocsRootNodes() 
    { 
        IEnumerable<Node> folderNodes = DocumentDAO.Create().GetFoldersNodes(); 
 
        LoadTreeRootNodes(DocumentTreeView, folderNodes, "~/Images/icon_small_folder_c.gif", "df:"); 
 
        IEnumerable<Node> documentsNodes = DocumentDAO.Create().GetDocumentsNoFoldersNodes(); 
 
        LoadTreeRootNodes(DocumentTreeView, documentsNodes, "~/Images/icon_small_document.gif", "dc:"); 
 
    } 
 
private void LoadTreeRootNodes(RadTreeView treeView, IEnumerable<Node> nodes, string imagePath, string itemType) 
    { 
        foreach (Node node in nodes) 
        { 
            RadTreeNode tempNode = new RadTreeNode(); 
 
            tempNode.Text = node.Text; 
            tempNode.Value = itemType + node.Id; 
 
            tempNode.ImageUrl = imagePath; 
 
            tempNode.ExpandMode = (node.HasChilds || node.HasIntroDocument) ? TreeNodeExpandMode.ServerSideCallBack : TreeNodeExpandMode.ClientSide; 
 
 
            treeView.Nodes.Add(tempNode); 
        } 
    } 
 

My problem is when I try to move a document node to a folder node.
It throws this error:
"htmlfile: Invalid argument."
and then shows this in the Telerik.Web.UI.Common.Core.js I think
"_ba.get_childListElement().removeChild(this.get_element());"

I did test with a new project and the error did not happen, it moves normally even if the destination node does not have a father node. My real problem is that is hard to track/debug this issue. I simply do a insert

var destNodes = tempDestNode.get_nodes();
destNodes.insert(0,tempSourceNode); // .add() doesn't work either...

Any help?

Thanks.
Ben Turpin
Top achievements
Rank 1
 answered on 17 Jul 2008
2 answers
122 views
Hiya,

I am trying to add a custom dropdown in codebehind, similar to that in this article,

http://www.telerik.com/support/kb/article/b454K-kdc-b454T-btc-b454c-btc.aspx

but what I would like to do is retain the current (default) tools.  When I add a custom dropdown, as in the article above, all the tools disappear except for the newly added tool.

I am not using a <tools> declaration in the aspx file.  Nor am I using RadEditor1.Tools.Clear(),  so I don't know what I could be doing wrong.

I am just simply doing
   RadEditor1.Tools.Add(myNewGroup)
which I thought would add the toolgroup to the existing tools.

This "clearing" even seems to be the case in the example, according to the screenshot for the AJAX editor, but I note the example uses a <tools> section in the aspx.

Oddly enough however, the screenshot for the classic editor seems to insert the tool, rather than replace the entire toolset, which is what I would like.

I'm sure I must be missing something simple somewhere...

Any help would be appreciated.

C
Cesar
Top achievements
Rank 1
 answered on 17 Jul 2008
3 answers
194 views
Anyway to get this working? The example for nesting a treeview in a combobox won't work because the javascript acts on the clientid of the combobox which would have as many different clientids as there are rows in the radgrid. i am trying to create a bulk insert tool using radgrid. Any suggestions for a better way would be aprreciated as well.
Simon
Telerik team
 answered on 17 Jul 2008
3 answers
363 views
I'm attempting to load up a RadTreeView a level at a time, and on-demand.

I've successfully loaded the root nodes, and am able to load the child nodes when the expand button is clicked.

All of the child nodes can potentially have child nodes of their own, but I don't want to load them until the expand button is clicked...

The problem is that none of my child nodes have the expand/collapse button!  Where do I enable this for an individual node?


Anthony
Top achievements
Rank 1
 answered on 17 Jul 2008
4 answers
343 views
Hi All

I am using a radprompt window to prompt/force the user to reenter his password once it is detected that the user session has been inactive for a while.

To make sure that the user is unable to continue without reentering the password, the following two conditions need to be implemented:
1. The title bar of radprompt window should not have a close button.
2. The page refresh (F5) needs to be handled so that the radprompt window does not disappear after a forced refresh by the user.

I have created a promptTemplate class to make the input textbox to handle passwords (display '*' instead of actual letters.)

The radprompt, by default, has a close button on the title bar.

Can anyone shed some light on the above two points?

Rgds
Shuchi

Shuchi Bhalla
Top achievements
Rank 1
 answered on 17 Jul 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?