Telerik Forums
UI for ASP.NET AJAX Forum
10 answers
495 views
We have a slight problem with those...
The old school version of the RadEditor (that we are trying to replace now) used popup windows to render dialogs, while the new one uses floating div's.That is all fine until you place editor into an iframe. Opening dialog in an iframe that is not big enough to fit it produces obvious and pretty ugly results...
Any workaround suggestions would be much appreciated
Shaun Peet
Top achievements
Rank 2
 answered on 06 Apr 2009
2 answers
166 views

How can I modify example given in Sliding PanelBar to start with open position of the Panel Bar instead of closed.

When I change  var expanded = false; from false to true I get an error: “Line 1534. Error: Invalid Argument”

Thanks in advance

Bill
Top achievements
Rank 1
 answered on 06 Apr 2009
1 answer
206 views
Dear all,

I'm executing a method using the ajaxRequest from a page that has my page in a iFrame using:

window.frames['myframeID'].ForceSave("0"); 

the javascript in the page loaded in the iFrame is:

 
            function ForceSave(saleID) { 
                 
                var ajaxManager = $find("<%= ajaxManager.ClientID %>"); 
                ajaxManager.ajaxRequest('ForceSave''ForceSave'); 
 
            } 

This will fire the RaisePostBackEvent(System.Web.UI.IPostBackEventHandler source, string eventArgument)
and here I perform what I need.

What I want now is to perform this synchronously... and wait until my method ends and return back a boolean value.

So, I want, in the page, to wait for the completion of the ForceSave call to continue the rest of the script.

Is this possible? How?
Vlad
Telerik team
 answered on 06 Apr 2009
6 answers
191 views
HI Everyone.
I have been working with the RadPanelBar as the left Navigation Control Replacing the default ASP:Menu.

Everything is working fine but i have a little doubt about the expand behavior of the RadPanelBar.

Is there a way to click the arrow to make the expand animation go on and off   BUT  without redirecting the page.

and unless the user clicks the header of the panelbar then go and redirect to the selected page.

Thank very much i appreciate any help, tip or trick.


Sergio
Sergio Cortez
Top achievements
Rank 2
 answered on 06 Apr 2009
5 answers
241 views

Hello there,

I'm trying to set the width to 100%, it works well but the textbox where is the actual path is not set to 100% ( it has maybe 200px ) . I don't know where is the problem, should I edit the css file for file explorer or something? Or is it possible to turn off that textbox?

Please can you help me with this? 

Thank you very much for any help.

F.S.

Edit:

The explorer is in <telerik:RadPane ... > and when i set width to fixed size then the textbox is correct but the header where is Filename and Size of the file is set to 100%.

I've set my RadSplitter acording to this, maybe there is the problem: http://demos.telerik.com/aspnet/Splitter/Examples/ResizeWithWindow/DefaultCS.aspx

Shaun Peet
Top achievements
Rank 2
 answered on 06 Apr 2009
3 answers
276 views
I am having problems with the RadDateInput control.  I have a web page where the user can enter a date in the radDateInput control or leave it blank.  Null values for my date column are ok in my SQL table.  But how can I Update my SQL table if the RadDateInput is blank?  I have tried several things but I always get Null errors or conversion errors.  So if a valid date is entered then I went to save this date.  If the RadDateInput is blank then I want to update the date SQL column with Null.

Thanks,
Bob
Princy
Top achievements
Rank 2
 answered on 06 Apr 2009
1 answer
361 views
I am trying to implement a radmenu in the header of my grid that contains the sort functions as well as a filter.  I have
seen an example on here and it works great, however, I am trying to change the textbox filter to a radcombobox or
"Filter" in radmenu with distinct elements of that column as submenuitems.  I have successfully added the radcombobox,
however, I can't quite determine how to populate it with distinct items in that column and I am trying not to create a
seperate datasource for each column.  Additionally, one the dropdown is hit and the cursor leaves the radmenu, the radmenu
closes and leaves a piece of the dropdown displaying.  Anybody have any examples.  This is all added dynamically
in the RadGrid_ItemCreated sub.  I wouldn't know where to start on my second idea of using submenuitems.  Seems like
a neat idea though.  Below is a link to help that I used to create the menu.  Thanks for all replys.
 
http://www.telerik.com/community/forums/aspnet-ajax/grid/radgrid-advanced-filter-menu.aspx
Yavor
Telerik team
 answered on 06 Apr 2009
1 answer
113 views
Hello,

We are using RadToolTipManager to load control on demand with RadGrid.
In ItemDataBound event when we are adding TargetControl with value having single quote in it, it gives javascript error and no tooltip is opened.

When I google out I found that we can replace single quote (') with \&#039.

for instance in ItemDatabaound event

this.RTTGroupDetails.TargetControls.Add(nameLink.ClientID, dataValue.ToString().Replace("'",@"\&#039").ToString(), true);

 


By doing so I didn't get javascript error but when i click to get Tooltip I got ajax error

Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500 


Kindly help me out to handle special character like single quote.


Regards,
Chanda.

 

Svetlina Anati
Telerik team
 answered on 06 Apr 2009
3 answers
133 views
I've got the following code (from a project on the site to alphabetize the paging on the grid).

 If Session("AllData") Then 
            If TypeOf e.Item Is GridPagerItem Then 
                Dim pagerItem As GridPagerItem = CType(e.Item, GridPagerItem) 
                pagerItem.PagerContentCell.Controls.Clear() 
 
                Dim i As Integer 
                For i = 65 To 65 + 25 
                    Dim linkButton1 As New LinkButton() 
                    Dim lc As New LiteralControl() 
 
                    lc.Text = " " 
                    linkButton1.Text = "" + ChrW(i) 
 
                    linkButton1.CommandName = "alpha" 
                    linkButton1.CommandArgument = "" + ChrW(i) 
 
                    pagerItem.PagerContentCell.Controls.Add(linkButton1) 
                    pagerItem.PagerContentCell.Controls.Add(lc) 
                Next i 
            End If 
        End If 

I've got a session variable setup, depending on the type of search I either load up the alphabetic pager, or the standard one. The issue is that it always defaults to the standard controls, and as soon as I click a link in the pager it then switches to the alphabetic. And vice versa for the other search option.

So everything works, but I can't figure out how to force the grid pager to paint correctly without clicking on the pager itself.

Thanks.
Sebastian
Telerik team
 answered on 06 Apr 2009
3 answers
269 views
Hello everyone!
I need a little help, this might be something easy but i haven't had the solution.

Right now i'm binding a sitemap provider to the RadMenu .
At runtime i want to stablish the ImageUrl property to each MenuItem. so im using the  OnItemDatabound event like this:

  protected void RadPanel_OnItemDatabound(object sender, RadPanelBarEventArgs e)
    {
         if (e.Item.Items.Count >0)
        {
            e.Item.ImageUrl = "arrow-right.gif";
            e.Item.ExpandedImageUrl = "arrow-down.gif";
            e.Item.ImagePosition = RadPanelItemImagePosition.Right;
        }
    }
 but i want only to use the image url only to Items that has children.
I can't see how to make this validation.   I hoped to be a Property called HasChildren() or something :(
I tried to use the  Item.Items.Count  but it doesnt work.
I appreciate any help
Thank you


Veselin Vasilev
Telerik team
 answered on 06 Apr 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
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
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?