Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
406 views
How do I keep the RadGrid from loading (ie firing "need data source") when I access the page.  I want the grid to load only when the user clicks a specific button.  Thanks.

Angie
Top achievements
Rank 1
 answered on 07 Jul 2008
5 answers
981 views
How do I get the number of rows returned displayed in the Grid, either in the  Header or Footer?
Mike
Top achievements
Rank 1
 answered on 07 Jul 2008
2 answers
172 views

I have a Drag Drop operation that works OK except that it causes a Javascript error.

I am dragging a row of a RadGrid onto a Tree control (not a RadTree). When I do the drop onto the Tree control, the RadGrid's onRowDropping handler fires and does:

args.set_cancel(true);

(otherwise I get a different JScript error: Specified argument was out of the range of valid values. Parameter name: ItemHierarchicalIndex)

Dropping the item onto the Tree control causes the Tree to do an asynchronous callback which executes as I want, and in a subsequent PageLoad I rebind the RadGrid. But shortly afterwards I get a JScript error message from the following Telerik function:

function WebForm_CallbackComplete() {
    for (i = 0; i < __pendingCallbacks.length; i++) {
        callbackObject = __pendingCallbacks[i];
        if (callbackObject && callbackObject.xmlRequest && (callbackObject.xmlRequest.readyState == 4)) {
            WebForm_ExecuteCallback(callbackObject);
            if (!__pendingCallbacks[i].async) {
                __synchronousCallBackIndex = -1;
            }
            __pendingCallbacks[i] = null;
            var callbackFrameID = "__CALLBACKFRAME" + i;
            var xmlRequestFrame = document.getElementById(callbackFrameID);
            if (xmlRequestFrame) {
                xmlRequestFrame.parentNode.removeChild(xmlRequestFrame);
            }
        }
    }
}

In this function, the line:

            if (!__pendingCallbacks[i].async) {

is giving an error message because i = 0 and __pendingCallbacks[0] is null, so of course __pendingCallbacks[0].async "is null or not an object".

I don't understand all the details of this function (presumably the call to WebForm_ExecuteCallback(callbackObject) has somehow set __pendingCallbacks[i] to null?), but it looks to me as if the error could be avoided by simply replacing that line of code by:

            if (__pendingCallbacks[i] && !__pendingCallbacks[i].async) {

Does this look reasonable and if so how can I best make the change?

Ben
Top achievements
Rank 1
 answered on 07 Jul 2008
1 answer
192 views
Hello.

I am trying to get a CompareValidator to work with a RadDatePicker.  I found a recent posting from someone having a similar problem (http://www.telerik.com/community/forums/thread/b311D-bebcac.aspx).  The author then links to this forum posting (http://www.telerik.com/community/forums/thread/b311D-bbagac.aspx) using  a CustomValidator with some client-side javascript.  This solution wouldn't work for me, because I will have multiple date pickers on a page at a time.

Is there any way to get the CompareValidator to work with the RadDatePicker?  I would like to use the DataTypeCheck functionality of the CompareValidator, and not compare it to another control.

Thanks.
Vlad
Telerik team
 answered on 07 Jul 2008
4 answers
271 views
hi telerik,

  I am using a radgrid, and i want to display all the column values to various text boxes and combo boxes while selecting a row from rad grid.
i am using a gridbutton column ( select ) to select the row.
can you tel me which is the fatest method to get the selected row vaules
and how ..? ( can you provide any example )
( if i dont want to use any javascript function )

expecting reply asap.
regards
kks
Mike
Top achievements
Rank 1
 answered on 07 Jul 2008
1 answer
166 views
How can I make the textbox be a password textbox in a radprompt

/Anders
Svetlina Anati
Telerik team
 answered on 07 Jul 2008
1 answer
111 views
Hi,

I have a RadToolTip which has been working well, but I have just upgraded to the latest release.  In Firefox all works well, but in IE 7 the tool tip appears to be semi transparent and is behind some of the page elements. 

There is a form within this tool tip which the user can add some free text.  Again this works in Firefox but not in IE.

I'm using the Inox skin.  Tool tip seems to be working ok on other pages so not clear what it could be.  One difference is that I am using IsClientId=true

Has anyone come across this?

Thanks,

Olly

--
Snippet:

 <telerik:RadToolTip runat="server" ID="RadToolTip1" TargetControlID="link2"  ManualClose="true" ShowEvent="OnClick" IsClientID="true" RelativeTo="Element" Position="TopRight"
                                    Skin="Inox">
Oliver
Top achievements
Rank 1
 answered on 07 Jul 2008
1 answer
101 views
I'm using the RadColorPicker in DotNetNuke.  For some reason the palette is wrapping the last two boxes to the next line.  Please see this image: http://dlparker.googlepages.com/colorpaletteProblem.jpg

Here are my settings:
<telerik:RadColorPicker ShowIcon="true" ID="RadColorPicker1" runat="server" OnClientColorChange="ColorChange"/>

I tried changing the width of the control to wider, but that just makes the boxes grow wider.  I tried changing the "Columns" to 20 but that didn't work either. 

Please advise.




Svetlina Anati
Telerik team
 answered on 07 Jul 2008
1 answer
109 views
Hi

One more question. When I click on a time slot in moth view, how do I get the sceduler to display the all day view i.e. the same view as shown in dayview or when clicking the "show more" link when having more than  the stated number of appointments on a day.  Right now I get to the insert appointment form when performing the same action.

/kind regards

Per-Oskar Holmgren
Inka Interactive
Peter
Telerik team
 answered on 07 Jul 2008
2 answers
135 views
Hey,
The following code breaks tooltip positioning. This is due to setting 2 properties of the mainContainer:
margin: 0 auto (this centers it on screen)
and
position:relative (sometimes needed to be explicitly defined for abs. pos. of child elements)
if you remove pos:rel it works fine:

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Telerik Testing</title>
    <style type="text/css">
        body
        {
            background: gray;
        }
        #mainContainer
        {
            margin: 0 auto;
            width: 600px;
            background: #fff;
            height: 400px;
            padding: 10px;
            position: relative;
        }
        #content
        {
            float: left;
            width: 200px;
            height: 300px;
            border: 2px dotted green;
        }
        #content {
            margin:10px;
            padding:3px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="rsm" runat="server">
    </telerik:RadScriptManager>
    <div id="mainContainer">
        <h1>
            Telerik Tooltip Test with margin 0 auto</h1>
        <div id="content">
            this is a test for tooltip. this is a test for tooltip. this is a test for tooltip. this is a test for
            tooltip.
        </div>
        <div>
            main content of the site goes here. main content of the site goes here. main content of the site goes
            here. main content of the site goes here. main content of the site goes here. main content of the site
            goes here. main content of the site goes here. main content of the site goes here. main content of the
            site goes here. main content of the site goes here. main content of the site goes here. main content
            of the site goes here. main content of the site goes here. main content of the site goes here. main
            content of the site goes here. main content of the site goes here. main content of the site goes here.
            main content of the site goes here. main content of the site goes here. main content of the site goes
            here.
        </div>
        <telerik:RadToolTip ID="rtt" runat="server" TargetControlID="content" IsClientID="true" RelativeTo="Element"
            Position="MiddleRight">
            this is the content of the tooltip.
        </telerik:RadToolTip>
    </div>
    </form>
</body>
</html>


James
Top achievements
Rank 2
 answered on 07 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?