Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
62 views
I'm using radUpload control to build a page like gmail file upload, I open a display:none radUpload control using following code:

<telerik:RadUpload ID="RadUpload1" Runat="server"   OnClientAdded="onClientAdded" ControlObjectsVisibility="None" Localization-Select="abcd"></telerik:RadUpload><br><br><script type="text/javascript"><br>    var $fileInput;<br>    function onClientAdded(sender, args) {<br>        $fileInput = $telerik.$(args._fileInputField);<br>    }<br>    function OpenDialog() {<br>        $fileInput.click();<br>        uploadTimer();<br>    }<br> <br>    </script>



this is my UploadTimer function:

           function uploadTimer() {<br>               try {<br>                   var t = setTimeout("uploadTimer()", 500);<br>                   //var v = $("#RadUpload1").val();<br><br>                   var upload = $find("<%= RadUpload1.ClientID %>");<br>                   value = upload.getFileInputs()[0].value;<br><br>                   //IE?<br>                   if (navigator.userAgent.indexOf("MSIE") != -1) {<br>                       //if (value != '') {<br>                           $("#btnSubmit").click();<br>                       //}<br>                   }<br>                   else//non IE?<br>                   {<br>                       if (value != '') {<br>                           $("#btnSubmit").click();<br>                       }<br>                   }<br>               }<br>               catch (err) {<br><br>               }<br>           }<br><br>

I click on this button to display my radUpload, then a timer is called which calls a button server side click function save radUpload selected file to the server, but I have no file uploaded in IE, what is going wrong?

<input type="button" value="select file" style="font-family:Tahoma;" onclick="OpenDialog()" />

Plamen
Telerik team
 answered on 21 Sep 2012
1 answer
73 views
Is there a way to hold off on querying the server until the user has, for example, typed at least 3 or 4 characters? If you have a large resultset to query against, and the user types several characters, won't the control try to make a round trip to the server on each key stroke?
Kalina
Telerik team
 answered on 21 Sep 2012
3 answers
135 views
I am trying to use the RACB as a filter for a RadGrid column, I have almost got it working only once I have selected a token when the Grid filter fires the token disappears from the RACB. The Grid does filter to the selected item of the RACB but after filter there is no way of removing it as it is no longer there. I am using an Entity Data Source to populate the RACB.

I think I am missing a selected value on the RACB which doesnt exist.

<telerik:GridBoundColumn DataField="Customer" HeaderText="Customer" ReadOnly="true" >

 

<FilterTemplate>

 

<telerik:RadAutoCompleteBox runat="server" ID="RadAutoCompleteBox2" DataSourceID="EntityDataSource3" Filter="Contains" OnClientEntryAdded="entryAdded" AllowCustomToken="true"

 

DataTextField="Customer" DataValueField="Customer" InputType="Token">

 

</telerik:RadAutoCompleteBox>

 

<telerik:RadScriptBlock ID="RadScriptBlock3" runat="server">

<

 

 

script type="text/javascript">

 

function entryAdded(sender, eventArgs) {

 

var tableView = $find("<%# ((GridItem)Container).OwnerTableView.ClientID %>");

tableView.filter(

 

"Customer", eventArgs.get_entry().get_text(), "EqualTo");

}

</

 

 

script>

 

</telerik:RadScriptBlock>

 

</FilterTemplate>

 

</telerik:GridBoundColumn>

Kalina
Telerik team
 answered on 21 Sep 2012
2 answers
52 views

Hello,

I currently use ASP.NET Ajax Telerik.Web.UI_2011_2_712 for a Web Application hosted on WS2007 (32 bits)
My development workstation is an Xp (32bits).

I have to migrate to a new workstation with Window 7 (64bits). Knowing that the target platform is still WS2007 (32 bits).
Is there a specific ASP.NET Ajax Telerik.Web.UI_2011_2_712 for a 64 bits development workstation.
Regards
Bernard

Stéphane
Top achievements
Rank 1
 answered on 21 Sep 2012
4 answers
200 views
I have a split button in a grid.  When I click the split button the context menu shows.  When I click on the context menu the OnItemClick fires and I can get the context item selection.  But what I can't figure out how to do is get the datakey value for the radgrid row where I click the button.  If I select the row first I can get the datakey value via RowSelected or RowSelecting.  But niether of those events fire when I click on the split button because its OnClientClicked fires.  I'd like to get that value without having to select the row first.

<telerik:RadContextMenu ID="radCtxMenuActions" runat="server" CausesValidation="true" OnItemClick="radCtxMenuActions_ItemClick">
    <Items>
        <telerik:RadMenuItem Text="Option 1" />
        <telerik:RadMenuItem Text="Option 2" />
        <telerik:RadMenuItem Text="Option 3" />
    </Items>
</telerik:RadContextMenu>

protected void radCtxMenuActions_ItemClick(object sender, RadMenuEventArgs e)
{
 
    int id = Convert.ToInt32(Request.Form["radGridClickedRowValue"]);
 
    switch (e.Item.Text)
    {
           case "Option 1":
           // do action with id
            break;
    }
 
}


if (args.IsSplitButtonClick() || !sender.get_commandName())
{
     // get selected row here and save to hidden field so I can use it in RadContextMenu OnItemClick
     var id = ?????
     document.getElementById("radGridClickedRowValue").value = id;

    var currentLocation = $telerik.getLocation(sender.get_element());
    var contextMenu = $find("<%=radCtxMenuActions.ClientID%>");
    contextMenu.showAt(currentLocation.x, currentLocation.y + 22);
}
john81
Top achievements
Rank 1
 answered on 21 Sep 2012
1 answer
55 views
Hi friends,

I am having a scenario where I am using radtree more likely the windows explorer's folder tree view, and there are certain scenarios where I need to open up a new a new radtab OR even a browser tab.

I tried to dig this up in forums but all that I found at most places was a suggestion to use "SelectedNode.Selected=true;" That does work for the same page holding off the node selected,

but what if I do post back / open up a new rad tab / open up a new browser tab-window ?

In theory all these ways should be seems-less.

I have that rad-tree in the master page so I **should** be able to store and use it in the page_Load even in the master page's code behind - would you please post a code demonstrating this ?

Is it possible to use the session variables and retrieving the same on the other page, if so I'd like to request a demo for that.

Thanks
Plamen
Telerik team
 answered on 21 Sep 2012
2 answers
259 views
Hi friends,

I am having a scenario where I am using radtree more likely the windows explorer's folder tree view, and there are certain scenarios where I need to open up a new a new radtab OR even a browser tab.

I tried to dig this up in forums but all that I found at most places was a suggestion to use "SelectedNode.Selected=true;" That does work for the same page holding off the node selected,

but what if I do post back / open up a new rad tab / open up a new browser tab-window ?

In theory all these ways should be seems-less.

I have that rad-tree in the master page so I **should** be able to store and use it in the page_Load even in the master page's code behind - would you please post a code demonstrating this ?

Is it possible way may be to use the session variables and retrieving the same on the other page, if so I'd like to request a demo for that.

Thanks
Plamen
Telerik team
 answered on 21 Sep 2012
1 answer
44 views
Hi,
i tried your example Specific Tooltip Data Without LOD.
I created an Application with the same scenario. I used same javascript and code behind. Only difference i use scrolling in radgrid.
But every time i hover over the same row after the tooltip closed i get a javascript error.
Runtime Error in Microsoft JScript: The property `innerHTML` No value can be determined: the object is null or undefined
Hovering over a different row is no problem.
Please can someone help it is very urgent

Thanks

Marin Bratanov
Telerik team
 answered on 21 Sep 2012
2 answers
208 views
I have 2 controls on my page that both have a RadWindowManager and RadWindow, each with their specified settings. Through searching, it looks like you can designate the RadWindowManager via client side code, but I am unable to get it to work. The last read in RadWindowManager still keeps the settings for both.

Here is my first .ascx control.

<telerik:RadWindowManager ID="RadWindowManager1" runat="server"
    Behaviors="Close" Animation="Slide" Modal="True"
KeepInScreenBounds="True" AutoSize="True" Width="870px" Behavior="Close">
    <Windows>
        <telerik:RadWindow ID="PopUp" runat="server"
            NavigateUrl="/Controls/ProductPopUpPage.aspx?GUID="
            IconUrl="/Images/JJIcon16x16.jpg">
        </telerik:RadWindow>
    </Windows>
</telerik:RadWindowManager>
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server">
</telerik:RadAjaxLoadingPanel>
<script type="text/javascript">
    // RadWindow
    function ShowProductPopUp(ProductGuid) {
        var oManager = GetRadWindowManager("RadWindowManager1");
        oManager.open("/Controls/ProductPopUpPage.aspx?GUID="+ProductGuid, "PopUp");
    }
 
 
</script>


And my second .ascx control

<div style="padding-left: 10px;">
    <asp:DropDownList ID="OEDropDownList" Width="200" Font-Size="Medium" runat="server">
        <asp:ListItem> Create a New Order</asp:ListItem>
        <asp:ListItem> View Pending Orders</asp:ListItem>
        <asp:ListItem> View Previous Orders</asp:ListItem>
    </asp:DropDownList>
    <div style="float: right;">
        <asp:Button ID="CreateNewOrder" Text="Create New Order" OnClientClick="openWinContentTemplate(); return false;"
            runat="server" />
    </div>
</div>
<%--<telerik:RadScriptManager ID="RadScriptManager1" runat="server" /> Comment back in for single test page--%>
<telerik:RadWindowManager ID="CreateNewOrderWindowManager" runat="server"
    EnableShadow="True">
    <Windows>
        <telerik:RadWindow runat="server" ID="CreateNewOrderPopUpWindow" Modal="true"
            Width="350px" Height="150px" RestrictionZoneID="ContentTemplateZone"
            Animation="Fade" IconUrl="/Images/JJIcon16x16.jpg">
            <ContentTemplate>
                <asp:Panel ID="CreateNewOrderPanel" runat="server" Width="300px" Height="100px" BackColor="AliceBlue"
                    BorderWidth="1px">
                    <asp:Label ID="CreateNewOrderLabel" runat="server" Text="Enter Order Name" />
                    <asp:TextBox ID="CreateNewOrderAddTextBox" runat="server" Width="200px" Text="Enter Order Name" />
                    <asp:Button ID="CreateNewOrderAddButton" runat="server" Text="Create" />
                </asp:Panel>
            </ContentTemplate>
        </telerik:RadWindow>
    </Windows>
</telerik:RadWindowManager>
<script type="text/javascript">
 
    function openWinContentTemplate() {
        var oManager = GetRadWindowManager();
        oManager.open(null, "CreateNewOrderPopUpWindow");
 
 
 
    }
     
</script>

I've tried adding the RadWindowManager client ID into both with no success.


Geoff
Top achievements
Rank 1
 answered on 21 Sep 2012
8 answers
108 views
I'm using Telerik version 2012.1.411.40

I'm not using the transfer buttons to transfer the elements between the two lists, I have another function that calls the "transferToDestination" function of the listbox.(client side obviously)

When it's done transferring, all of the element attributes that I defined disappear. Is there something I'm missing?
Chris
Top achievements
Rank 1
 answered on 21 Sep 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?