Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
48 views
I've just figured out the Related Comboboxes demo (http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/multiplecomboboxes/defaultcs.aspx ) is not using requestItems anymore, It uses a RadAjaxManager.

I'm just curious about it, Have you found some issues? Is this "new" approach faster now?
Kalina
Telerik team
 answered on 22 Oct 2012
1 answer
104 views
hii,
how can i hide the radupload when the radprogressarea is showing?

thanks..
Shinu
Top achievements
Rank 2
 answered on 22 Oct 2012
1 answer
87 views
In our application we use a tabstrip with different tabs which are build up server-side when they become active. At one of the tabs there is an editable grid which must save the data before the new tab is build up.

Our problem is that the TabStrip updates the selected index in the LoadPostEvent of the lifecycle and makes all child controls on the active tab visible=false. This happens before any user events are executed. When the event of the grid is fired it is marked invisible already...

In our opinion the selected index should be updated when the tabClicked event from the tab is fired. Events fired in the same request before the TabClicked event can work in the correct state then. Now there is a gap between the loadPostData and the TabClicked event where the state of the tabpanel is in an incorrect state.

Thanks for your time!
Dimitar Terziev
Telerik team
 answered on 22 Oct 2012
1 answer
70 views
hii,
 how to change the button's text of autogenerated delete and edit
column ?

thanks
Princy
Top achievements
Rank 2
 answered on 22 Oct 2012
1 answer
79 views
I have a form (page) which has several Telerik controls (text boxes, combobox).

I have a combobox (ID: 'a') with its validation group set to "abc"
I have a button with its validation group set to "abc" (it fires the validation for the group "abc")
I have a required field validator attached to the combobox (ID:'a')

I wish to accomplish the following:

1) When a user manipulates the combobox, I do NOT wish to validate.
2) When the focus moves out of the combobox, I do NOT wish to validate.
3) When the button at which I set the validation group, I *do* wish to validate.

In other words, I do not want validation to fire while the user is just manipulating the combobox and other fields on the form.  I only wish to validate at the moment when the button is clicked.

It seems that this "page-level" validation should be a simple setting.  Why should individual controls be validating?  There could be scenarios (such as mine, where the combobox list of items could be changed ON the page, requiring the person to go in and out of the combobox before finalizing the page).  I don't want each control on the page to have individual validation during the view and manipulation of the items on the page -- no control-level validation firing.  I simply want page-level firing.

Another wish is that I don't have to add extra javascripting to each of the pages for each of the control -- that is a lot of extra "work-arounds" when there could be a simple setting such that the validator only fires if it were fired by the button.

Does anyone have an insight on how I can accomplish my requirements?

Thanks in advance.
Kalina
Telerik team
 answered on 22 Oct 2012
3 answers
109 views
Hello,

we are using a RadGrid with links. If the user clicks a link, it opens a RadWindow which allows the user to send an email. If he clicks the "send"-button within the RadWindow, one image in the Grid changes to indicate the email was send.

But the User doesn't notice the difference until he closes the RadWindow and reloads the page.
Is it therefore possible to reload the RadGrid in the parent page when the user clicks on the button in the RadWindow (best without closing it)?

Thanks!
Marin Bratanov
Telerik team
 answered on 22 Oct 2012
3 answers
76 views
I maintain a web page with a 2 tier grid
the second tier contains a column that needs a filter on
I would appreciate any suggestion on how to implement this functionality
a drop-down on the top, but what to do on the selected index changed event handler

thanks
Eyup
Telerik team
 answered on 22 Oct 2012
3 answers
387 views
I'm creating a dynamic tooltip control that will reference javascript when moused over that is located in the master page, which uses the tool tip manager in the master page to call ajax from the master page's code behind.  I think that's all working fine.  It's a combination of examples that you've provided.  It will load nicely, but then the tooltip will go blank and a javascript error is produced.

It's an "Argument Out of Range" exception triggered by Sys$UI$Bounds when fetching the ToolTipBounds.  The 'x' value is NaN when an integer is expected.  The element in question is the control which is placed in a RadDock.  The tool tip does appear just below the div element and centered.  I'm unsure why it wouldn't have an x value.  I've tried to provide as much information as I can.

Thanks for your assistance, opinions, etc.

EDIT:  Version 2012.2.912.40

Error Stack

Uncaught Sys.ArgumentOutOfRangeException: Sys.ArgumentOutOfRangeException: Value must be an integer.
Parameter name: x
Actual value was NaN. ScriptResource.axd:237
Error$create ScriptResource.axd:237
Error$argumentOutOfRange ScriptResource.axd:302
Function$_validateParameterType ScriptResource.axd:217
Function$_validateParameter ScriptResource.axd:130
Function$_validateParams ScriptResource.axd:84
Sys$UI$Bounds ScriptResource.axd:3924
window.$telerik.window.TelerikCommonScripts.Telerik.Web.CommonScripts.getBounds ScriptResource.axd:247
$T.RadToolTip._getBoundsRelativeToElement ScriptResource.axd:429
$T.RadToolTip.getToolTipBounds ScriptResource.axd:482
$T.RadToolTip._reSetToolTipPosition ScriptResource.axd:646
$T.RadToolTip._reSetPositionWithoutFlicker ScriptResource.axd:651
(anonymous function) ScriptResource.axd:150
(anonymous function) ScriptResource.axd:47
(anonymous function) ScriptResource.axd:3484
Sys$WebForms$PageRequestManager$_endPostBack ScriptResource.axd:865
Sys$WebForms$PageRequestManager$_scriptsLoadComplete ScriptResource.axd:1729
(anonymous function) ScriptResource.axd:31
(anonymous function) ScriptResource.axd:47
Sys$_ScriptLoader$_loadScriptsInternal ScriptResource.axd:342
Sys$_ScriptLoader$_loadScriptsInternal ScriptResource.axd:335
Sys$_ScriptLoader$_loadScriptsInternal ScriptResource.axd:335
Sys$_ScriptLoader$_loadScriptsInternal ScriptResource.axd:335
Sys$_ScriptLoader$_loadScriptsInternal ScriptResource.axd:335
Sys$_ScriptLoader$_loadScriptsInternal ScriptResource.axd:335
Sys$_ScriptLoader$_loadScriptsInternal ScriptResource.axd:335
Sys$_ScriptLoader$_loadScriptsInternal ScriptResource.axd:335
Sys$_ScriptLoader$_loadScriptsInternal ScriptResource.axd:335
Sys$_ScriptLoader$_loadScriptsInternal ScriptResource.axd:335
Sys$_ScriptLoader$_loadScriptsInternal ScriptResource.axd:335
Sys$_ScriptLoader$_loadScriptsInternal ScriptResource.axd:335
Sys$_ScriptLoader$_loadScriptsInternal ScriptResource.axd:335
Sys$_ScriptLoader$_loadScriptsInternal ScriptResource.axd:335
Sys$_ScriptLoader$_loadScriptsInternal ScriptResource.axd:335
Sys$_ScriptLoader$_loadScriptsInternal ScriptResource.axd:335
Sys$_ScriptLoader$_loadScriptsInternal ScriptResource.axd:335
Sys$_ScriptLoader$_loadScriptsInternal ScriptResource.axd:335
Sys$_ScriptLoader$_loadScriptsInternal ScriptResource.axd:335
Sys$_ScriptLoader$_nextSession ScriptResource.axd:357
Sys$_ScriptLoader$_loadScriptsInternal ScriptResource.axd:344
Sys$_ScriptLoader$_nextSession ScriptResource.axd:357
Sys$_ScriptLoader$loadScripts ScriptResource.axd:262
Sys$WebForms$PageRequestManager$_onFormSubmitCompleted ScriptResource.axd:1344
(anonymous function) ScriptResource.axd:47
(anonymous function) ScriptResource.axd:3484
Sys$Net$WebRequest$completed ScriptResource.axd:6364
Sys$Net$XMLHttpExecutor._onReadyStateChange ScriptResource.axd:5984


Javascript on MasterPage

function showToolTip(element) {
    var tooltipManager = $find("<%= toolTipManagerMain.ClientID %>");
 
    //If the user hovers the image before the page has loaded, there is no manager created
    if (!tooltipManager) return;
 
    //Find the tooltip for this element if it has been created
    var tooltip = tooltipManager.getToolTipByElement(element);
 
    //Create a tooltip if no tooltip exists for such element
    if (!tooltip) {
        tooltip = tooltipManager.createToolTip(element);
 
        var message = element.getAttribute("alt", 2);
        tooltip.set_value(message);
        tooltip.set_animationDuration(0);
    }
}

RadToolTipManager declaration on MasterPage

<telerik:RadToolTipManager ID="toolTipManagerMain" runat="server" HideEvent="ManualClose"
    Animation="Fade" OnAjaxUpdate="OnAjaxUpdate" RelativeTo="Element"
    Width="180px" Height="150px" Style="font-size: 18px; text-align: center; font-family: Arial;"
    RenderInPageRoot="True"
     >

OnAjaxUpdate in MasterPage's code behind

protected void OnAjaxUpdate(object sender, ToolTipUpdateEventArgs args)
{
    Control ctrl = Page.LoadControl("~/Controls/ToolTip/ToolTipSummary.ascx");
    args.UpdatePanel.ContentTemplateContainer.Controls.Add(ctrl);
    ToolTipSummary details = (ToolTipSummary)ctrl;
    details.Data = args.Value;
}

Tool Tip Control markup

<div id="testId" class="toolTipGuide" alt="<%# ToolTipMessage %>" runat="server" onmouseover="showToolTip(this);">?</div>

Tool Tip Control code behind

private string _tookTipMessage = "";
public string ToolTipMessage
{
    get { return _tookTipMessage; }
    set { _tookTipMessage = value; }
}
 
protected void Page_Load(object sender, EventArgs e)
{
}
Marin Bratanov
Telerik team
 answered on 22 Oct 2012
2 answers
48 views
I render about 60 images on a page as:

string _html = String.Emtpy;

_html += "<img javascript:void() style=\"z-index: 100; position: absolute; left: " + _releaseLeft + "px; top: " + _imageTop.ToString(CultureInfo.InvariantCulture) + "px;\" src=\"/Images/Orange.png\" /><div style=\"z-index: 101; position: absolute; color: white; top: " + _versionTextTop + "px; left: " + _textLeft + "px; float: right\" id=\"buttonText\">" + pVersionNumber + "</div>" + "\r\n";

PageHTML.Text = _html;

The above code is a switch that adds 4 different images but each image has unique values associated with it.

How can I bind a tooltip in such a way that each image when it is hovered over displays the tooltip properly?

I need to display rich text like:

<strong>Firmware: </strong> yadda
<strong>Release Date: </strong> some date
<strong>More Info: </strong> embedded URL.
....
....
and so on...


Marin Bratanov
Telerik team
 answered on 22 Oct 2012
2 answers
62 views

Hi,

I have used two text box see my screen shot,
I have typed Main Work Name for Ex: Test,
I want to Generate Main Code in alphametics(EX: A, B, C, D, ......)

Thanks
Ansari
Tamim
Top achievements
Rank 1
 answered on 22 Oct 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?