Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
160 views
I have code where I open a RadWindow upon click of a button, which loads the content correctly and accurately shows the scrollbars. If I close the window using the RadWindow's "X" in the upper right corner and then click the button again to re-open the window, the content loads, but the scrollbars no longer appear even though the content is long enough to warrant the scrollbars. NOTE: this ONLY happens in Firefox. IE displays the correct behavior, showing the scrollbars as necessary.

I've loaded an example of this here: xxxxxxxxxxxxxxx.  Load this in Firefox and press the button that says "See RadWindow ScrollBar Problem". The first time you press it, the scrollbars appear. Close the window and then press the button again. The scrollbars disappear.

Any help would be greatly appreciated.

Thank you,

Rachael
Marin Bratanov
Telerik team
 answered on 22 Aug 2011
1 answer
79 views
I had some code that was working until the latest release of 2011.2.712.40. From RadGrid's OnMasterTableViewCreated:
 

<ClientEvents OnMasterTableViewCreated="DoStuff" />


Looked like this:

 

function DoStuff(sender, args) {
  var tabStrip = $find("<%= MainTabStrip.ClientID %>");
  var pageViewID = tabStrip.get_multiPage().get_selectedPageView()._id;
  ...

BUT tabStrip.get_multiPage() was null!! If I did NOT call this code, it was NOT null a second later, but if I DID call it, it would be stuck as null. Seems like the JS objects weren't loading as [I] expected. Perhaps the order of events changed somwhere?

This is my fix, using setTimeout:
function DoStuff(sender, args) {
  setTimeout(function() {
    var tabStrip = $find("<%= MainTabStrip.ClientID %>"); 
    var pageViewID = tabStrip.get_multiPage().get_selectedPageView()._id;
  }, 0);
  ...
}
Tsvetina
Telerik team
 answered on 22 Aug 2011
5 answers
353 views
For demonstration-sake, let's say we have two controls, a RadCalendar and a RadScheduler.  In order for them to interact with one-another without a refresh, the AjaxManager binds them together.

Unless I'm mistaken, this means any action on either must take the time to update both.  For example, navigating months (without selecting) on the calendar, which should be a very fast operation, takes a long time because the RadSheduler is being re-rendered as well, even though no changes have been made.

Is there a way to bind only specific events together, similar to how the VS.net AjaxManager works ControlID="" EventName=""?  This would allow the Scheduler to be rendered again, only on applicable events.

Thanks,

Brad
Richard
Top achievements
Rank 1
 answered on 22 Aug 2011
2 answers
221 views
It's really a two part problem.  This is what I'm doing,

I call this on the server to set the background color if the input was not considered valid.
textboxname.Style.Add(HtmlTextWriterStyle.BackgroundColor, "red");

Then in a handler for the ClientEvents-OnKeyPress event I call this to set the background color back.
sender.get_styles().EnabledStyle[0] = sender.get_styles().EnabledStyle[0].replace("background-color:red;", "");
sender.updateCssClass();

The first problem is that the background color doesn't change until the focus is moved off the text box, when I want it to occur as soon as the user types something into it.

The second problem is that the color does change if you click off the box, but then it flashes back to red if you mouseover the box and as long as you hold the cursor there.  Mouseout, it goes back to white, back and forth.
Marbry
Top achievements
Rank 1
 answered on 22 Aug 2011
1 answer
81 views
Hi,

I am using the telerik editor in an mvc project. I can see a lot of tools for formatting eg, Font, indentation, bulleting etc, but is there no tool for spell check included in the editor? What do we need to do to incorporate this feature into the standard telerik editor?

Ritu
Marin Bratanov
Telerik team
 answered on 22 Aug 2011
8 answers
246 views
Hi Guys,

Since the upgrade to Sitefinity 4.1 the permissions does not work anymore in the radmenu, this is confirmed and I'm not sure when it will be fixed. So for the time being I want to create my own menu control.

I am however having problems building the tree with all the pages to bind to the radmenu.
I'm having difficulties getting the permissions of pages. I need to somehow check which roles have permissions to see certain pages, and based on that display the pages in the menu.

Any help would be appreciated.
I know how to get all the pages with this code :

var pages = App.WorkWith().Pages().LocatedIn( Telerik.Sitefinity.Fluent.Pages.PageLocation.Frontend ).Get().ToList()

But not sure how to check the permissions.


Kind Regards,
Gerrit
Svetoslav Petsov
Telerik team
 answered on 22 Aug 2011
2 answers
133 views
Is it possible to have the detail table rows color (both alternative and normal) the same as the color of the parent row?

So, if the back color of parent item is white, all rows of the child table should go white. Similarly, if the back color of the parent row is light gray, all child rows in detail table should have light gray!

Is that something possible?
thanks,
Sameers
Sameers
Top achievements
Rank 1
 answered on 22 Aug 2011
1 answer
141 views
Hi,
In my aspx page , I have  a Rad window.

1.I have a radWindow that opens as a popup window.
2. This popup radWindow has a close button in title bar.
3. Even though  OnClientClose="onClientClose" is set,when the user closes this window using titlebar's close button,the onClientClose is not getting fired.

Please advise how to fix this issue.

Thanks in advance

 

 

 

 

Marin Bratanov
Telerik team
 answered on 22 Aug 2011
5 answers
486 views
Dears,

I have the following js function that handles grid's onRowClick event
function rowClicked(sender, eventArgs)
{
selID=eventArgs.getDataKeyValue("ID");
alert('selected id is : ' + ID);
 
}

However, I need to get the cell/column name where the user clicked, because I want to perform other javascript functions upon user clicking on specific cells in the grid.
I tried the event OnColumnClick of the grid, but it fires only on grid header's click.

Thank you.
Princy
Top achievements
Rank 2
 answered on 22 Aug 2011
0 answers
59 views
Im Implement RadrCombo Box To Enable Search But Random On

RadrCombo _ItemsRequested  e.Text Returns %D8%AD%D8%B3%D8%A7%
So the DataView.RowFelter  throw  Execption 
 the string pattern '%D8%AD%D8%B3%D8%A7%' is invalid.
Plz Any One Can Help Me How to Solve This Problem

Sayed
Top achievements
Rank 1
 asked on 22 Aug 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?