Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
215 views
This is kind of an odd problem. I have two environments. Both running SharePoint 2010. Same software and configuration on both. In dev my combobox works fine but once it's deployed to test the combobox acts like it is disabled. The combobox is in a radgrid and there is a javascript error when the row is expanded that the combobox is in. The error is "TypeError: h is not a constructor
https://site.com/ScriptResource.axd?d=W3VnxZIztGbCDKsquF9usLpO8arHyM1n_yidsMg0IaOQVKbSAKbUEBJDrGFGi4-QgmAjM7HywJgZHYjTu0Tn5eaeE4RtTKrP8BaZjX7dJkBEMXpkn7vpFGr21ix6C_gWer2-t6UM1llpQNJr7X0qxaAfP7A1&t=ffffffffb868b5f4
Line 5" Now this doesn't tell me much but I believe it is coming from the MicrosoftAjax.js that is included with the Telerik controls. We are currently on version 2012.1.301.35. Does anyone have any ideas on what could be causing this? 
Plamen
Telerik team
 answered on 10 Aug 2012
3 answers
138 views
Does anyone know if we can filter dropdownlist in the resourcetype?  I was able to create dropdownlists with values but can't filter them.  I'm not sure if Telerik scheduler have that feature.
I need to be able to filter the selections from a dropdownlist in the radscheduler in the resource type collection.  Please help.

<

 

 

telerik:RadScheduler ID="RadScheduler1" runat="server"

 

 

 

DataDescriptionField="Description" DataEndField="End_Date" DataKeyField="ID"

 

 

 

DataSourceID="SqlDataSource1" DataStartField="Start_Date"

 

 

 

DataSubjectField="Subject" EnableDescriptionField="True">

 

 

 

<ResourceTypes>

 

 

 

<telerik:ResourceType DataSourceID="SqlDataProgramtype"

 

 

 

ForeignKeyField="Programs" KeyField="Programs" Name="Programtype"

 

 

 

TextField="Programs" />

 

 

 

<telerik:ResourceType DataSourceID="SqlDatastaff" ForeignKeyField="Users"

 

 

 

KeyField="Full_Name" Name="Staff" TextField="Full_Name" />

 

 

 

<telerik:ResourceType DataSourceID="SqlDataRooms" ForeignKeyField="ROOMS"

 

 

 

KeyField="ROOMNAME" Name="Rooms" TextField="ROOMNAME" />

 

 

 

</ResourceTypes>

 

<

 

 

WebServiceSettings>

 

<

 

 

ODataSettings InitialContainerName=""></ODataSettings>

 

</

 

 

WebServiceSettings>

 

 

 

</telerik:RadScheduler>

 

Ivana
Telerik team
 answered on 10 Aug 2012
1 answer
76 views
Hi, I was testing the upload on your site and it worked fine in Motzilla, Chrome and Firefox but did not function properly in IE. I am using IE 8 on Windows 7 and the only thing I see is the Check Box, Gray Text box , and a remove button but no "Select button". However, when I click on the gray box I get the dialog with my files and if I select a file and click open nothing happens. In the other browsers the file name would appear in the box but not in IE. I tried in compatability mode as well but get the same results.

http://demos.telerik.com/aspnet-ajax/upload/examples/customizingraduploadui/defaultcs.aspx?RadUrid=c5d68f5f-7e5d-488b-a2d1-8b4fa981e412

Thanks,
Paul
Plamen
Telerik team
 answered on 10 Aug 2012
1 answer
426 views
Hi everyone,
I'm trying to do something I thought was quite simple. I have a RadGrid bound to a webservice (working fine!). For different reasons, I need a custom edit command for the grid. With Serverside-binding this is easily achieved using a simple GridButtonColumn and a custom CommandName. On the server I was used to get the edited row via 
Dim dataItem As GridDataItem = DirectCast(e.Item, GridDataItem)
dataItem.GetDataKeyValue("id")

However, due to the client-side binding to a webservice, that is no longer possible. So I thought I'd get it client-side instead and send it to the server separately (using RadAjaxManager for instance). However, the client-side OnCommand event does not seem to offer any way of getting a dataKeyValue, dataItem or even rowIndex of the gridRow that was clicked. I tried something like this:
function OnCommand(sender, args) {
     if (args.get_commandName() == "Edit1") {
          var CommandArg = args.getDataKeyValue("id");
     }
}

Obviously to no avail...

I guess my question boils down to:
Is there any practical way of getting a reference to the dataItem or even a rowIndex to the server on ItemCommand when the RadGrid is bound to a webservice?

Thanks in advance!
Tsvetoslav
Telerik team
 answered on 10 Aug 2012
2 answers
242 views
I've been reading the posts on how you get the radgrid to fill it's container to 100% som that when the user expands the browser window, the grid expands with it. The problem I'm getting is that when set to height=100%, the grid is outside the page. If I make it smaller so it's all visible, then the visible margin to the bottom of the window shrinks when I decrease the window height. Fine, it's percent, right? But you would think the radgrid would stay withing the window, which it doesn't.

When all parent containers and the grid is set to 100%, the grid displays larger than the window. It's contained in a pageview, in a tabstrip.
I believe that the height of 100% set on the grid is somehow not taking the fixed header into account or maybe my user control menu at the very top is offseting the container?

I would appreciate help. My desired look is of true Height = Auto, where the grid would keep a fixed distance from the bottom of the window.

Robert
Top achievements
Rank 1
 answered on 10 Aug 2012
1 answer
84 views
Hello

I would like to check whether Telerik 2009.2.701.20 supports IE 9. Currently we are using Telerik 2009.2.701.20 with IE 7 and 8. We would like upgrade to IE 9.

Please check and let me know the feasibility. Also let me know the list of compatible browsers with their version for above mentioned Telerik release.

Thanks
Prasanna
BabaYa
Top achievements
Rank 1
 answered on 10 Aug 2012
3 answers
149 views
I need do the radwindows that i attach in the second file
I set height = 150px but does not work.

How I can do this??
rdmptn
Top achievements
Rank 1
 answered on 10 Aug 2012
3 answers
144 views
Hello,

I'm trying to change the text in the filter control in RadGrid,such as "NoFilter","Contains","DoesNotContain","StartWith" and so on.
How can I change these texts?
And I needn't change the functions.

Thank you.
Radu
Top achievements
Rank 1
 answered on 10 Aug 2012
1 answer
226 views
Hi Telerik Team,

I have one requirement in the grid view while editing/deleting a record in the database. Let me explain you my scenario.

1. When user clicks on edit, they are allowed to submit their changes.
2. On click of update, it will validate the updated values and check for some validation. If the validation passes, then it will ask for some confirmation from user.
3. On click of Ok, the changes will be committed to database and on click of cancel the update will be cancelled.

I have attached a flow chart for the same. It would be really great if you can help me out with the sample code snippet.

Thanks,
Nish 
Eyup
Telerik team
 answered on 10 Aug 2012
1 answer
406 views
I just can't seem to get renaming a file during upload to work. I have tried to follow all the examples including the one here:http://www.telerik.com/community/forums/aspnet-ajax/upload/renaming-file-with-custom-progress.aspx

Here is the code I currently have:

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="radup.aspx.vb" Inherits="radup" %>
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
 
        <telerik:radcodeblock id="RadCodeBlock1" runat="server">
 
        <script type="text/javascript">
 
            var $ = $telerik.$;
 
            function onClientFileUploaded(radAsyncUpload, args) {
                var $row = $(args.get_row());
                var inputName = radAsyncUpload.getAdditionalFieldID("TextBox");
                var inputType = "text";
                var inputID = inputName;
                var input = createInput(inputType, inputID, inputName);
                var label = createLabel(inputID);
                $row.append("<br/>");
                $row.append(label);
                $row.append(input);
            }
 
            function createInput(inputType, inputID, inputName) {
                var input = '<input type="' + inputType + '" id="' + inputID + '" name="' + inputName + '" />';
                return input;
            }
 
            function createLabel(forArrt) {
                var label = '<label for=' + forArrt + '>File info: </label>';
                return label;
            }
 
        </script>
 
    </telerik:radcodeblock>
     
    <div>
     
        <br />
         
        <telerik:RadAsyncUpload runat="server" id="RadAsyncUpload1" TargetFolder="~/upload" OnClientFileUploaded="onClientFileUploaded"></telerik:RadAsyncUpload>
         
        <br />
        <asp:Button ID="Button1" runat="server" Text="Button" />
        <br />
     
    </div>
    <telerik:RadScriptManager ID="RadScriptManager1" Runat="server">
    </telerik:RadScriptManager>
    </form>
</body>
</html>


Imports System
Imports System.IO
Imports System.Collections
Imports System.Data
Imports System.Data.SqlClient
Imports Telerik.Web.UI
 
Partial Class radup
    Inherits System.Web.UI.Page
 
    Protected Sub Button1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Button1.Click
 
        For Each f As UploadedFile In RadAsyncUpload1.UploadedFiles
            Dim fileName As String = Guid.NewGuid().ToString + f.GetName()
            Dim title As String = f.GetFieldValue("TextBox")
 
            f.SaveAs(fileName & ".XML", True)
        Next
    End Sub
 
End Class

Here is my error:

Could not find file 'C:\Websites\edibletastyprints\htdocs\App_Data\RadUploadTemp\0bbbftff.g4z'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IO.FileNotFoundException: Could not find file 'C:\Websites\edibletastyprints\htdocs\App_Data\RadUploadTemp\0bbbftff.g4z'.

Source Error:

Line 15:             Dim title As String = f.GetFieldValue("TextBox")
Line 16:
Line 17:             f.SaveAs(fileName & ".XML", True)
Line 18:             Response.Redirect("uploadsuccess.aspx?fileName=" & fileName & "&title=" & title)
Line 19:         Next
 

Source File: C:\Websites\edibletastyprints\htdocs\radup.aspx.vb    Line: 17

Stack Trace:

[FileNotFoundException: Could not find file 'C:\Websites\edibletastyprints\htdocs\App_Data\RadUploadTemp\0bbbftff.g4z'.]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +9718655
   System.IO.File.Move(String sourceFileName, String destFileName) +239
   Telerik.Web.UI.AsyncUploadedFile.SaveAs(String fileName, Boolean overwrite) +50
   radup.Button1_Click(Object sender, EventArgs e) in C:\Websites\edibletastyprints\htdocs\radup.aspx.vb:17
   System.Web.UI.WebControls.Button.OnClick(EventArgs e) +118
   System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +112
   System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5563

 
As always, any help much appreciated.

Peter Filipov
Telerik team
 answered on 10 Aug 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?