Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
87 views
hi I use this event in Radgrid but can not find anyone knows how I can use?
Pavlina
Telerik team
 answered on 14 Jan 2010
6 answers
136 views
Hi,
I am using a RadTreeView component of the 2008 Q2 Controls for ASP.NET AJAX,
I need to create a node of a tree on clientside and set a normal tooltip, I fail dismal

here is my first attempt
var node = new Telerik.Web.UI.RadTreeNode(); 
node.set_text("New Node"); 
node.set_value("newValue"); 
 
var myTree = $find('<%= myTreeView.ClientID%>'); 
myTree.trackChanges(); 
 
node.get_textElement().title = "myToolTip"; // This line gives an error saying get_textElement is null 
 
myTree.get_nodes.add(node) 
myTree.commitChanges() 
using node.get_element().id = "myID", gives the null error again, what should I do because I need to set a simple tooltip on node that was created on the client side?
Veselin Vasilev
Telerik team
 answered on 14 Jan 2010
3 answers
153 views
Hi,
I am adding and deleting tacs via client code as documented in various examples.  I have two issues that I could use some help with.
1. I use the CreateCloseImage function to add an image to the tab.  Is there a way to define an image for when the tab is active or inactive (i.e. on mouseover )? 
2. When I delete a tab and its associated pageview and then add a new tab, I get the pageview that was just removed. 
 for (j = 0; i < 5 && j < selectedItems.length; i++, j++) {  
              //create an new page view  
              pageView = new Telerik.Web.UI.RadPageView();  
              pageView.set_id(("DocView" + i));  
 
              multiPage.trackChanges();  
              multiPage.get_pageViews().add(pageView);  
                             
              multiPage.commitChanges();  
 
              tabStripItem = new Telerik.Web.UI.RadTab();  
              tabStripItem.set_text("new tab");  
 
              tabStripItem.set_pageViewID("DocView" + i);  
              tabStripItem.set_selected();  
                
              tabStrip.trackChanges();  
              tabStrip.get_tabs().add(tabStripItem);  
              AttachCloseImage(tabStripItem, "Images/delete.gif");  
                              
              tabStrip.commitChanges();  
                
              tabStrip.set_selectedIndex(i);  
          }  
      }  
 
 function CreateCloseImage(closeImageUrl) {  
        debugger  
            var closeImage = document.createElement("img");  
            closeImage.src = closeImageUrl;  
            closeImage.style.marginTop = "2px";  
            closeImage.style.position = "relative";  
            closeImage.style.border = "none";  
            closeImage.style.right = "-10px";  
            closeImage.alt = "Close this tab";  
            return closeImage;     
 
        }  
 
        function AttachCloseImage(tab, closeImageUrl) {  
            var closeImage = CreateCloseImage(closeImageUrl);  
            closeImage.AssociatedTab = tab;  
            closeImage.onclick = function(e) {  
                if (!e) e = event;  
                if (!e.target) e = e.srcElement;  
 
                deleteTab(tab);  
 
                e.cancelBubble = true;  
                if (e.stopPropagation) {  
                    e.stopPropagation();  
                }  
 
                return false;  
            }  
            tab.get_innerWrapElement().appendChild(closeImage);  
        }  
          
        function deleteTab(tab) {  
            var tabStrip = $find("<%= RadTabStrip1.ClientID %>");             
            var pageView = tab.get_pageView();  
            var tabToSelect = tab.get_nextTab();  
            var multiPage = $find("<%= RadMultiPage1.ClientID %>");  
              
            if (!tabToSelect)  
                tabToSelect = tab.get_previousTab();  
            tabStrip.trackChanges();  
              
            multiPage.trackChanges();   
 
            tabStrip.get_tabs().remove(tab);  
            multiPage.get_pageViews().remove(pageView);             
 
            if (tabToSelect)  
                tabToSelect.set_selected(true);  
 
            multiPage.commitChanges();   
            tabStrip.commitChanges();   
        }  
         
So what is happening is if I remove tab2/pageView2 and then add a new tab2/pageView2, the contents of the first pageView is shown and I don't know where the new pageView is.

Thanks for your assistance.
cyfirst
Top achievements
Rank 1
 answered on 14 Jan 2010
1 answer
94 views
Hi,
I'm getting an error message randomly... either in IE6 or IE7.
The message is: "You don't have permission to access this page or your cookie has expired!
Please, refresh the page!"


The version we are using is 1.2.1.
I have attached a screen shot of the error message.

The weird thing is that this error is happening randomly in from several machines, but it's not easy to reproduce. For example I couldn't reproduce my self but other people yes.

Does anybody knows at least in what circumstances this message is displayed?

Thanks for your help!
Rumen
Telerik team
 answered on 14 Jan 2010
3 answers
109 views
Hi,

We are using Radeditor 5.0 in our SharePoint site.

We have created a webpart that renders editable fields based upon a list.
One of the fields in this list is of the "Publishing HTML" type.
When this field is rendered, the radeditor is shown as expected.
However, the default SharePoint editor is also still visible abov the radeditor.

Does anybody have any suggestions?

Regards,
Sebastian
Stanimir
Telerik team
 answered on 14 Jan 2010
1 answer
257 views
Hi

Is there a maximum height for a RadScheduler component?
I have a project where I have a RadScheduler component in a resizable RadPane. I have set the height of the RadScheduler to 100% and OverflowBehaivior to Scroll.
Everything is working perfectly. I can resize the pane and the scheduler adjusts as it should. If it doesnt fit I get a scrollbar as I should. But if I make the RadPane very high the RadScheduler just adjust to a specific height then it doesnt anymore.
So is there a maximum height programmed for the RadScheduler component and if so, how can I overcome it?

/Mathias
Kamen Bundev
Telerik team
 answered on 14 Jan 2010
4 answers
223 views
Hi Guys,

I have Visual Studio 2010 beta 2 installed and installed the trial Telerik Rad Controls for ASP.NET.

When I create a new Telerik ASP.NET RadControl Website application, it goes through its process of setting up the project alerts me then with the Telerik project settings, I fill them in and click save. I then get the following error alert...

Compiling transformation: Invalid search path 'C:\Program Files\Microsoft Visual Studio\VC98\mfc\lib' specified in 'LB environment variable' --'The system cannot find the path specified'
Thats correct because the folder "Microsoft Visual Studio" does not exist on my computer, i have "Microsoft Visual Studio 8", "Microsoft Visual Studio 9.0", "Microsoft Visual Studio 10.0" and none of these have a sub folder vC98

When I click ok, I then get...

Exception of type 'Telerik.VSX.T4Transform.TemplateException' was thrown.

It then basically hangs VS.

Appreciate the help.


Tony Casey
Top achievements
Rank 1
 answered on 14 Jan 2010
3 answers
347 views

We have a Telerik Tabs in which we have 1 RadGrid in each of them. On click of each grids rows we open a RadWindow as shown below.

 

<telerik:RadWindowManager ID="test RadWindowManager " DestroyOnClose="true" ReloadOnShow="true" runat="server" VisibleStatusbar="false" 
                Behaviors="Close,Move, Resize" ShowContentDuringLoad="true" Modal="True" Width="1004px" 
                Height="550px" Top="5px" Left="0px">  
                <Windows> 
                    <telerik:RadWindow ID="RadWindow1" DestroyOnClose="true" ReloadOnShow="true" runat="server" VisibleStatusbar="false" Behaviors="Close,Move, Resize" 
                        ShowContentDuringLoad="true" Width="1004px" Height="550px" Top="5px" Left="0px">  
                    </telerik:RadWindow> 
                </Windows> 
            </telerik:RadWindowManager> 
 

 

Now when the user clicks a RadGrid row in side tab1 opens up properly and when user clicks other RadGrid row in tab2 say on which we need to open a RadWindow opens up but with all the same properties of RadWindow placed in tab 1.

 

We need separate properties like say Width and Height of the RadWindow openned from different tabs. Basically same properties are being set to the RadWindows in other tabs too which we don’t want. We want to give separate Width and Height for every RadWindow placed in the same page(AJAXified).

 

Request you to provide the necessary steps to do to resolve this issue.

 

Your speedy response will be deeply appriated.

 

Regards,

Kishore Amireddy

Svetlina Anati
Telerik team
 answered on 14 Jan 2010
1 answer
59 views
Hi,

I am able to get the Cut & Undo events using onClientCommandExecuted. But i want the value that is been cut or undo from the editor (args.value). Value is coming undefined. Can any one please help me?

Regards
Chinnayya
Rumen
Telerik team
 answered on 14 Jan 2010
8 answers
177 views
Hi,

I have an instance of a RAD editor where we are opening a custom dialog.  Is there a way to set the x and y position on the screen where the window is located?

            editor.showExternalDialog( 
            'FlyerSectionEditor.aspx', 
            args, 
            925, 
            675, 
            sectionEditorCallback, 
            null, 
            'Add Item Section', 
            true, 
            Telerik.Web.UI.WindowBehaviors.Default, 
            true, 
            true); 
 


Thanks,
Andy
Dobromir
Telerik team
 answered on 14 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?