Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
100 views
Hi,

We have a page with radtabstrip, and we're dynamically loading user controls when clicking on tabs.

In order to get the usercontrol state persists with viewstate, we reload them in in the page's onload event.

When we click on another tab than the selected one (let say tab index 0 => 2), we don't want to reload the tab 0's user control, but it's not possible as the TabClick event occurs after the Page's OnLoad one...

Is anyone have a solution ?

Best regards,
Bozhidar
Telerik team
 answered on 29 Nov 2011
1 answer
120 views
I have the following in my web.config to stop me having to add a register directive to every page on my site:

<pages>
<controls>
<add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI" />
</controls>
</pages>

When I add a Telerik control to a page, the designer adds the following to the control on the ASPX page
xmlns:telerik="telerik.web.ui".   If I remove it, it still builds, however, if I do anything with the designer it comes back.

This means that I am getting warnings about an ambiguous reference, where it is finding the telerik prefix in both the web.config and the control.

Is there any way to stop this happening?

Thanks

Richard
Plamen
Telerik team
 answered on 29 Nov 2011
8 answers
132 views
Hi,

I was working with RadUpload inside the grid as shown in
http://demos.telerik.com/aspnet-ajax/controls/examples/integration/raduploadinajaxifiedgrid/defaultcs.aspx?product=upload

I have 2 other dropdown controls in my form template. The dropdowns are cascading.
I need to first select something in the dropdown and then select the file to be uploaded.
For this I disable the Radupload and second dropdown on page load and enable them when something has been selected in the first dropdown.  The selection in the second dropdown does not affect the Radupload.
However I am having issue with the custom validator attached to the RadUpload. Once I select from my first dropdown i immediately get an error for selecting a file. I tried to remove the custom validator but that gives me an 'undefined' error.
If I use the function as it is my dropdown and upload control does not get enabled.

Please help.
Peter Filipov
Telerik team
 answered on 29 Nov 2011
1 answer
88 views

Our requirement is to have a grid with columns with predefined sized, have a static header, column resize enabled, row resize disabled. I tried setting the properties to achieve this requirement, to some extent i was successful. One column has long text with spaces when the user resizes the column the content is taken to next line even if i set ClipCellContentOnResize to be true. This actually increases the row size which we do not want. What we want is to have a fixed row size and the columns should start clipping as soon as the resizer crosses the text. The text should not be taken to the next row.

Following is my grid configuration : 

<telerik:RadGrid ID="grid1" OnItemDataBound="OnItemDataBound" Skin="Transparent"
    runat="server" GridLines="Vertical">
    <MasterTableView>
    </MasterTableView>
    <HeaderStyle Font-Bold="False" Font-Size="Small" />
    <ClientSettings EnableAlternatingItems="false" EnableRowHoverStyle="true">        
        <ClientEvents OnRowClick="RowClick" OnRowDataBound="RowBound" OnColumnCreated="ColumnCreated" />
        <Selecting AllowRowSelect="True" />
        <Resizing AllowColumnResize="true" EnableRealTimeResize="false" ShowRowIndicatorColumn="false"
                    ResizeGridOnColumnResize="false" ClipCellContentOnResize="true" AllowResizeToFit="false" />
        <Scrolling AllowScroll="true" UseStaticHeaders="true" />
    </ClientSettings>
</telerik:RadGrid>

Please let me know if i am missing anything.
Pavlina
Telerik team
 answered on 29 Nov 2011
1 answer
343 views
Hi,

how I can I set the z-Index of the RadWindow? It starts at 3000 and increases when moving the window.
I need to have it starting at about 300.
How can I achieve that?

In the RadWindow's OnClientShowMethod I do this:
var id = sender.get_id();
var windowDiv = $(".RadWindow[id$='" + id + "']");
windowDiv.css('z-index', 500);
But the z-index starts at 3000 anyway.

How can I set the z-index by myself?

Shinu
Top achievements
Rank 2
 answered on 29 Nov 2011
3 answers
81 views
Hello,

I've a problem with the contextmenu. When headercontextmenu is displayed  (on right mouse click) mostly the icons are disappeared. Sometimes, after some actions with PostBack, the icons appear. Can someone tell me how to forcethe icons to be displayed in the HeaderContextMenu.

I'm using the 2011 Q3 release with Windows7 skin.

Regards,
  Jos Meerkerk
Pavlina
Telerik team
 answered on 29 Nov 2011
1 answer
114 views
Hi,
I have a RadGrid that I will populate with sometimes very long value/text in columns. I have set column width to 100px (fixed) and columns has resizeable set to true. Wrap is set to false (=I want whole value/text in one row).

Now if I have a column with a value/text that requires more than 100px to be displayed complete the text value will be cut off (text after 100px will be hided), example

Full text: This is a very long text/value
Cut off: This is a very lo (rest could be displayed if I manually resize column)

To make this more clear = obvious that text value is longer than what is displayed, I want to show as example below

What I want: This is a very lo... (end text/value with three dots)

Then it's more clear for the user that text/value is longer than what is displayed and then user could resize this column for having/displaying complete text/value.

How to realize/implement "the end to long value/text with three dots solution"?

Rgds,
Jesper 
Marin
Telerik team
 answered on 29 Nov 2011
1 answer
74 views
Hi, my scenario is just like this telerik example
summaring.. on radgrid ItemDataBound (so for every row button control of the grid) I attach a tooltip to the control button
myDBindex = getWordIndex(AppID, myserv.Name, defaultLang)
  mycontrol = CType(dataitem("Name").FindControl("btn_DictionaryName"), Button)
  mycontrol.OnClientClick = String.Format("OpenDictionary('{0}', '{1}','{2}','{3}','{4}','{5}');", myDBindex, defaultLang, tblName, "IDSPAService", myIDSpaService, "Name")
Me.RadToolTipManager1.TargetControls.Add(mycontrol.ClientID, myDBindex, True)

Protected Sub OnAjaxUpdate(ByVal sender As Object, ByVal args As ToolTipUpdateEventArgs)
           Me.UpdateToolTip(args.Value, args.UpdatePanel)
   End Sub
   Private Sub UpdateToolTip(ByVal elementID As String, ByVal panel As UpdatePanel)
           Dim ctrl As Control = Page.LoadControl("/FrontEndASCX/Dictionary/Dictionary.ascx")
           panel.ContentTemplateContainer.Controls.Add(ctrl)
           Dim myDict As ASP.GMDictionary = DirectCast(ctrl, ASP.GMDictionary)
 
           myDict.AppID = AppID
           myDict.IndexValue = elementID
           myDict.showSaveButton = False
   End Sub

and debugging it looks like it works like a charm, the ascx is called with right element value

Unfortunally, when the mouse is over my button control shows at first the tooltip with exact content, but then, when I move the mouse to another row, to another button control, ascx shows the same content (the first one)  though I can see, debugging, values passed are ok.

It has ajaxmanager as in the telerik example
I can't see why..
Thank you
Jean-Marc
Top achievements
Rank 1
 answered on 29 Nov 2011
5 answers
82 views
Someone once said something like "... write a foolproof application and God will invent a better fool."

Whoever it was, he wasn't wrong.

I know I can (and will have to) write custom validation to do this, but it strikes me that it's something that should/could be built-in to the Scheduler, at the very least, as an option under the developer's control.

The better class of fool can:
  1. Create an all day appointment with hourly recurrence
  2. Create occurrences with no end date.

OK, 1 is a specific example of a general case where our fool can create a recurring appointment where the recurrence interval is less than the event duration.

2. Is, I know, by design. But our fool is apt to just accept the defaults and if he creates an hourly recurring appointment and does nothing else, well, you know the results, I'm sure.

What I'd like to see in the Scheduler are options to:

  1. hide selected recurrence intervals (hourly, daily, etc)
  2. within each recurrence interval, hide selected options (eg. daily - every weekday)
  3. hide selected "recurrence end criteria" (eg "No End Date")
  4. set defaults for selected "recurrence end criteria" (eg, After x occurrences; x = 5)
  5. select a "recurrence end criteria" as the default
  6. automatically validate cases where the recurrence interval <= appointment duration.

As I say, I'd love to see these in the control, but I imagine that I'm going to have to do the work to try and outwit my fool for sometime to come.

However, if any one out there has already met my fool and written something to try and head him off, I'd be really grateful if you'd be prepared to share your code.

--
Stuart

Stuart Hemming
Top achievements
Rank 2
 answered on 29 Nov 2011
1 answer
69 views
Hi

If like me you've tried to get help on using VS2010 Automated UI Testing with Telerik AJAX controls you'll know there's not much availible. Do a search for "UIMap" and all you'll get is a pdf that might as well be called "Why Test Studio is better than VS2010 Automated UI Testing".

Telerik Test Studio might well be a better test environment but at the end of the day like many other AJAX control users I've already bought VS2010 Ultimate with its own test recorder, editor etc and I've also bought Telerik AJAX Controls BECAUSE it is advertised as providing an "Improved Visual Studio Experience".

So the question is do Telerik AJAX Controls only improve our Visual Studio experience in areas that are not competing with other Telerik products? If so which bits of VS2010 integration will Telerik drop integration from their controls next? Telerik stand to make a lot of money from encouraging developers to get Test Studio of course, having structured their pricing so this involves a $1500 upgrade followed by significantly increased renewal costs.

The good news however in my exerience is that you can effectively use VS2010 Automated UI Tests with Telerik AJAX controls. There are however a number of gotchas. Whether these are down to Telerik paying insufficient attention to the VS envronment or whether as Telerik staff sniffily like to say they are "issues with your chosen test environment" depends who you talk to. What they seem to be missing is that our "chosen environment" is VS2010 and when Telerik stop supporting this they're on a slippery slope. It strikes me that not documenting this area is cynical.

If you'd like to see better integration/documentation of VS2010 testing I'd strongly encourage you to tell Telerik. If you're having problems give me a shout at GoldTechSvc@yahoo.co.uk and I'll try to help.
Misho
Telerik team
 answered on 29 Nov 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?