Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
135 views
Hi all, sorry for the simplicity of this question!

I have a "shopping cart" section on a website, and in that area there are two elements that when moused over should show a tooltip with the contents of the shopping cart. 

Up to this point only one of the elements (a <div id="linkShoppingCart"> ) needed to trigger the tooltips appearance so simply using a <telerik:RadToolTip> with a targetid="linkShoppingCart" worked perfectly - however now I need two separate elements to cause the tooltips appearance.

I have looked through/read through the RadToolTip vs RadToolTipManager (etc) documents/tutorials but most of the information I read is focused on loading dynamic content from user controls (etc).  I have a <div> that I'd like to load and while it does have some dynamic content that is loaded, it is the same regardless of which target I mouse over.

What is the best most efficient (and hopefully simplest!) way of accomplishing what I want?

Thanks for the help, and sorry for the simple question!

Edit: I should point out that if it was possible to have two target IDs in a simple <telerik:RadToolTip> that would be ideal, but from what I understand a radtooltip can only have one target id.

Tsvetie
Telerik team
 answered on 06 Oct 2009
1 answer
115 views
Hi,

I added a custom filter to my radeditor - pasted from your article however having done so all my urls in the content are changed to absolute references. Without the custom filter they remain relative. The custom filter is as defined in the help files - ie. it just capitalizes the text.

I've tried specifically disabling the 

Telerik.Web.UI.

EditorFilters.MakeUrlsAbsolute in the code behind but this hasn't fixed the problem.

 

Rumen
Telerik team
 answered on 06 Oct 2009
3 answers
174 views
I have 2 ComboBox(cboA,cboB) and 1 Textbox in a Page.
When the cboA _SelectedIndexChanged (Server Side, AJax Postback), it will base on some condition to enable or disable cboB.
If cboB enabled and when cboB_OnClientSelectedIndexChanged(Client Side), it will call JS Script to Show or Hide the textbox.

Here is the JS script:
 
        function ShowHideTextbox() { 
            var cboB = $find("<%= cboB.ClientID %>"); 
            var txtbox = $find("<%= textbox1.ClientID %>"); 
 
            var SelectedText = cboB.get_text(); 
 
            if (SelectedText == 'Other') { 
                txtbox.set_visible(true); 
            } 
            else { 
                txtbox.set_visible(false); 
            } 
        } 

Every time I will get the following error when the above script reach on this line var SelectedText = cboB.get_text();
"Microsoft JScript runtime error: 'null' is null or not an object".
Yana
Telerik team
 answered on 06 Oct 2009
1 answer
96 views
Hi,
after a successful data update we need to display a message to user "updated Successfully". On click of OK in the alert,
we need to redirect to a different page.we are trying to achieve the same in rad alert.
 Requirement1:
the alert ok button is not causing a postback
Requirement2:
We dont need the close button on the top right corner of the rad alert.
or is there any workaround.
Thanks,
Bharath
Shinu
Top achievements
Rank 2
 answered on 06 Oct 2009
7 answers
197 views
I am starting to use Expression, and in that suite there is an app, "Expression Web" that edits Web based forms.  I am using Expression version 3.0.  I read a blog that said there was problems with Expression Web 3.0 and 3rd Party controls for ASP.NET.  One of the persons in the blog said the if you open up an ASP.NET template in Expression Web with Telerik ASP.NET controls it will "corrupt" the template. 

Are there any issues? 

I cannot find a way to install and additional controls in Expression Web.  Is it possible? I have the Tererik Silverlight controls installed in Expression Blend and have noticed no problems so far.

Thanks
Ivo
Telerik team
 answered on 06 Oct 2009
3 answers
221 views
Dear all,
i've got a problem.
I have got a Rad Window with a rad  editor now i want that the radeditor is always 100% in width and height. Also when i resize the radwindow.

I hope you can help me.

And sorry for my broken english ;)
Rumen
Telerik team
 answered on 06 Oct 2009
1 answer
43 views
I'm experiencing strange behavior with a grid placed inside of a RadDock.  As an example, if I attempt to sort on one of the grid columns the entire grid disappears and I get a weird JavaScript error in what appears to me to be Telerik-generated code.  If I make an exact copy of the grid OUTSIDE of the RadDock it behaves as expected.

Any ideas?
Sebastian
Telerik team
 answered on 06 Oct 2009
5 answers
139 views
HI  
 
   Here i am facing problem with round corner for appointment.  
I want to customizes appointment with roundcorner with dynamic color.  
i want to apply color when the create an appointment.  
 
I tried with existing styles of radschedular but dynamic color not applying.  
and tried with customize rounded corners. its working for an aapointment but while dragging , its not working.  
 
<AppointmentTemplate>  
<asp:PlaceHolder ID="PlaceHolder_AppointmentCell" runat="server"></asp:PlaceHolder>    
</AppointmentTemplate>  
 
 
protected void RadScheduler1_AppointmentCreated(object sender, AppointmentCreatedEventArgs e)  
{  
if (e.Appointment.Visible)  
{  
if (!string.IsNullOrEmpty(e.Appointment.Attributes["szColor"]))  
{  
_strBuilder = new StringBuilder();  
_strBuilder.Append("<b class='b1f' style='background-color:" + e.Appointment.Attributes["szColor"].ToString() + "'></b><b class='b2f' style='background-color:" + e.Appointment.Attributes["szColor"].ToString() + "'></b>");  
_strBuilder.Append("<b class='b3f' style='background-color:" + e.Appointment.Attributes["szColor"].ToString() + "'></b><b class='b4f' style='background-color:" + e.Appointment.Attributes["szColor"].ToString() + "'></b>");   
_strBuilder.Append("<div class='contentf' style='height:33px;background-color:" + e.Appointment.Attributes["szColor"].ToString() + "'>");  
_strBuilder.Append("<div class='rsWrap' style='z-index: 14;'><div>");   
_strBuilder.Append(e.Appointment.Subject);  
if (Convert.ToBoolean(e.Appointment.Attributes["bConfirmed"]))  
{  
_strBuilder.Append("<div style='height:10px;width:10px;background-color:Green'>&nbsp;</div>");  
}  
else 
{  
_strBuilder.Append("<div style='height:10px;width:10px;background-color:Red'>&nbsp;</div>");  
}  
_strBuilder.Append("<div class='rsAptResize' style='z-index: 80;background:" + e.Appointment.Attributes["szColor"].ToString() + ";'></div>");  
_strBuilder.Append("</div></div></div>");  
 
_strBuilder.Append("<b class='b4f' style='background-color:" + e.Appointment.Attributes["szColor"].ToString() + "'></b><b class='b3f' style='background-color:" + e.Appointment.Attributes["szColor"].ToString() + "'></b>");  
_strBuilder.Append("<b class='b2f' style='background-color:" + e.Appointment.Attributes["szColor"].ToString() + "'></b><b class='b1f' style='background-color:" + e.Appointment.Attributes["szColor"].ToString() + "'></b>");  
}   
PlaceHolder appointmentCell = (PlaceHolder)e.Container.FindControl("PlaceHolder_AppointmentCell");  
appointmentCell.Controls.Add(new LiteralControl(_strBuilder.ToString()));   
}  
}  
 
 
if any one know give me reply.  
Thx 
Peter
Telerik team
 answered on 06 Oct 2009
1 answer
127 views
Hi,

          I wish to have different skins for the grid and the details table it consists of.
I am having 3 levels in the hierarchy.

How can i do this.

Please help.



Thanks,
Avi
Princy
Top achievements
Rank 2
 answered on 06 Oct 2009
3 answers
561 views
Hopefully this is a simple question.


I've got Radgrid (Ajaxed) and with Paging enabled

How do I create a label on the page and then have the label updated with the count of all selected items


I've correctly got this javascript attached to the RadGrids (ClientEvents - onrowcreated, onrowdeselected, onrowselected)
 var rgGrid = $find("<%= RadGridBirthdays.ClientID %>"); 
               var MasterTable = rgGrid.get_masterTableView(); 
               var selectedRows = MasterTable.get_selectedItems(); 
               document.getElementById('<%= this.SelectedCount.ClientID %>').innerHTML = selectedRows.length; 

The problem is when i go to the next page my count resets so the actual count is never correct.


Can someone please explain how to get the count (the correct way ) with paging enabled.


Mira
Telerik team
 answered on 06 Oct 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?