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

I have a form which contains textbox and radio button controls in which some textboxes are mandatory. I have a radio button and textbox where the textbox will be enabled when I click on the radio button. The textbox should be a mandatory field only when the textbox is enabled. When the textbox is disabled/read only, it should not be considered as a mandatory field.

But, in my scenario it is considering the disabled/readonly textbox also as mandatory field. How can change this behaviour??

Thanks,
Mahesh
Shinu
Top achievements
Rank 2
 answered on 05 Aug 2009
2 answers
60 views
Hello,

I got a problem with Drag&Drop of a TreeNode. In a simple web project this false behaviour doesn't appear. But in my bigger project I have the following problem:

I got on an aspx site a simple TreeView control...

    <form runat="server" id="telerik" > 
      
        <telerik:RadScriptManager runat="server" ID="RadScriptManager1" /> 
                 
        <div> 
            <telerik:RadTreeView ID="myTreeView" runat="server" EnableDragAndDrop="True" 
                EnableDragAndDropBetweenNodes="true" OnNodeDrop="myTreeView_NodeDrop">  
            </telerik:RadTreeView> 
        </div>                  
          
        <asp:LinkButton ID="newpagelink" Text="" OnClick="AddTab_Click" class="normal" runat="server" /> 
    </form> 
 

My code behind looks like this...
...      
 
Protected Sub myTreeView_NodeDrop(ByVal sender As ObjectByVal e As Telerik.Web.UI.RadTreeNodeDragDropEventArgs)  
        Dim sourceNode As RadTreeNode = e.SourceDragNode  
        Dim destNode As RadTreeNode = e.DestDragNode  
        Dim dropPosition As RadTreeViewDropPosition = e.DropPosition  
 
        If destNode IsNot Nothing Then 
            If sourceNode.TreeView.SelectedNodes.Count <= 1 Then 
                PerformDragAndDrop(dropPosition, sourceNode, destNode)  
            ElseIf sourceNode.TreeView.SelectedNodes.Count > 1 Then 
                For Each node As RadTreeNode In sourceNode.TreeView.SelectedNodes  
                    PerformDragAndDrop(dropPosition, node, destNode)  
                Next 
            End If 
 
            destNode.Expanded = True 
            sourceNode.TreeView.ClearSelectedNodes()  
        End If 
    End Sub 
      
...  
      

If i'm debugging into this event everytime the RadTreeNodeDragDropEventArgs are empty, that means, the e.SourceDragNode and the e.DestDragNode are nothing!

Does anybody has a solution for me or an idee how this can be?!

Thanks for help!!!

Best regards from Germany,
Steven***
contentXXL
Top achievements
Rank 1
 answered on 05 Aug 2009
3 answers
359 views
How do I handle licensing of RADControls-Ajax on our build server? Since licensing is per-seat, does the build server need a license?
Lidiya
Telerik team
 answered on 05 Aug 2009
5 answers
147 views
I would like to Upload only a certain type of files eg .doc and code is liekthe one below, but its not working.
if(!IsPostBack)
            {
                RadUpload1.AllowedFileExtensions = new string[] {".doc", ".txt"};
               }
but it keeps picking up every file in a folder. does anyone know what im doing wrong. plse help me if possible.
DK
Top achievements
Rank 2
 answered on 05 Aug 2009
3 answers
108 views
I would like to use the tabstrip so that each tab points to a page. I don't want the control to navigate to the page, I want the page I reference to be the content of the tab. Is this possible?

I tried using the MultiPage example, but if you specify different URL's for each tab, the control just redirects you to the referenced page.
Peter
Telerik team
 answered on 05 Aug 2009
3 answers
98 views

Hi,

I am using the custom skin for the RadEditor:
 

<

 

telerik:RadEditor ID="radEditor" runat="server"

 

 

 

Skin="WWRDefault" EnableEmbeddedSkins="false"

 

 

 

ToolbarMode="Default" Height="600px" Width="97%"

 

 

 

Visible="false" CausesValidation="False"

 

 

 

ToolsFile="~/DefaultRadEditorToolsFile.xml"

 

 

 

MaxDocumentSize="2400000" MaxImageSize="20480"

 

 

 

ImagesFilters="*.png,*.gif,*.jpg,*.jpeg"

 

 

 

DocumentsFilters="*.pdf,*.xls" />

 

 


When I select ImageManager I have the following exception:
Telerik.Web.UI.RadTreeView with ID='tree' was unable to find embedded skin with name 'WWRDefault'. Please, make sure that you spelled the skin name correctly, or if you want to use a custom skin, set EnableEmbeddedSkins=false. 

Could you please let me know what I am missing?

Thank you,
Tatiana
Fiko
Telerik team
 answered on 05 Aug 2009
1 answer
67 views
I have read the following two threads: radspell-dictionaries.aspx and thesaurus.aspx.

Can you advise me if Telerik is still planning on implementing the Google service spellchecking as well as the ability to attach directly and use the OpenOffice dictionaries, if so when is this likely to be implemented and can you provide a a general time frame (in 6 - 8 months time or in 12-18 months time)?

I am thinking of creating numerous spell checker dictionaries for my project, but I am thinking it may be prudent to wait until these features are implemented by Telerik.
Tervel
Telerik team
 answered on 05 Aug 2009
1 answer
91 views
Implemented following example at this url http://www.telerik.com/help/aspnet-ajax/general-add-node-in-edit-mode-by-default.html
cannot get to work after triying various combinations. I dont get any errors however the 3rd alert is not fired see code below. Works if i dont have an ajax panel.

Can node.startEdit() be done server side would easier.

 

protected void ContextMenuItemClick(object sender, RadTreeViewContextMenuEventArgs e)
{
    RadTreeNode node = new RadTreeNode("NEW FOLDER", "1");
    ClickedNode.Nodes.Add(node);

    node.Selected = true;
    node.ExpandParentNodes();
    string script = "HighlightNode(\"" + node.Value + "\")";
    RadAjaxManager1.ResponseScripts.Add(script);
}

<telerik:RadScriptManager ID="RadScriptManager" runat="server" />
    <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server">
       <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"/>
       
        <telerik:RadScriptBlock ID="rsb" runat="server">
      
        <script type="text/javascript">
          function HighlightNode(value)
          {
              alert(value);
              var tree = document.getElementById("<%= tvLibraryTree.ClientID %>");
              //  tired $find no luck unless no ajax panel
              alert(tree);
              alert(tree.findNodeByValue(value));
              var node = tree.findNodeByValue(value);
              if (node != null) node.startEdit();
          }
      </script>
   
    ......

Veselin Vasilev
Telerik team
 answered on 05 Aug 2009
1 answer
219 views

 

I am tyring to create a report with autogenerated Radgrid and adding a Calculatedcolumn for row total. If the columns are declared in design mode and I use EnableLinqExpressions false, filter for DateTime and the calculated column works but for autogenerated columns - I get following error for DateTime filter and Calculated Column filter.

For DateTime filter:
Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: Index (zero based) must be greater than or equal to zero and less than the size of the argument list.

For GridCalculated Column the error is:

Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: Expression of type 'System.Nullable`1[System.Int32]' cannot be used for parameter of type 'System.Object' of method 'System.String ToString(System.Object)'


Can you please suggest what can I do to fix that error. I have looked at the filtering demo examples and that also uses enablelinqexpressions = false.

Thanks.
Morgan
Top achievements
Rank 1
 answered on 05 Aug 2009
5 answers
158 views
Hi:

If a have 2 windows, not maximized, I can switch between each other without any problem. I can convert each one in the topmost window.

But if I maximize one of them, after switch one time between the one maximized and the normal size window, the maximized remains as the topmost, even if I activate the normal size window. When I activate the normal size window, the titlebar of the one maximized becomes transparent, but the normal size window never converts into the topmost, I cannot see it on the fron.

Can you share a sample on how I can switch and activate between 2 windows: one maximized and one not-maximized?

Thanks in advance.
Georgi Tunev
Telerik team
 answered on 05 Aug 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?