Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
125 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
170 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
71 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
82 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
204 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
118 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
1 answer
208 views
in GridDropdownColumn i am generating dropdown when i click the addnew record button,i need to dispaly --select-- in dropdown by default.

Chennaiah
Shinu
Top achievements
Rank 2
 answered on 17 Mar 2010
2 answers
145 views
Hi,
       I am using radgrid, in which i have the options of Edit,Move. I used ItemTemplate  to bind two link buttons as below

                                     <ItemTemplate> 
                                         <asp:LinkButton ID="lnkEdit" CommandName="Edit" Text="Edit" runat="server"></asp:LinkButton> 
                                         <asp:LinkButton ID="lnkMove" Text="Move" runat="server"></asp:LinkButton> 
                                     </ItemTemplate> 

So what is the requirement is I just want to invoke the Edit PopUp window when i clicked the one of the rows Move button with the informatin of the corresponding row.
Simply when i click the move button I need to show Edit popup with the controls values as the same way when the Edit button clicks.

So please let me know the possibilities of the scenario.

-Thanks
John John
Top achievements
Rank 1
 answered on 17 Mar 2010
2 answers
132 views
Hi,
   I just want to find the dynamically created Check box controls from the EditFormTemplate section. The controls are created dynamically in the EditFormTemplate section as the code given below; So i need to find the same controls under Update/Insert commapnd section to mke me to do the data manipulation work.

 

if ((e.Item is GridEditFormItem) && (e.Item.IsInEditMode))

 

{

 


       TableRow row = new TableRow();
        TableCell cell = new TableCell();
        cC.Width = Unit.Percentage(20);
        cC.HorizontalAlign = HorizontalAlign.Left;
        HtmlInputCheckBox e0 = new HtmlInputCheckBox();
        e0.ID = "cbx-" + x.ToString();
        e0.Value  = dR["Abbreviation"].ToString();
        e0.Checked = true;
        
        cell.Controls.Add(e0);
        row.Controls.Add(cC);
        myTable.Controls.Add(row);
}

The above is the code i used to create htmnl check boxes dynamically in ItemDataBound event of the grid

-Thanks
John John
Top achievements
Rank 1
 answered on 17 Mar 2010
2 answers
258 views
Have no idea what it would take to reproduce this, but basically had a grid that had the rowclick event working until I manipulated a details table on prerender significantly (hide it for example if there is no data). Now when I click on a item on the mastertable, I get a:

Error: Sys.WebForms.PageRequestManagerServerErrorException: Index was outside the bounds of the array.

The eventArgs.get_itemIndexHierarchical is set to the correct row, the mastertableview has the correct number of "get_dataItems()".

Please let me know what I can send to help clarify the problem.

Thanks,
Reuven
Reuven
Top achievements
Rank 1
 answered on 17 Mar 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?