Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
77 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
108 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
72 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
75 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
62 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
1 answer
198 views
Hi,

I have used OnClientItemClicking="ChangeDetection_OnRecSelItemClicking" for handling filter item click event and working fine.

Now i want to handle client events for paging next, previous, page size change and Go button.

I am using :
<PagerStyle Mode="NextPrevNumericAndAdvanced" PageButtonCount="5" AlwaysVisible="true" />

Please suggest how i will execute the javascript methods for those.

warm regards,
Reyaz
Princy
Top achievements
Rank 2
 answered on 29 Nov 2011
19 answers
584 views
With RadControls you no longer have to stick with simplistic UIs in your ASP.NET MVC Views. Telerik UI controls support Microsoft ASP.NET MVC and allow you to combine the testability and separation of concerns of the emerging technology with the richness of traditional ASP.NET server controls.

Here is a list of resources that will help you get started with RadControls in ASP.NET MVC:

Enjoy your ASP.NET MVC projects now with RadControls!
Telerik Team
Abhijit
Top achievements
Rank 1
 answered on 29 Nov 2011
4 answers
101 views
Hi,
I'm trying to implement some custom formatting on RadGrid I used code like be below :

Protected Sub RadGrid1_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.WebControls.GridItemEventArgs) Handles RadGrid1.ItemDataBound
         If (TypeOf e.Item Is GridDataItem) Then
             Dim dataItem As GridDataItem = CType(e.Item, GridDataItem)
             If (dataItem("Country").Text = "Mexico") Then
                dataItem.CssClass = "MyMexicoRowClass"
             End If
         End If
End Sub

But e.item is GridPagerItem there for rest of code is not accessible. Anythough?
basically I want to check value of column and depend on it I want to change background to different color for the rows
i'm using radgrid paging allowed and CSS

RadGrid populated programmatically .
Newbie,
MM

Pavlina
Telerik team
 answered on 29 Nov 2011
1 answer
87 views
I am trying to set the Page Size of a grid from a button's click event handler function using
 
oGrid.PageSize = 10;
oGrid.MasterTableView.Rebind();

I have tried this also

oGrid.PageSize = 10;
oGrid.Rebind();

Both methods are not working.
how can i make it work
Pavlina
Telerik team
 answered on 29 Nov 2011
9 answers
204 views
Hi,
i have a radfilter.
how can i go through the data text field in the radfilter, that are generated to build a query
to filter the data.
i mean is there any way to go through the data in controls that controls are generated
in Radfilter to build the query.
Mira
Telerik team
 answered on 29 Nov 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?