Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
118 views
Hi,

The drop down of the combo is hidden behind the menu.

Can I bring it to the front?
STEVEN
Top achievements
Rank 1
 answered on 02 Aug 2011
1 answer
105 views
I would like to have a two radupload controls and having one uploads thumbnail and other one large image.
Is it possible and how?

P.S> i would like it upload both images into the same folder e.g. Images and then just update the paths in the database.

Thanks
Jayesh Goyani
Top achievements
Rank 2
 answered on 02 Aug 2011
1 answer
52 views
Hai,

I have created a scheduler and Grid in which the grid drop is enabled.
When the Item is created on the drop of the grid the Appointments are not possible to "Resize or Repostion by Dragging".

Only these actions are permitted only if I do a page refresh or the postback.

What could be the reason.

Any help.


Vinu
Plamen
Telerik team
 answered on 02 Aug 2011
1 answer
143 views
Hello everyone!

I pasted in the Radeditor content a <span> that contains a table and script code, I need select the Table in the design mode and press key "supr" to delete this <span> and its content.

I tried with this code that I found in the forums of this page, but it has a different behaviors in all browsers. 

<span contenteditable="false" unselectable="on" style="-moz-user-select: none;-webkit-user-select: none;
;"
>
   <script type="text/javascript">
        function example(){
        }
    </script>
<table>
    <tbody>
        <tr>
            <td>test</td>
        </tr>
    </tbody>
</table>
</span>

  • Internet explorer: works very fine, the <span> with its content is deleted.
  • Chrome: with this code I can't do anymore in the content of the Radeditor.
  • Firefox: Only selects the table, but I can't delete the table with the key "supr".

I hope you can help me with this.

Best Regards!
Rumen
Telerik team
 answered on 02 Aug 2011
3 answers
187 views
Hi
I'm using a RadTimePicker in an edit form of the grid. I just want to hide the control from server side and show/hide the control from client side.
client side show/ hide is working with following code.

function checkboxClick(chkBox, timePicker) {
 var chkBox1 = document.getElementById(chkBox);
 var timePicker1= $find(timePicker);
 if (chkBox1 .checked) {
  timePicker1.set_visible(true);
 }
 else {
  timePicker1.set_visible(false);
 }
}

I can hide the RadTimePicker from server side usnig the following code but I can't show/hide the control from above javascript code.
timePicker.Style.Add("visibility", "hidden");

Please help!!

Thanks!

 

Maria Ilieva
Telerik team
 answered on 02 Aug 2011
5 answers
4.4K+ views
Hii

We are using RAD Grid, RAD Treeview, RAD Dock and bunch of other controls on a page. Based on node clicked on the treeview, the result in the grid changes. The entire page was working fine in .Net 3.5 perfectly fine. But when we migrated the application to .Net 4.0, the page started shouting. 
Initially it gave JS errors as follow: 

  • Error: ASP.NET Ajax client-side framework failed to load.
  • Error: 'Sys' is undefined
  • Error: 'Telerik' is undefined

And even page was not rendered correctly. It was completely messed up.
After this we added

<add name="Telerik.Web.UI.WebResource"  path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" />

entry in web.config file under <handlers> section. After adding it, above errors are gone. 
But now it is throwing following JS error when I click on the treenode. 

Error: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500

Debugging shows following error which we caught in Application_Error : 
A potentially dangerous Request.Form value was detected from the client (ctl00$maincontent$dockSearchCriteria$C$SearchAttributeRules1$hidRetVal="<Groups>
<Group>
...").
A potentially dangerous Request.Form value was detected from the client (ctl00$maincontent$dockSearchCriteria$C$SearchAttributeRules1$hidRetVal="<Groups>
<Group>
...").
A potentially dangerous Request.Form value was detected from the client (ctl00$maincontent$dockSearchCriteria$C$SearchAttributeRules1$hidRetVal="<Groups>
<Group>
...").
A potentially dangerous Request.Form value was detected from the client (ctl00$maincontent$dockSearchCriteria$C$SearchAttributeRules1$hidRetVal="<Groups>
<Group>
...").

A potentially dangerous Request.Form value was detected from the client (ctl00$maincontent$dockSearchCriteria$C$SearchAttributeRules1$hidRetVal="<Groups>
<Group>
...").
<Group>
...").
<Group>
...").
<Group>
...").
<Group>
...").
<Group>...").

I am not able to understand why this error is coming and how to get rid of it..
Any help appreciated.
Slav
Telerik team
 answered on 02 Aug 2011
1 answer
68 views
My project uses a heavy collection of RadControls including the AJAX, Menu, Panel, Tabs, etc.  They are literally embedded into every corner of the application.  However, they no longer work when deployed to the Azure cloud.  Everything works fine on localhost.  However, once deployed, all of the controls render (see screenshot) but they aren't functional.  For example:

1) The menu won't pull down to show sub-items
2) The panel won't expand to show the collection of items
3) The tab won't let you move between tabs

There are more examples but in essence, they are all broken in Azure.  They render but lose 100% of functionality.  Any ideas on how to fix?  
Helen
Telerik team
 answered on 02 Aug 2011
1 answer
89 views
Hi,

Will you please let me know if the below code uses flash to upload the file? tats coz I mainly want a method to upload files without flash or silverlight..

I did not get ny samples for FileApi or IFrame.. so was just thinking if I can use this..


.aspx 


<telerik:RadStyleSheetManager id="RadStyleSheetManager1" runat="server" />
</head>
<body>
    <form id="form1" runat="server">
<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
<Scripts>
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
</Scripts>
</telerik:RadScriptManager>

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" />

<div>

     <telerik:RadAsyncUpload ID="RadAsyncUpload1" AutoAddFileInputs="true"  TargetFolder="Files" OnFileUploaded="RadAsyncUpload1_FileUploaded" MultipleFileSelection="Automatic" runat="server">
         
         </telerik:RadAsyncUpload>

        <asp:Button ID="Button1" runat="server" Text="Upload" OnClick="UploadFiles" />

</div>
</form>
</body>
</html>




.aspx.cs

public partial class Default : System.Web.UI.Page 
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }


    protected void RadAsyncUpload1_FileUploaded(object sender, Telerik.Web.UI.FileUploadedEventArgs e)
    {
        // e.IsValid = !CheckUploadedFileValidity();
        if (e.IsValid)
        {
            byte[] buffer = new byte[e.File.ContentLength];
            using (Stream str = e.File.InputStream)
            {
                str.Read(buffer, 0, e.File.ContentLength);

            }
        }
    }


    protected void UploadFiles(object sender, EventArgs e)
    {
// code
    }
}


Helen
Telerik team
 answered on 02 Aug 2011
1 answer
69 views

I created a RadGrid programmatically, and i use the following lines:

 

 

     RadGrid2.NeedDataSource += new GridNeedDataSourceEventHandler(RadGrid2_NeedDataSource);

 

instead of  --->   

RadGrid2.DataSourceID = "SqlDataSource1";

 

 

 

i want to create a GridTableView like the above line

 


GridTableView
tableViewOrders = new GridTableView(RadGrid2);

 

¿¿ what should be the declaration to replace ----> tableViewOrders.DataSourceID = "SqlDataSource2"; ???

 

i think somesthing like --->

 

tableViewOrders.NestedViewSettings.DataSourceID += new GridNestedViewSettings(RadGrid3_NeedDataSource);

 

 

but it is incorrect.



tableViewOrders.DataKeyNames =

new string[] { "idCodigos" };

 

 

GridRelationFields relationFields = new GridRelationFields();

 

relationFields.MasterKeyField =

"idCodigo";

 

relationFields.DetailKeyField =

"idCodigoSubGrupo";

 

tableViewOrders.ParentTableRelation.Add(relationFields);

RadGrid2.MasterTableView.DetailTables.Add(tableViewOrders);

 


protected

 

void RadGrid2_NeedDataSource(object source, GridNeedDataSourceEventArgs e)

 

{

 

 

ConnectionStringSettings connectionString = ConfigurationManager.ConnectionStrings["NorthwindConnectionString"];

 

_connection =

DbProviderFactories.GetFactory(connectionString.ProviderName).CreateConnection();

 

_connection.ConnectionString = connectionString.ConnectionString;

 

IDataReader reader;

 

 

using (IDbCommand command = _connection.CreateCommand())

 

{

command.CommandText =

"SpName";

 

command.CommandType =

CommandType.StoredProcedure;

 

_connection.Open();

reader = command.ExecuteReader();

}

((

RadGrid)source).DataSource = reader;

 

}

 

protected void RadGrid2_DataBound(object sender, EventArgs e)

 

{

 

if (_connection.State == ConnectionState.Open)

 

{

_connection.Close();

}

}


thanks in advance

Cristian.-

Tsvetina
Telerik team
 answered on 02 Aug 2011
7 answers
171 views
Hi:

I have just gone live on an application that ports data from a legacy system.  I am getting an exception on editing existing data.  Essentially, the case is different.  So, SQL is happy with the foreign key data, but the RadComboBox is not and causes an exception.  Any suggestions?

Phil
Dimitar Terziev
Telerik team
 answered on 02 Aug 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?