Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
142 views
When I'm using the RadComboBox and enable load on demand with the Show More Results Box and do not set a height on the ComboBox the dropdown expands nearly to the bottom of the browser window after selecting the ShowMoreResultsBox the first time even if the items added for that request shouldn't cause the dropdown to expand that far.  This is causing it to appear as if there are a number of empty rows (just white space).  Is his now the expected behavior as it was not previously.  We were previously using 2008.3 and have moved to 2009.3.

Thanks
Simon
Telerik team
 answered on 17 Nov 2009
4 answers
158 views
Hello,
            I am using the Telerik treeview control. The tree view contains many nodes and vertically scrollable. Here we can add or delete a node by right clikcing on a context menu on the desired node or check a node. However the addition, deletion and checking operation requires postback and after each postback the treeview scrolls to the top and the users are facing usabilty issue because of this. Is there a way I can move the scroll bar to the node on which I clicked on the context menu or the node which I checked.

Thanks
Hemangajit
Veselin Vasilev
Telerik team
 answered on 17 Nov 2009
5 answers
174 views
Is it possible to bind the drop down lists of a set of related combo boxes to a hierarchical data source so that the lists sync up on the client w/o a post back?

Simon
Telerik team
 answered on 17 Nov 2009
3 answers
178 views
This seems to be a bug in the control, since wouldn't this be a valid scenario?

My OnClientNodeChecked event gets fired in response to user click/check/uncheck.    But when I programmatically call the check() method of the client-side node, the same event does not get raised.

Here's a repro page:

<%@ Page Language="C#" AutoEventWireup="true"  %> 
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %> 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml">  
<head runat="server">  
    <style type="text/css">HTML { font-size: 10pt; font-family: Arial; }</style> 
</head> 
<body> 
    <form id="form1" runat="server">  
        <asp:ScriptManager ID="ScriptManager1" runat="server" /> 
        <div> 
          
          
            <telerik:RadTreeView ID="myTree" OnClientNodeChecked="NodeWasChecked" CheckBoxes="true" runat="server">  
                <Nodes> 
                    <telerik:RadTreeNode Text="Node A"></telerik:RadTreeNode> 
                    <telerik:RadTreeNode Text="Node B"></telerik:RadTreeNode> 
                    <telerik:RadTreeNode Text="Node C"></telerik:RadTreeNode> 
                    <telerik:RadTreeNode Text="Node D"></telerik:RadTreeNode> 
                    <telerik:RadTreeNode Text="Node E"></telerik:RadTreeNode> 
                </Nodes> 
            </telerik:RadTreeView> 
            <input type="button" value="run repro" onclick="runRepro()" /> (checks every other node)  
              
              
            <script language="javascript" type="text/javascript">                  
                function runRepro()  
                {  
                    var tree = $find('<%= myTree.ClientID %>');                      
                    var nodes = tree.get_nodes();  
                    for (var i=0; i<nodes.get_count(); i++)  
                        if ((i%2)==0) { nodes.getNode(i).check(); }  
                }  
                function NodeWasChecked(sender, args)  
                {  
                    var text = document.createTextNode("Function was called:  NodeWasChecked() - " + (new Date()).toString());                      
                    if (ResultsDiv.childNodes.length > 0)  
                    {  
                        ResultsDiv.insertBefore(document.createElement("br"), ResultsDiv.childNodes.item(0));                     
                        ResultsDiv.insertBefore(text, ResultsDiv.childNodes.item(0));  
                    }    
                    else  
                    {                          
                        ResultsDiv.appendChild(text);                          
                    }  
                }          
            </script> 
        </div> 
          
          
        <div style="border:1px solid red; margin-top: 50px;">  
            <b>Expected Result:</b>  clicking the button will not check nodes, but not raise the OnClientNodeChecked() event.  
            however, manually clicking the checkboxes will raise this event and   
            <br /><br /> 
            <b>OnClientNodeChecked() Results:</b> 
            <div id="ResultsDiv" style="font-size:8pt;"></div> 
        </div> 
          
          
    </form>      
</body> 
</html> 
 
Veselin Vasilev
Telerik team
 answered on 17 Nov 2009
1 answer
92 views

Objective
I would like to expose html editing and paste to my rich editor fields for my application, but I only want specific tags to be published.

Other Editors
For my previous applications, I have been using the Tiny MCE Editor for my rich text editing.  There is a feature in tinymce that allows me to specify which tags and tag attributes are "acceptable" for publishing.

Example
tinyMCE.init({
...
valid_elements : "a[href|target=_blank],strong/b,div[align],br"
});

When a user submits a page, the editor strips out any markup that is not in the approved tag list.

does Telerik have a similary property.

I can do this is dotnet on postback using regex, but I would prefer to have it built into the control.

Thanks
Rumen
Telerik team
 answered on 17 Nov 2009
3 answers
115 views
Hi All,

I have a hierarchy grid, in master table view i have a column called "Status" (values will be like A,I) and in child table i have column called "Status1" (values will be like O,C)

now i want to change the Status, Status1 text as Active,Inactive and Open,Close respectively.

How can i do this in C#, Please help me regarding this.
pradeep k
Top achievements
Rank 1
 answered on 17 Nov 2009
3 answers
121 views
After been working with the editor for several years i want to list my "wishlist"
Some features have been requested before, i try to link to those topics.

DocumentManager
  • Posibility to add "createdate" to the documentlist
  • use the RadFileExlorer as the "left side"

ImageManager

  • Posibility to add "createdate" to the documentlist
  • Use the RadFileExlorer as the "left side"
  • Image Preview (Display imagelist as either details or thumbspreview)
    Requested before here
  • Create linked thumbnail from Image Manager (insert an hyperlink to the big image with the thumb embedded in the hyperlink if there are both image and thumb, otherwise insert image)
    Requested before here
  • If using Custom Content Provider, Use binaryimage as imagepreview and imageurl.

Anyone that can inform me on coming features wil include this requests? If there are already examples with workaound with the current versions on AJAX or codelibrary?
I think many of this request are quite common...

Regards Pelle

Lini
Telerik team
 answered on 17 Nov 2009
9 answers
190 views
I'm trying to do a bind on a RadNumericTextbox in a Radgrid :
DbValue='<%# Bind("MaxCorePerWeek") %>'. I'm using a LinqDataSource.

I can see the value in the textbox but clicking update causes the error- Object of type 'System.Double' cannot be converted to type 'System.Int16'

I've set a break on the Updating event of the LinqDatasource but when I view the the args the exception has already occurred at this point.

Is there no simple way to tell a RadNumericTextBox what specific type to return?
Rich Coleman
Top achievements
Rank 1
 answered on 17 Nov 2009
3 answers
93 views
Hello,

I'm having an issue with the Load-on-demand functionality of the RadComboBox.  I've set EnableLoadOnDemand="true" and have added OnItemsRequested="cbo1ItemsRequested" event.  The event gets fired if text is typed inside the dropdown box.  However, when I attempt to open the combobox via the arrow the event fails to fire and I'm left with an empty selection set.

Here is a copy of my aspx code:
<telerik:RadComboBox ID="cbo1" AutoPostBack="True" EnableViewState="False" Width="30em"    
   Font-Size="13px"  OnSelectedIndexChanged="cbo1_SelectedIndexChanged" 
   CausesValidation="false" OnPreRender="cbo1_PreRender" runat="server" Font-Bold="True" 
   HighlightTemplatedItems="True" MarkFirstMatch="true" EnableLoadOnDemand="true" OnItemsRequested="cbo1_ItemsRequested"
   <CollapseAnimation Duration="200" Type="OutQuint" /> 
      <ItemTemplate> 
         <table width="100%" cellpadding="0" cellspacing="0"
            <tr> 
              <td> 
                 <asp:Label ID="lblName" Font-Size="larger" Font-Bold="true" runat="server" 
                    Text='<%# DataBinder.Eval(Container.DataItem, "EntityName") %>' /> 
              </td> 
              <td style="text-align: right"
                 <asp:Panel ID="pnlImage" runat="server"
                    <asp:Image ID="imgForward" runat="server" ImageUrl="../images/icons/forward.gif" /> 
                 </asp:Panel> 
              </td> 
           </tr> 
       </table> 
   </ItemTemplate> 
</telerik:RadComboBox> 

Any ideas?

Thanks,
Allen
Veselin Vasilev
Telerik team
 answered on 17 Nov 2009
4 answers
222 views
Hi,

My scenarion is like this, I need to open a radWindow on click of a Imagebutton which is in radGrid dyanamically (server side)

 

for that I written code to open radwindow in ItemCommad event of radGrid

 

my problem here is, when I click first time on a Image in radgrid,the debugger passes through the code, the page refreshes and window is added to controls (here the window doesn't open) and when I click on the same image second time the window opens (because the winow is already added to the controls, here the debugger won't go into the code again )

 

I want to open the window on single mouse click of a image (I want to do this on item command event because I need to pass some value to radwindow on click of a imagebutton), How can I achieve this?

muy code is as follows

protected void rdgSystemGrid_ItemCommand(object source, GridCommandEventArgs e)

 

        {

           

 

                if (e.CommandName == "Comments")

                {

                    Telerik.Web.UI.GridDataItem item = e.Item as Telerik.Web.UI.GridDataItem;

                     

                        ImageButton imgComment = (ImageButton)item["comments"].FindControl("imgComments");

                        ShowWindowPopUp(imgComment                   

                }

           

 

private void ShowWindowPopUp(ImageButton imgComment)//, string systemId)

        {

           

            RadWindow window = new RadWindow();

            window.EnableEmbeddedSkins = false;

            window.Title = "Add Comments";

            window.Skin = "Default";

            window.ShowContentDuringLoad = false;

            window.VisibleStatusbar = false;

            window.ReloadOnShow = true;

            window.Behaviors = WindowBehaviors.Reload | WindowBehaviors.Close | WindowBehaviors.Move;

            window.Modal = true;

            window.Width = Unit.Parse("500px");

            window.Height = Unit.Parse("450px");

            window.OpenerElementID = imgComment.ClientID;

             this.Controls.Add(window);

            window.NavigateUrl = @"~/obt/Dashboard/Comments.aspx";

         

 

        }

 

<telerik:GridTemplateColumn UniqueName="comments" HeaderText="Comments" ItemStyle-Width="200px" >

                    <ItemTemplate>

                        <asp:ImageButton ID="imgComments" CommandName="Comments" runat="server" ImageUrl="/comments.gif "/>

                    </ItemTemplate>

                </telerik:GridTemplateColumn>

 

Thanks,

John Davis
Top achievements
Rank 2
 answered on 17 Nov 2009
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?