Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
158 views
I want to add a time column in DialogOpener window, how can i do? current column only contain name column and size column. But it does't enough in some scene.

Best Regards
Rumen
Telerik team
 answered on 17 Mar 2010
2 answers
75 views
Hello,

I encountered a regression with the RadScheduler control when updating the dll's from Q3 2009 to Q1 2010.
I am using Prototype too (and cannot remove it).

So the problem occurs only with Q1 2010 and IE8.
I tested it with IE7, FireFox 3.6 & Chrome 5.0 and it works normally.

I created a very simple test page so you can reproduce this bug.

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="TelerikRegression.aspx.cs" Inherits="TelerikRegression" %> 
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %> 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 
<html xmlns="http://www.w3.org/1999/xhtml">  
<head runat="server">  
    <title></title>  
    <script type="text/javascript" src="prototype.js"></script> 
</head> 
<body> 
    <form id="form1" runat="server">  
      
        <asp:ScriptManager ID="ScriptManager" runat="server"></asp:ScriptManager> 
          
        <telerik:RadScheduler runat="server" ID="RadScheduler" ShowFullTime="True" OverflowBehavior="Expand" 
            DataKeyField="ID" DataSubjectField="Subject" DataStartField="Start" DataEndField="End" >                      
        </telerik:RadScheduler> 
 
    </form> 
</body> 
</html> 

Thanks
Kamen Bundev
Telerik team
 answered on 17 Mar 2010
1 answer
345 views
I have a couple of examples of how to change the cursor for certain actions but, I can't seem to get it to work.

Here is what I am trying to do:
I am using a web service to populate my treenodes on demand. It work wonderfully.
To allow the user to copy one node (and its children) to another node, I have created a context menu for the nodes. When the user selects the "cut" option, I am disabling the node they just chose to cut, and I want to change the cursor to a "cut" cursor (I have an image for that cursor").

I tried change the document.body.style.cursor attribute in my OnClientContextMenuItemClicking event. But that would change the cursor for everywhere EXCEPT over the treeview. So, I figured the cursor is being changed/set at the node level.

So, I have tried this code for the OnClientMouseOver event of the nodes:

        function OnClientMouseOver(sender, args) { 
            var pasteType = document.getElementById('<%= hdnPasteOperationType.ClientID %>'); 
            switch(pasteType.value) 
            { 
                case "cut": 
                    if (args.get_node()) { 
                        sender.trackChanges(); 
                        args.get_node().set_cssClass("copyCursor"); 
                        sender.commitChanges(); 
                    } 
                    break; 
                case "copy", "copyAll": 
                 
                    break; 
            } 
        } 
The code runs without any errors but, nothing happens. I originally did not have the trackChanges() and commitChanges() bit in there but, I thought it might help. It does not.

Can you advise me on the best way to handle what I am trying to accomplish.

When user selects "Cut", "Copy", or "Copy All" from the context menu, I want to change the cursor to an appropriate image, until they paste the nodes they just acted on to a new location.

Thanks for any advice you can give.






Veronica
Telerik team
 answered on 17 Mar 2010
1 answer
165 views
Hi All,

I gave a RadGrid with AddNewRecord option and edit option.

How can i cancel the editmode when i click on AddNewRecord and vice versa.

My senario is, if i click on edit grid will show edit mode, now with out canceling the edit mode, i will click on addnewrecord, then i want to cancel the edit mode and show insert mode.

How can i achieve this. Please help me regarding this.
Shinu
Top achievements
Rank 2
 answered on 17 Mar 2010
1 answer
132 views
i am using tree view control and a treeview in combo. both are populated with same source containing same data. i want to add a node in both of them by clicking on button. All is going well and code returns no error but newly added node is shown in one tree not both of them depending on my code order. i.e if i try to ad node in treeview in the last then treeview show it but node is not shown in treeview in combo. if i place my code to add treeview in combo in the last then it is shown in treeview in combo but not in simple treeview control. i can not find out the roblem.
Here is my code to add node

//---Add Node in tree view 
                    RadTreeNode node = new RadTreeNode(); 
                    RadTreeNode pNode; 
                    node.Text = txtGroupAccTitle.Text; 
                    node.Value = txtGroupAccNo.Text; 
                    ////---Add in TreeView in combo 
                    RadTreeView tvwCmbAcc = (RadTreeView)cmbParentAcc.Items[0].FindControl("tvwCmbAcc"); 
                    //----Note:Code returns no error but node is not shown in Combo if this code is placed after next block it shows node in combo but not in left side tree. find its reason 
                    pNode = tvwCmbAcc.FindNodeByValue(cmbParentAcc.SelectedValue.ToString()); 
                    if (pNode != null) 
                    { 
                        //pNode.Selected = true; 
                        pNode.Nodes.Add(node); 
                        //pNode.Expanded = true; 
                    } 
                    else 
                    { 
                        tvwCmbAcc.Nodes.Add(node); 
                    } 
                    pNode = null; 
                     
                    //------------------------------------------ 
                    pNode = tvwGrpAccounts.FindNodeByValue(cmbParentAcc.SelectedValue.ToString()); 
                    if (pNode != null) 
                    { 
                        pNode.Selected = true; 
                        pNode.Nodes.Add(node); 
                        pNode.Expanded = true; 
                    } 
                    else 
                    { 
                        tvwGrpAccounts.Nodes.Add(node); 
                    } 


Veselin Vasilev
Telerik team
 answered on 17 Mar 2010
4 answers
181 views
Hi,

I am using Telerik RadCombo Box. My ComboBox is a bound Combo box. Depending on some logic I am calculating one result. Now i wanted to set that result as the selected Item of that RadCombo Box.

Anyone, any idea....pls let me know.

Thanks in Advance

Abhinaw Kaushik
Veselin Vasilev
Telerik team
 answered on 17 Mar 2010
1 answer
73 views
I have an idea for a project that I am working on and starting to research the possibilities.  My employeer gets tickets for a variety of events and the employees can make requests for the tickets.  They currently have multiple classic asp sites that manage the approval of the requests for these tickets.  They would like to upgrade these sites to one site that is easy to use and manage.

I was thinking about creating a page that has two calendars on it.  The calendar on the left would be the Events Calendar.  The calendar on the right would be the employees Outlook Calendar.  They would see both calendars side by side.  They could drag an event from the events calendar to their calendar.  The process of dragging or clicking on the event would then update their Outlook Calendar with a request for these tickets.  Two weeks before the event an admin would approve the event for some employees and it would auto deny the requests from the others.

Does anyone have any suggestions or samples?  I would like to start building a protype next week.  It would be cool to make this a Silverlight App using the Telerik Calendar Controls.

Thanks,

Randy
Yavor
Telerik team
 answered on 17 Mar 2010
2 answers
87 views
Hi,

I have an app which uses the RadSkinManager throughout, and a weird issue where after carrying out operations in a RadWindow and closing it the skin is reverting to Default.

The app has a main page with a RadMenu across the top which opens all links in a RadWindow.

A RadGrid is shown in the opened RadWindow and to edit a record this in turn opens another RadWindow.  If certain delete operations are carried out on the opened window, when the window is closed the skin on the RadGrid and page reverts to default.  On closing this window the main calling window has also reverted to Default.

This can be fixed by refreshing the page, when the code to assign the skin is triggered.

Unfortunately the app is too large to provide as an example, and I'm not sure I could strip it down just to the action to reproduce, but I could provide a url and instructions on how to reproduce the issue if you need to look at it.

David Penny


David Penny
Top achievements
Rank 2
 answered on 17 Mar 2010
7 answers
209 views
Hi,

I'm using the recurrence code outside of the scheduler.  It's great code, incerdibly fast at what it does (in the past I wrote my own code for calculating dates and it was a nightmare).  What seems to be missing is some of the code from the Winforms implementation.  How do I make and translate string representation of the recurrence rule using the Web dlls.  In Winforms I can use the following to convert to and from a stored string representation :

Telerik.WinControls.UI.Scheduler.ICalendar.CalHelper.RecurrenceRuleToString

 

Telerik.WinControls.UI.Scheduler.ICalendar.CalHelper.TryParseRecurrenceRule

Also do you have any documentation that describes the structure of the resultant string?  This kind of thing REQ=DAILY;INTERVAL=2.

Best Regards,

Jon

Jon
Top achievements
Rank 1
 answered on 17 Mar 2010
1 answer
122 views
Hello,
I'm looking for a way to localize (in french) a RadDateTimePicker.
I found the quick method : change control's properties in ASPX code.
<telerik:RadDateTimePicker ID="RadDateTimePicker1" runat="server" Culture="French (France)" DatePopupButton-ToolTip="Ouvrir le calendrier" TimePopupButton-ToolTip="Ouvrir la liste des heures"></telerik:RadDateTimePicker> 
And it's like the above code-behind method...

But I think it's not very reusable :( I don't want to copy-paste the same strings on all my RadDateTimePicker controls!
Is it possible to localize several controls accross a web application?
Something in App_GlobalResources like the RadEditor maybe?
Thanks.
Yavor
Telerik team
 answered on 17 Mar 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?