Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
216 views
Hello,

I have a tooltip that gets invoked on RadGrid mouse over.  However, It is running twice on mouseover.  How can I stop this?  The radgrid is not in an UPDATE PANEL.

tx.
AV
Sophy
Telerik team
 answered on 31 Jul 2008
1 answer
137 views
I do the following to get a subset of the grid filter options:
protected void RadGridFilter_Init(object sender, System.EventArgs e) 
    { 
        RadGrid rg = (RadGrid)sender; 
        GridFilterMenu menu = rg.FilterMenu; 
        int i = 0; 
 
        while (i < menu.Items.Count) 
        { 
            if (menu.Items[i].Text == "NoFilter" || menu.Items[i].Text == "Contains" || menu.Items[i].Text == "EqualTo" || menu.Items[i].Text == "GreaterThan" 
             || menu.Items[i].Text == "LessThan" || menu.Items[i].Text == "StartsWith"
            { 
                i++; 
            } 
            else 
            { 
                menu.Items.RemoveAt(i); 
            } 
        } 
         
 
    } 






This works fine unless you combine it with:
CurrentFilterFunction="EqualTo" (or another option besides Contains).

It appears the grid first sets the index of the current filter function and then removes the filter features with the OnInit command.  This puts the wrong item as the default.

I really don't want to have to iterate through each column on every grid I have in the code to set the default.  Is this a big or by design?  Any quick ways of getting a subset of the filter options and then set the default filter value?

Thanks





Iana Tsolova
Telerik team
 answered on 31 Jul 2008
1 answer
83 views
Hi,
i am using "window.radopen()" for open a new page aspx,
i want to know how can i do to refresh in master page when i close popup page ?
Svetlina Anati
Telerik team
 answered on 31 Jul 2008
13 answers
755 views
Hi,

I'm using RadWindow 2.0 and I am getting similar resize problems that I had with RadWindow 1.9.
  1. When the resize cursor shows resizing in both dimensions then it does not always allow resizing in x and y dimensions, just x.
  2. When resizing the RadWindow it also occasionally forgets its current size and shrinks, before expanding again, which means that the cursor starts off where the resize handle was originally. So if the user is near the bottom of the web page then the attempt to resize fails as the window has actually contracted.
  3. When resizing or dragging, releasing the left mouse button does not always stop the resize/drag operation, so the left button has to be depressed and released again.
All of the above problems appear to be more frequent when the RadAjaxTimer is firing and the windows are busy with Ajax requests, but they do still appear when the browser appears to be doing nothing.

Any thoughts,

Bob.
Svetlina Anati
Telerik team
 answered on 31 Jul 2008
1 answer
240 views
I dragged and dropped the web radtextbox in a web page. I am not able to resize the textbox in the design mode.

if i set the height and width property it is getting resized. But i want to resize using the mouse in the design page.

Your help will be of great help to us

Regards,
Vimal
Kevin Babcock
Top achievements
Rank 1
 answered on 31 Jul 2008
1 answer
236 views
I have 2 buttons on the page and a treeview. One button is Edit and the other is Save.

The treeview is generated dynamically by adding nodes using ITemplate...for example, some nodes add a RadTextBox or a RadDatePicker

When the user clicks Edit I dynamically reload the entire tree with each node using a different ITemplate showing the edit controls.

When the user clicks Save I want to get each node and find the control holding the edited value. The problem is Node.Controls is empty. I can't do a FindControl either on any container in the chain.

I've tried:

var thisControl = node.FindControl(node.UniqueID + "dateField");
var thisControl = node.Parent.FindControl(node.UniqueID + "dateField");
var thisControl = this.FindControl(node.UniqueID + "dateField");

Here is the Save event....

protected void dataElementFactTree_Save_Click(object sender, ImageClickEventArgs e)

{

var tree = ((ImageButton) sender).FindControl("dataElementFactTree") as RadTreeView;

if (tree == null) return;

ProcessTreeNodes(tree);

}

private void ProcessTreeNodes(IRadTreeNodeContainer tree)

{

var valueActions = new List<BGValueAction>();

foreach (RadTreeNode node in tree.Nodes)

{

var nodeTemplate = node.Attributes["NodeTemplate"];

if (nodeTemplate == typeof(CalendarTemplate).ToString())

{

var thisControl = node.FindControl(node.UniqueID + "dateField");

}

{

};

valueActions.Add(valueAction);

}

if (valueActions.Count > 0) BGMainController.ProcessFactTreeActions(valueActions);

}

Here is a sample of a read and edit template:

internal class CalendarTemplate : BaseTemplate, ITemplate

{

#region ITemplate Members

public CalendarTemplate(NodeBuilderContext context, bool isEditing) : base(context, isEditing, false) { }

public void InstantiateIn(Control container)

{

var node = (RadTreeNode) container;

CreateLabel(container);

if (IsEditing)

{

var factValueField = new RadDatePicker {ID = container.UniqueID + "dateField"};

node.Controls.Add(factValueField);

}

else

{

CreateValueLabel(container,

string.Empty);

}

}

#endregion

}

Thanks.

Simon
Telerik team
 answered on 31 Jul 2008
2 answers
336 views
Hi,

With column sorting allowed, you get a tooltip text 'Click here to sort' when hovering above the columnheader. I need to change that text to a custom, language based text.

Where (or how) can I do this?

Thanks,

Tim
Tim Weyts
Top achievements
Rank 1
 answered on 31 Jul 2008
2 answers
189 views
hi,

I m using Rad TreeView... & i m refreshing Rad tree every 2 mins..using Ajax.. problem is that after refreshing the Tree state is maintaining.. i mean if any node is expanded then it should remain expanded after postback...... moreover when i refreshing the tree it loaded more than 400 images for TreeView... though it happened when i use Vista or other Skin..... its quite impossible to work then.. after refreshing everything is normal... i need the solution badly..

BR,
Rokan
Rokanuzzaman
Top achievements
Rank 1
 answered on 31 Jul 2008
3 answers
146 views
I'm using OnClientSelectionChange event to enable/disable custom tool buttons. It works fine with one exception: when I select some piece of text in editor and press "Delete" key - selected text is deleted but OnClientSelectionChange event is not fired. The same is with "Backspace" key.

Described behaviour can be reproduced using http://soforealproductions.se/ajax/Editor/Examples/ClientsideEvents/DefaultVB.aspx sample. Select some text, press "Delete" and inspect the content of The current selection is field which is updated by OnClientSelectionChange event handler.

P.S. My browser is IE7.
QualiWareUA
Top achievements
Rank 1
 answered on 31 Jul 2008
1 answer
94 views
I am using the Q1 asp.net radgrid and the Q2 ASPNETAjax radtooltip.

I have 3 RadToolTipManagers on the page for 3 different columns in the grid that require a custom tooltip from a control.

When I hover over the one in the middle of the grid, it displays TopRight as defined.

However, the other two columns are the two far right columns on the grid. I set them up with ToolTipPosition.BottomLeft (also tried TopLeft) and when I hover over them, although the little pointy thing is in the top right corner where it should be, the tooltip itself falls to the bottom right of my element, and even off the edge of the page for my far right column.

This is true for both IE and Firefox.

This may be something you're working on, as I read in the forum:
>>This is logged in our database and we will do our best to make the RadToolTip work as expected both in quirks mode and in xhtml mode for our Q2 2008 release, which is scheduled for the 22 July. 

Is this part of this known issue and will be fixed in the July 22nd release? I am using: RadControls for ASPNET AJAX Q2 2008. Is this before or after the July 22 release? I just downloaded it last week.

I do not use the AjaxManager in my grid, so the blog post about using the old grid with the tooltip doesn't apply to this situation.

Here is my tip definition:

tipMgrRec.Position = ToolTipPosition.BottomLeft

tipMgrRec.RelativeTo = ToolTipRelativeDisplay.Element

tipMgrRec.ShowEvent = ToolTipShowEvent.OnMouseOver

thanks.

Tsvetie
Telerik team
 answered on 31 Jul 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?