Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
100 views
Hi, I have been trying to implement the following:

I have a treeview on my page which has a contextmenu bound to it. 
If I clicks on the contextmenu item (say--edit) I would like the window pop up with the nodeId and some other data . I have seen the example and the demos but they are all done on the client side. My problem is  I am trying to implement it from the server side.

The following is the code so far. Any assistance in the right direction would be great.

<telerik:RadTreeView ID="tvwUserWorkout" runat="server"   
        Skin="Telerik" OnNodeCreated="nodeCreated" 
                            OnContextMenuItemClick="RadTreeView1_ContextMenuItemClick">  
         <ContextMenus> 
                                <telerik:RadTreeViewContextMenu ID="MyContextMenu" runat="server" Skin="Web20">  
                                    <CollapseAnimation Duration="200" Type="OutQuint" /> 
                                    <Items> 
                                        <telerik:RadMenuItem runat="server" Text="Completed" ImageUrl="~/Resources/Images/ui/cd_delete.png">  
                                        </telerik:RadMenuItem> 
                                        <telerik:RadMenuItem runat="server" Text="Edit" ImageUrl="~/Resources/Images/ui/cd_delete.png">  
                                        </telerik:RadMenuItem> 
                                        
                                       
                                        
                                       
                                    </Items> 
                                </telerik:RadTreeViewContextMenu> 
                            </ContextMenus> 
    </telerik:RadTreeView> 

protected void RadTreeView1_ContextMenuItemClick(object sender, Telerik.Web.UI.RadTreeViewContextMenuEventArgs e)  
    {  
 
        if (tvwUserWorkout.SelectedNodes.Count >= 1)  
        {  
           if (e.MenuItem.Text == "Edit")  
            {  
                //fire up the dialog window  
                RadWindow win = new RadWindow();  
                  
            }  
        }  
    } 
Svetlina Anati
Telerik team
 answered on 25 Sep 2008
1 answer
91 views
I have the new radrotator on a page that I am trying to use. I have the rotator in div tags so has certain formatting. The problem I am having is I cant get the background of the rotator to be transparent. I have tried to change the backcolor to transparent and that did not work. What do I need to do to get it so there is no background. The text and stuff in the control follows the div tags I have them in, but the background stays white no matter what.

Here is the code I have. Thanks in advance

<

div class="rotator_mainimage" style="height: 344px; margin-top: 14px">

<div style="width: 90%">

<telerik:RadRotator ID="NewsRotator" runat="server" DataSourceID="xmlDataSource1"

RotatorType="Buttons" ScrollDirection="Up, Down" Height="351px"

Width="403px" BorderStyle="None" style="margin-top: 0px"

FrameDuration="4000">

<ItemTemplate>

<div class="rotator_eventtitle" style="text-align: left">

<%

#XPath("EventTitle")%>

</div>

<div class="rotator_eventdetails" style="text-align: left">

<%

#XPath("EventDetails")%>

</div>

<div class="rotator_eventdetails_url" style="text-align: left">

<a href='<%# Xpath("EventDetailsURL") %>' target="_blank">

More

</a>

</div>

</ItemTemplate>

</telerik:RadRotator>

</div>

</div>

<asp:XmlDataSource ID="xmlDataSource1" runat="Server" DataFile="~/App_Data/NewsRotator.xml"></asp:XmlDataSource>

</

div>

Cade Cote
Top achievements
Rank 1
 answered on 25 Sep 2008
7 answers
281 views
I have a linkbutton in my tab template but when I click on it no postback event is fired.  Is there anything special I need to do to enable this?
Geert
Top achievements
Rank 1
 answered on 25 Sep 2008
4 answers
206 views
In the demo of RadGrid for ASP.NET AJAX, there is Insert/Update/Delete - automatic operations, so user can do insert/update/delete without writing any code behind. The data source used there is SessionDataSource. In the description, it says this can also be used for AccessDataSource, SqlDataSource or ObjectDataSource.
But I am going to use a generic list like List<MyClass> in memory as my data source. How can I still implement the automatic Insert/Update/Delete functions?
Thanks a lot.
qunwei
Top achievements
Rank 1
 answered on 25 Sep 2008
2 answers
72 views
We were having some styling issues with the EditMode area at the bottom of the editor (for some reason it was being overlayed onto elements below it on the page in IE) so I create two custom toolbar items (HTML View and Design View) that switched the mode of the editor by clicking on them. Of course, once you switched into HTML View, the toolbar becomes disabled and there was no way to switch back. Any suggestions for an alternate way to switch between views or to enable some toolbar items to stay enabled when you are not in design mode?

Thanks
Rumen
Telerik team
 answered on 25 Sep 2008
1 answer
271 views
When I set the WeekendDayStyle-BackColor the calender sets the correct background to all but 1 day.  It seems that the last Saturday in the previous month does not get the background color applied.

<telerik:RadDatePicker ID="BirthDatePicker" runat="server"   
    AllowEmpty="true"   
    DBSelectedDate='<%# Bind("BirthDate") %>'   
    MinDate="1/1/1920" 
    Skin="Office2007" 
     Width="100px">  
    <Calendar UseRowHeadersAsSelectors="True" UseColumnHeadersAsSelectors="True"></Calendar> 
    <DateInput></DateInput>  
    <DatePopupButton ></DatePopupButton>  
    <Calendar WeekendDayStyle-BackColor="#ccff99"   
        ShowRowHeaders="false"></Calendar> 
</telerik:RadDatePicker> 
-DJ-
Top achievements
Rank 1
 answered on 25 Sep 2008
2 answers
117 views
Hi,
I have a custom tooltip for each appt. This is working great...until i noticed something curious !
If the calendar view i start with (dayview in my case) has 3 appts visible then the custom tooltip only fires for these 3 appts. ie; if i switch to monthview which has 20 appts, the 3 appts mentioned above fire the custom tooltip, but the other 17 dont !?
Also, if i load with the dayview, the appts within this day fire the custom tooltip.If i move to another day, the appointments on this new day do not fire the custom tooltip !!

I clear the radtooltipmanager.targetcontrols on the Page_PreLoad.
I add to the radtooltipmanager.targetcontrols on the Calendar_AppointmentCreated event. (see below)

Any ideas please?
Thanks, Mark.

RadToolTipManager1.TargetControls.Add(e.Appointment.ClientID, e.Appointment.ID,

True)

Mark
Top achievements
Rank 1
 answered on 25 Sep 2008
1 answer
161 views
I am wanting to use Snippets with the Telerik.SharePoint.FieldEditor.RadHtmlField control in my page layouts but there is no property/method (i.e. Snippets.Add()) that allow me to add the snippets to each control.  Is the "snippets" function available for this control?  And if so, how are the snippets added?  If not, is there a work around?  I am using version 5.2.2.0.
George
Telerik team
 answered on 25 Sep 2008
1 answer
174 views
Anyone know ho to integrate tooltip in the calendar? I want a RadToolTip pop up on mouse over on a day with an event.

I have the calenday being filled with events from my database and would like a quick preview of the event in the form of a RadTooltip.

I tried the following and it does not work.

Dim monthView As Telerik.Web.UI.Calendar.View.MonthView = DirectCast(RadCalendar1.CalendarView, Telerik.Web.UI.Calendar.View.MonthView)

If e.Day.[Date] >= monthView.MonthStartDate AndAlso e.Day.[Date] <= monthView.MonthEndDate Then

For i As Integer = 0 To table.Rows.Count - 1

Try

Dim eventDate As DateTime = table.Rows(i)("EventDate").ToString()

If e.Day.[Date] = eventDate.Date Then

e.Cell.Text += table.Rows(i)(

"EventName").ToString()

RadToolTipManager1.TargetControls.Add(Button1.ClientID, table.Rows(i)(

"EventName").ToString(), True)

RadToolTipManager1.TargetControls.Add(e.Cell.ClientID, table.Rows(i)(

"EventName").ToString(), True)

End If

Catch ex As Exception

End Try

Next

End If



On mouse over all I get is the date popup and the tooltipmanager never fires off OnAjaxUpdate.

<

telerik:RadToolTipManager ID="RadToolTipManager1" runat="server" Position="BottomRight"Animation="Fade" OnAjaxUpdate="OnAjaxUpdate" Skin="Default" Width="180px" Height="150px"Style="font-size: 18px; text-align: center; font-family: Arial;"></telerik:RadToolTipManager>

Michele
Top achievements
Rank 2
 answered on 25 Sep 2008
1 answer
83 views
Hi, I'm trying to use the RadEditor (latest version) on a page.

I'm trying to use the "single-file, drag&drop deployment" as described in the help file, but I can not get it to work without copying the RadSpell dictionary files into the App_Data folder.

Is is possible to use the RadEditor without adding any other files than Telerik.Web.UI.dll to my web app?

Thanks a lot.

Martin
Rumen
Telerik team
 answered on 25 Sep 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?