Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
94 views
Hi,
I know that RibbonBar by Russell Mason is not your product bu i don't know where to go and maybe you have tested this functionality, here is the problem: when I set AccessKey of LargeRibbonBar it just doesn't work :), i do the same thing with tabs and asp.net buttons and its working fine, do you have any idea what can i do wrong?
Milosz
Top achievements
Rank 1
 answered on 13 Oct 2009
3 answers
179 views
I am trying to move my web apps into AJAX. I use server controls only for the initial page rendering of the DOM elements and then make web-service calls (using PageMethods or WCF) to populate or manipulate any grids, forms or data that exist in the page.

I recently purchased the AJAX RADControls since read that it is one of the best AJAX libraries available.

I added some of the Telerik controls to replace plain HTML tags (such as drop-down lists, inputs, etc.) but I am dissappointed in how difficult it is to find these controls in the DOM in order to manipulate them (especially when they are embedded within other ASP.Net server controls).

I am confused why I can't simply declare the Client IDs of my Telerik controls?
I am using my Telerik controls as 100% client-side controls so why am I not able to define my own Client IDs?


To find a Telerik Control I have to resort to such calls as:
var combo = $find("<%= RadComboBox1.ClientID %>");
var item = combo.findItemByText(text);
 (By the way, this code above will NOT run when you place your script code in a separate JS file which is a best practice that I prefer to follow.)

Does this limitation exist for a good reason?
Or is this limitation there because these are server controls that are being migrated to AJAX?
Is there a future version of the AJAX controls that will allow me to define my own Client IDs?

Please let me know if I misunderstood the architecture of these controls.

Thanks in advance for any explanation you may offer on this matter.

Klaus Barkhausen
Atanas Korchev
Telerik team
 answered on 13 Oct 2009
20 answers
460 views
Hi,
i have a java applet on rad window, and if i place one more window above it - then window structure (title/border) are hidden below applet, while window content is above. Tried to play with zindex and overlay - but no luck. Any hints how to fix this?

Thanks
Alex
Georgi Tunev
Telerik team
 answered on 13 Oct 2009
1 answer
83 views
Hi,
I use ContextMenu control with RadGrid - menu appears on right-click on any row of grid. I need to change text of one menu item depending on grid item that was clicked. Is there a way to do this, on client side probably? I suppose this could be achieved by changing text of specific item, showing/hiding items (or adding/removing). So, there are two questions - how to manipulate the menu, and how to find out which row of grid was right-clicked.
I would be most grateful  for any help.
Shinu
Top achievements
Rank 2
 answered on 13 Oct 2009
2 answers
201 views
Hi,

I sometimes encounter the situation that the height of a radsplitter is not calculated correctly.

This happens in a very specific situation:
In the project I'm working on we're using a home brewed sort of tabs. When a tab is switched to for the first time the contents of that tab is rendered. The radsplitter that is giving me problems is in one such tabs.
All is well if I switch to such a tab and I wait long enough for the height of the radsplitter to be calculated correctly (which isn't very long at all). The problem arises when I switch to such a tab and the switch to another tab very quickly, causing radsplitter to render "in the background", if you catch my drift. Somehow something goes wrong with the calculation of the height of the radsplitter, resulting in unnecessary scrollbars and such.

Now, I would be greatly helped if there exists a command in the client-side api which forces the height of a radsplitter to be recalculated.
I haven't found such a function, but have I missed it? If so please tell me, and sorry for not looking properly.
If there is already another thread addressing this functionality please direct me to it, and sorry for creating a new thread about it although I did look for such a thread first but couldn't find it. (There are so many threads about radsplitters and height.)

Regards,

Mink

Mink
Top achievements
Rank 1
 answered on 13 Oct 2009
4 answers
95 views
When I select the "Columns" sub-menu of the Header Context Menu, it shows a list of all the columns exactly the way each column appears in the header of my grid.  But many of my column headers are stacked type, sometimes 3 or 4 lines high, and, unfortunately, they're broken the same way in the "Columns" sub-menu, which looks bad and is difficult for the user to understand and use.  Is there any way to change the type that appears in the sub-menu?  I would like each column name to appear on one line in order to make the sub-menu more user friendly.

Thanks,
Tim
Tim
Top achievements
Rank 1
 answered on 13 Oct 2009
4 answers
199 views
Hi,

I would like to run some Javascript directly *after* the RadControls are created on the client-side. If I use "ScriptManager.RegisterStartupScript" then the javascript is inserted *before* the RadControls are created.

What I am ultimately trying to do is get a "handle" to all of my client-side RadControls. I know that I can call $find to get them, but I prefer to assign them all to variables on page load then access those variables. Here is an example:

The javascript should be generated on the server like this:

js =

"var BAN = $find('" + BAN.ClientID + "'); ";

 

 

ScriptManager.RegisterStartupScript(this, this.GetType(), "InitControls", js, true);

 


Now, on the client, I could just access "BAN.get_value()". The problem, of course, is that "$find" fails to find the control because this script executes before the client-side control is created. To work-around the problem I am currently doing a two step process (declare the variables then assign them during page load) like this:

string js = "var BAN, CompanyName, Contact, Address1, Address2, City, State, Zip, LocalBAN, Phone, Email; ";  
ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "DeclareControls", js, true);  
 
js  = "BAN = $find('" + BAN.ClientID + "'); ";  
js += "CompanyName = $find('" + CompanyName.ClientID + "'); ";  
js += "Contact = $find('" + Contact.ClientID + "'); ";  
js += "Address1 = $find('" + Address1.ClientID + "'); ";  
js += "Address2 = $find('" + Address2.ClientID + "'); ";  
js += "City = $find('" + City.ClientID + "'); ";  
js += "State = $find('" + State.ClientID + "'); ";  
js += "Zip = $find('" + Zip.ClientID + "'); ";  
js += "LocalBAN = $find('" + LocalBAN.ClientID + "'); ";  
js += "Phone = $find('" + Phone.ClientID + "'); ";  
js += "Email = $find('" + Email.ClientID + "'); ";  
ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "InitControls", "function InitControls() {" + js + "}", true);  
ScriptManager.RegisterStartupScript(this, this.GetType(), "InitControlsCall", "Sys.Application.remove_load(InitControls); Sys.Application.add_load(InitControls);", true);  
 

If I could just get my javascript to run *after* the RadControls are created I could clean this up a bit.

Thanks!
Scott

P.S. It would be nice to be able set a property on the control (e.g. RadControl.ClientSideId) and have the control do this for us automatically!
Martin
Telerik team
 answered on 13 Oct 2009
2 answers
104 views
Hi all

I have an interesting issue I hope someone has an answer for.

I have a situation where I have two types of records, Full and Split. A full record may have from 0 to 3 split records. I want to display the full records and the splits in a detail table under the associated full record. That part is easy.

Here is the fun part...
According to the business rules:
1) If a full record is assigned, then the associated splits should be unavailble for assignment
2) If a split record is selected, then the parent full record should be unavailable for assignment.

I think I can accomplish rule #1 when databinding the detail table. I need to check to see that a person has been assigned to the full record. If so, I can either prevent the detailtabledatabind entirely, or disable the assign button for each detail record.

I am unsure, however, as to how to approach rule #2. Is there a way to get at the parent record when doing some sort of ItemDataBound on the detail table? That way I can see if a detail record has been assigned and turn off the assign button in the parent record.

Thanks for any and all help!
Bruce
Bruce
Top achievements
Rank 1
 answered on 13 Oct 2009
2 answers
66 views
     I have an ajaxed grid, but I can't get the pager to show at all. I've tried everything I can find, setting 'AllowPaging' to True, 'AllowCustomPaging' to true, 'PagerAlwaysVisible' true, 'ShowFooter' true, and various combinations of the above in various parts of the grid (inside the grid tag, inside the mastertableview tag, etc.) but nothing! What's holding the pager back?
Michael H.
Top achievements
Rank 1
 answered on 12 Oct 2009
2 answers
149 views
Hello,

I have a problem with the tooltip positioning with some elements on my page.  I am using the TooltipManager and execute a method on the OnAjaxUpdate event.  This method will dynamically set the text of the tooltip based on the item and the client's access.  The text will either be one sentence long or one paragraph long.  If it is one sentence long it works fine, if it is one paragraph it does not position correctly.  I have Animation set to 'none'.  Before it was set to 'fade', this worked but it was slow and initially it was positioned wrong but after a second was positioned correctly.   How do I get this to position correctly with Animation set to 'none'.  Here is my sample code: 

<telerik:RadToolTipManager  ID="rttmTooltip"
                            runat="server"
                            Height="50px"
                            Width="300px"
                            ShowEvent="onMouseOver"  
                            HideEvent="LeaveToolTip"
                            Animation="None"
                            Position="MiddleRight"
                            RelativeTo="Element"
                            OffsetY="-3"  
                            OnAjaxUpdate="rttmTooltip_AjaxUpdate"
                            Skin="Vista"
                            AutoCloseDelay="200000" >
        <TargetControls>
            <telerik:ToolTipTargetControl IsClientID="false"  TargetControlID="dApples" value="Apples"/>
            <telerik:ToolTipTargetControl IsClientID="false"  TargetControlID="dBananas" value="Bananas"/>
            <telerik:ToolTipTargetControl IsClientID="false"  TargetControlID="dPears" value="Pears"/>
            <telerik:ToolTipTargetControl IsClientID="false"  TargetControlID="dOranges" value="Oranges"/>
        </TargetControls>
        </telerik:RadToolTipManager>

Thanks,

Michael
Michael
Top achievements
Rank 1
 answered on 12 Oct 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?