Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
432 views
I did a few searches here but didn't find anything that matches exactly what I'm trying to do, so I hope someone can help me.

I'm wanting to create a tooltip that has a loadondemand user control which allows users to perform a quick search. the user control has a multiview with the first view being the search form, and the second view being the results.

the tooltip loads up the control just fine, but when I submit the search form, it clears it out and submits as if it was empty, telling me that I submitted a blank form. it appears that the values I submit are not being persisted during the ajax postback. how do I fix this?

I tried switching to a regular tooltip (in the scenario above I'm using the tooltipmanagers onajaxupdate to load the control) and it SORT of worked, but if I submit a search, close the tooltip, refresh the page, then do another search, I get viewstate errors because the usercontrol is physically rendered on the page instead of being loaded on demand.

I also tried putting the ajaxupdatepanel as a wrapper to the tooltip and the tooltipmanager. I tried the updatepanel inside the user control and I even tried adding the panel at runtime, then adding the control to the panel. that also doesn't work...

here's some of the code I'm using now:

protected void RadToolTipManager1_AjaxUpdate(object sender, Telerik.Web.UI.ToolTipUpdateEventArgs e)  
{  
    Control ctrl = Page.LoadControl("~/search.ascx");  
    Telerik.Web.UI.RadAjaxPanel pnl = new Telerik.Web.UI.RadAjaxPanel();  
    pnl.Width = new Unit(500);  
    pnl.Controls.Add(ctrl);  
    e.UpdatePanel.ContentTemplateContainer.Controls.Add(pnl);  
} 

what is the correct way to load a usercontrol on demand?

I also tried the radwindow but of course that can't load a usercontrol (ascx) and making a whole page seems like an inefficient approach...

hope that was detailed enough, let me know if you need more information. many thanks!
Svetlina Anati
Telerik team
 answered on 11 Jun 2009
13 answers
664 views
Is it possible to decorate the RadDatePicker textbox with the same rounded corners as the textboxes which RadFormDecorator has decorated (skin=Hay) so that they have identical appearance?

Thanks
Stuart Hemming
Top achievements
Rank 2
 answered on 11 Jun 2009
4 answers
201 views
I am trying to make the split bar disable resize when an Item is docked
                            <telerik:RadSlidingZone ID="SlidingZone1" runat="server" Width="22"> 
                                <telerik:RadSlidingPane ID="SlidingPane1" Title="Navigation" runat="server" Width="150" 
                                    OnClientDocked="Docked" OnClientUndocked="UnDocked"> 
                                </telerik:RadSlidingPane> 
                            </telerik:RadSlidingZone> 
                        </telerik:RadPane> 
                        <telerik:RadSplitBar ID="SplitBar" runat="server"   /> 
this is all working normally  just trying to call the set_enableResize with true doesn't seem to effect the splitBar at all
        function Docked(sender, eventArgs) { 
 
            var splitBar = $find("<%=SplitBar.ClientID%>"); 
            alert(splitBar.get_enableResize()); 
            splitBar.set_enableResize(true); 
            alert(splitBar.get_enableResize()); 
 
        } 
        function UnDocked(sender, eventArgs) { 
            var splitBar = $find("<%=SplitBar.ClientID%>"); 
            alert(splitBar.get_enableResize()); 
            splitBar.set_enableResize(false); 
        } 
It will tell me that it is enabled or disable but doesn't seem to let me adjust it from that point forward. If I start with it disabled for resizing it won't enable.
Mink
Top achievements
Rank 1
 answered on 11 Jun 2009
1 answer
103 views

We have an application which is listing subjects (with an underlying link) in a grid as a search result. (Similar as a search result in a SPS document list). What we want to achieve is this:

When a user moves the mouse pointer over a subject link, a tool tip window should appear which offers a preview of the document content to which the link would lead.

So the follwowing questions arise:
1. Can the Telerik ToolTip be applied on such a link in a list or is it possible only on an icon or image?
2. If we would prepare the relevant text in a database table, can we dynamically control the content  which the tool tip shall display? (Depending on a key which is found in the URL?)
3. In case these features above in 1 and 2 are not available out of the box, is it possible to develop such a feature? If so, do you have a recommendation, who could do this?

Thanks for any hint and answer
Peter

Svetlina Anati
Telerik team
 answered on 11 Jun 2009
1 answer
117 views
When I put a RadDatePicker on a RadToolTip, the Calendar renders underneath the tooltip when the popup button is pressed.  Tried setting the zindex of the Calendar to no avail.

Anyone have any experience getting this to work?

Thanks,
Stoney
Svetlina Anati
Telerik team
 answered on 11 Jun 2009
1 answer
66 views
I can't paste or cut in the Design view of an Editor Control when I'm using Firefox anymore, this func worked before but not after upgrading to Q1.

When using the keyboard to press CTRL+V or CTRL+X I get a javascipt alert telling me to use CTRL+V even though I am using CTR+V. I read on other forum posts that this has been an issue when pressing a toolbar button but I am seeing the behavior when using the keyboard directly. In Internet Exporer when using the keyboard to paste I'm getting a warning each time.

Is there a workaround to get pasting to work in Firefox at all (with the editor in design view). Right now I'm unable to do this at all. If I switch over to HTML view I can paste but not in design view. I set clipboard.autocopy to true in my Firefox preferences not really knowing what that does exactly and restarted but it didn't help.

Thanks,

bd
Rumen
Telerik team
 answered on 11 Jun 2009
5 answers
264 views
I am having an issue with the menu control ending up behind a Silverlight control. You can see it here

http://www.thelegendssouth.com/Elections/nominees.aspx

This only happens in FireFox, IE is fine.

Is there any resolution to this? Thanks.


Atanas Korchev
Telerik team
 answered on 11 Jun 2009
1 answer
128 views
Hi,

I am creating textboxes dynamically in a table. I want to bind the radcolorpicker with the textbox at the time of creation programatically in code behind with a pre-color(default color) set. On clicking the textbox the radcolorpicker should open.

Is this possible?

Thank you.
Tsvetie
Telerik team
 answered on 11 Jun 2009
1 answer
91 views
Not sure if this is possible but here is a client request.
We have a grid that uses in-line editing and it works ok.  Within the row however there are 2 comment fields.  The user wants a image button in the field for each comment to appear when the row goes into edit mode instead of the typical textboxes.  When the click the button the rich editor pops down.  When they close the rich editor, the rest of the row is still in edit mode.  Upon save, the value that was entered in the rich textbox is saved to that field.  The HTMLColumn is not exactly what they want because it makes the row's height increase too much with the editor within the edit row

Thanks in advanced
John
Veli
Telerik team
 answered on 11 Jun 2009
2 answers
116 views

I came across an interesting bug that I thought I would share with everyone just in case it is happening to them as well.

When you have saved a file from the editor, if you have a tag, a space and then some text (example below), when saved the 'Â' character appears. This seems to be because a &nbsp; is missing and is rather replaced with the character code 160.


<td> Some text </td> 
 
shows as  
 
 Some text 


When you view the saved file in notepad/ word pad/ visual studio etc. you do not see the character. If you view it in a hex editor, you do.
A problem only arises if you open the saved HTML file, manipulate it and then resave it because then the character code is picked up and acted on (rendered).

Once I managed to track down the problem, the fix was really quite simple, simply:

1.     Encode the text to HTML
2.     Replace the offending character with a nbsp;
3.     Decode from HTML ready for saving or more manipulation.

string contentData = Server.HtmlEncode(this._RadEditor.Content);    
contentDatacontentDatacontentData = contentData.Replace("&#160;", "&amp;nbsp;");    
contentData = Server.HtmlDecode(contentData);   
 


I must stress that this bug only appears after you try and manipulate the document by loading it, manipulating it and resaving it (but it did happen on every machine that we tested it on). If you are viewing your saved documents straight off then this should not be a problem for you.

Tervel
Telerik team
 answered on 11 Jun 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?