Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
122 views
Hey guys how do I get a handle to call a function when the Document Managers Insert Button is clicked then passing the variable of the file selected?
Rumen
Telerik team
 answered on 25 Jan 2010
1 answer
108 views
Hi,

I am building my Grid structure in the code-behind (Page_Load when !Page.IsPostBack). I am using advanced data binding via the OnNeedDataSource event.

When I first load my page, the structure and data are fine. However, on a post-back the meta data of the columns is lost so I am left with no headers, and no data types on my columns. So all the rows just show "System.Data.DataRowView" as the value for each column
ViewState is enabled.

Any ideas? Am I missing an event handler to rebind the column data?

Thanks,
Dewang
Dewang Shah
Top achievements
Rank 1
 answered on 25 Jan 2010
1 answer
67 views
I'm seeing some unexpected and unintuitive behaviour regarding the saving of the End By Date.
There seems to be some faulty logic that will always increment the user selected date by 1 day (or to the next day) therefore if the user keeps viewing the appointment data and doesn't update anything but clicks save, the End By Date will always increment by 1.

The bug seems to be in the _getRange function of the advanced form, which is easily enough modified since i am using the custom advanced form approach.

The code in question is as follows in the getRange js method:

 
                if (!this._getElement("AllDayEvent").checked) 
                    range.set_recursUntil($DateTime.add(range.get_recursUntil(), timePerDay)); 

The problem is that you take the date the user selected and you add an entire day which sets it to midnight, the beginning of the next day all the time so if the user goes to just view the data in edit mode, doesn't change anything but clicks save, as most users will, the end by date shouldn't change but in the current case it will.

It seems to me you need to subtract a second to always put the end by date at the end of the user selected date (just before the day rolls over).
T. Tsonev
Telerik team
 answered on 25 Jan 2010
1 answer
117 views

I want to use jQuery to assign an event handler for MouseUp on nodes in the treeview, like this:

$("div.issuesTree span.issueTitle").mouseup(handleMouseup);

[I gave the tree a css class of "issuesTree" and the nodes a css class of "issueTitle"]

In the handleMouseup function, I want to be able to access the attributes of the node, similar to this example, from:

http://www.telerik.com/help/aspnet-ajax/tree_attributesclientside.html

function onNodeClicked(sender, args)  
{  
     var node = args.get_node();  
     alert(node.get_attributes().getAttribute("ScientificName"));  
     //you can also set attributes, like:  
     //node.get_attributes().setAttribute("ScientificName");  
}  
 

 

The above example includes setting the RadTreeView property, OnClientNodeClicked, in which the Telerik RadTreeNode is in the args object.

Within my mouseup handler, is there a way to access this node, so that I can access its attributes?

 

Also note: My page already has jQuery 1.3.2 referenced directly, and I read that including the RadTreeView will also include jQuery, but with $telerik.$ as the default alias. Trying to use $telerik.$(“selector”).mouseup(…) didn’t seem to help… $telerik.$ is shown as undefined in my debugger.

I got the idea to try the $telerik.$ alias from reading, "Using jQuery," here:
http://www.telerik.com/help/aspnet-ajax/using-jquery.html

I’m using Visual Studio 2008.

Telerik.Web.UI.dll
File/product version: 2008.2.1001.20

Thanks in advance for any help or tips to accomplish what I need, by whatever method you might suggest.

Veselin Vasilev
Telerik team
 answered on 25 Jan 2010
1 answer
39 views
I have a rad grid on which i was trying to do automatic operations. I had set the datasourceid on the master table view, however inserts/edits/deletes were not working. it only worked when i set the datasourceid on the telerik:RadGrid level as well

Is this correct behaviour?
Martin
Telerik team
 answered on 25 Jan 2010
1 answer
92 views
Hello,

I would like to create Navigation Menu, but would like items to keep some distance to each other.
How will I accomplish that?
Schlurk
Top achievements
Rank 2
 answered on 25 Jan 2010
1 answer
134 views
hi
I have changed my telerik from Q3 2008 to Q3-2009 SP2.
 i am facing skin issues in radWindows.

It is displaying properly in some pages, and while opening window from some pages its displaying not properly.
i am attaching a snapshot of this , please give a solution
Georgi Tunev
Telerik team
 answered on 25 Jan 2010
1 answer
473 views
I am using getWindowbounds to obtain the position of a RadWindow after a drag event, and saving that in a cookie. Then, if they close the RadWindow and later re-open it, I am using setSize and moveTo to reposition it. The code appears as follows:

                function WindowMoved(sender, args) { 
                    window.setTimeout(function() { 
                        SaveSizeAndPosition(sender, args); 
                    }, 10); 
                } 
                function SaveSizeAndPosition(sender, args) { 
                    var oWnd = $find("<%= RadWindowRealMcCoy.ClientID %>"); 
                    if (oWnd != undefined) { 
                        debugger
                        createCookie('RealMcCoyManagerWindowTop', oWnd.getWindowBounds().y, 365); 
                        createCookie('RealMcCoyManagerWindowLeft', oWnd.getWindowBounds().x, 365); 
                        createCookie('RealMcCoyManagerWindowHeight', oWnd.getWindowBounds().height, 365); 
                        createCookie('RealMcCoyManagerWindowWidth', oWnd.getWindowBounds().width, 365); 
                    } 
                } 
                function ShowDialog() { 
                    var oWnd = $find("<%= RadWindowRealMcCoy.ClientID %>"); 
                    if ((oWnd != null) && (oWnd != undefined)) { 
                        var x = readCookie('RealMcCoyManagerWindowLeft'); 
                        var y = readCookie('RealMcCoyManagerWindowTop'); 
                        var height = readCookie('RealMcCoyManagerWindowHeight'); 
                        var width = readCookie('RealMcCoyManagerWindowWidth'); 
                        if (x) { 
                            if (oWnd._firstShow == undefined) { 
                                oWnd.setSize(width, height); 
                                oWnd.moveTo(x, y); 
                            } 
                        } 
 
                        oWnd.show(); 
                    } 
                } 
 

It appears that the result of this is a window that is slightly offset from where it should be. See the two images below, the first is after moving the window, and the second is after re-opening it.



Georgi Tunev
Telerik team
 answered on 25 Jan 2010
11 answers
987 views
Hi:

Can somebody share a way for having a radalert customized? I want to have a different icon for each case I use radalert, something like the vb 6.0 alert window.

The current radalert only has an "alert icon", but it doesnt have the option for parametrize the image icon for: information, all ok, warning, etc, etc

Thanks in advance.
Schlurk
Top achievements
Rank 2
 answered on 25 Jan 2010
1 answer
115 views
Hi
One of the columns in our RadGrid is a textbox. In Edit mode, when user selects text from this textbox by hovering and selecting with a mouse and if the mouse goes across to the next column (over to the adjacent control) an error comes up that reads
"Error : 'this.input[...] is null or not an object"

The mouse hover calls the event handler below. The control that is passed into this event hadler is the adjacent control instead of the text box. For this reason input[a] is null. Had the textbox been passed it would not have been null

_onTextBoxMouseOverHandler:

function(b){var a=Telerik.Web.UI.RadInputManager.getTarget(b);

 

if

(!a){return;

 

}

this._inputs[a]._hovered=true;

Any help on this one with be greatly appreciated!

Thanks
mtoori

 

Radoslav
Telerik team
 answered on 25 Jan 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?