Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
259 views
Hi I am using RadPanelBar and creating the HeaderTemplate dynamically and bind the data to it which is coming from database. If you see the attached screenshot the Root item "Channel Queue" has some child panel items and I want on click of header it should show all child items and if I click the header again it should collapse. Is it possible ?

Now if I click the header for first time it is getting expanded and but on click of root panel it is not getting collapse. But it is getting collapsed only when i clicked other root items like (Case Identifier, Compliance or 2nd Level).

Can we achieve this functionality either by using java script / code behind ? 

Regards,
Nishith
Kate
Telerik team
 answered on 20 Oct 2011
0 answers
237 views
Hi,

I am using RadAsyncUpload for multiple file upload, now what i am looking for that somehow if i can access RadAsyncUpload at client side and convert all the upload files in one binary array object so that this binary array object can be passed to WCF method as input paramete that is calling from my javascript.

So What i am looking for is like below sample code
   var Radfile_uploader = document.getElementById(file_uploader_name);
var file_content = new Array();
for (i=0;i<=file_uploader.files.count -1;i++)
{
    var file_content = file_uploader.files[i].getAsBinary();
}

than i can pass this file_content to my WCF service as string.

Can anyone please tell me how to do for RadAsyncUpload in javascript ?

Thanks,
--Jai
Jai
Top achievements
Rank 1
 asked on 20 Oct 2011
5 answers
185 views
Hello,
I'm experiencing a problem when trying to save/load RadScheduler control to/from Viewstate.
There is an error:


[SerializationException: Type 'Telerik.Web.UI.RadScheduler' in 'Telerik.Web.UI, Version=2009.2.701.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4' not marked as serializable.]
   System.Runtime.Serialization.FormatterServices.InternalGetSerializableMembers(RuntimeType type) +7733643
   System.Runtime.Serialization.FormatterServices.GetSerializableMembers(Type type, StreamingContext context) +258
   System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.InitMemberInfo() +111
   System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.InitSerialize(Object obj, ISurrogateSelector surrogateSelector, StreamingContext context, SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter, ObjectWriter objectWriter) +161
   System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.Serialize(Object obj, ISurrogateSelector surrogateSelector, StreamingContext context, SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter, ObjectWriter objectWriter) +51
   System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Serialize(Object graph, Header[] inHeaders, __BinaryWriter serWriter, Boolean fCheck) +410
   System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(Stream serializationStream, Object graph, Header[] headers, Boolean fCheck) +134
   System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(Stream serializationStream, Object graph) +13
   System.Web.UI.ObjectStateFormatter.SerializeValue(SerializerBinaryWriter writer, Object value) +845

[ArgumentException: Error serializing 'Telerik.Web.UI.RadScheduler'.]
   System.Web.UI.ObjectStateFormatter.SerializeValue(SerializerBinaryWriter writer, Object value) +3395
   System.Web.UI.ObjectStateFormatter.Serialize(Stream outputStream, Object stateGraph) +110
   System.Web.UI.ObjectStateFormatter.Serialize(Object stateGraph) +57
   System.Web.UI.ObjectStateFormatter.System.Web.UI.IStateFormatter.Serialize(Object state) +4
   System.Web.UI.Util.SerializeWithAssert(IStateFormatter formatter, Object stateGraph) +37
   System.Web.UI.HiddenFieldPageStatePersister.Save() +79
   System.Web.UI.Page.SavePageStateToPersistenceMedium(Object state) +105
   System.Web.UI.Page.SaveAllState() +236
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1099


Any ideas would be appreciated

Marek Witczak
thaya
Top achievements
Rank 1
 answered on 20 Oct 2011
1 answer
44 views
Hi,
I am having an issue getting the RadProgressArea to display when using a FB Post from a Canvas IFrame application.

I have a Facebook Canvas application that I wish to use to upload large image files with. The latest SDK from FB is 5.2. It offers
an event handler to provide progress feedback to enable update of a progress bar. The handler UploadProgressChanged provides
progress information back from the Post or PostAsync. I am using this handler to set the RadProgressBar primary/secondary variables.

The progress bar does not display at all.

I know that the event handler is being called and I also am able to get the progress bar to display when I just use a simple loop/count/sleep block as per the demo.

I notice from older posts that there has been an issue with Facebook and the RadProgressArea. Is there still issues/incompatibilites
between FB and the RadProgressArea.

Thanks in advance for your help
Baz
Peter Filipov
Telerik team
 answered on 20 Oct 2011
4 answers
141 views
Let's say that I have this text here exactly as it is typed into HTML view, I have only bolded the attribute value to distinguish the change that the Editor made automatically, the bolding is not in the original test:

<p name=pStySM1T008_TT>Enroll now,<br>PLUS use the special offer inside before January 14th!<br><br></p>

Now, the instant that I switch from HTML to Design and back to HTML, the text has changed to this:

<p name="pStySM1T008_TT">Enroll now,<br>PLUS use the special offer inside before January 14th!<br><br></p>

I have also made sure that this is reproducible in the Telerik Content Filters Demo here: http://demos.telerik.com/aspnet-ajax/editor/examples/builtincontentfilters/defaultcs.aspx

My first thought was to remove the ConvertToXhtml filter, but I have tried disabling all filters, as well as enabling various combinations of filters and I am still unable to prevent the quotes from automatically appearing around my attribute values. I absolutely do not want the Editor to make assumptions about how to treat or reformat my content.
Rumen
Telerik team
 answered on 20 Oct 2011
1 answer
88 views
Hi,

I need to get an array of the root nodes of my tree view, but when i try, the tree view is a divElement and the nodes indefined.
This is my code:
JS:
function deshabilitarNodos(treeView, args) {
    alert("Llegue");
    var tree = <%=RadTreeView2.ClientID %>
    alert (tree);
    var nodosPrincipales= tree.Nodes;
    alert(nodosPrincipales);  // This is indefined
}

ASP:
<telerik:RadTreeView ID="RadTreeView2" runat="server" Width="300px" 
            Height="900px" DataFieldID="Id" DataFieldParentID="Padre" 
            ImageUrlField ="Imagen" DataSourceID="ObjectDataSource1" 
            DataTextField="Nombre" DataValueField="Id" OnClientNodeExpanding="deshabilitarNodos" >


            <DataBindings>
                <telerik:RadTreeNodeBinding ImageUrlField="Imagen" Expanded="false" />
            </DataBindings>
        </telerik:RadTreeView>


        <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
            SelectMethod="cargarSegmentos" TypeName="PL.Util.cliente">
        </asp:ObjectDataSource>

Thanks.
Princy
Top achievements
Rank 2
 answered on 20 Oct 2011
2 answers
115 views
Hi!

I can add AppointmentContextMenus rows programmatically like this:

foreach (Resource resourceUser in RadScheduler1.Resources.GetResourcesByType("Employee"))
{
    string availEmployee = resourceUser.Text;
    RadMenuItem resourceItem = new RadMenuItem(availEmployee);
    resourceItem.Attributes["Key"] = resourceUser.Key.ToString();
    resourceItem.Value = "CommandAddAppointment";
    resourceItem.ImageUrl = "/i/Toolbar/Custom/personal.png";
    RadScheduler1.AppointmentContextMenus[0].Items.Add(resourceItem);
}

How can I put them into a submenu?
See my attached picture (a screen dump from Telerik Context Menu Demo), I want my list of employees to end up inside the "Categorize" menurow.

I'm using v.2011.2.915.40

Sincerely, Thomas
Thomas
Top achievements
Rank 1
 answered on 20 Oct 2011
2 answers
362 views
hi,
I added multiple file and I unable to get full file path in server side using RadAsyncUpload.
Its one of my urgent requirement Please help me on this.


Thanks & Regards
Manikandan Kumar
Dimitar Terziev
Telerik team
 answered on 20 Oct 2011
1 answer
126 views
Hello,

I have small question...

I have 4 appointments, all at the same time (from-, to-, hours), one slot.

What is the key to sorting these appointments in RadSchedulers or how I can it set up?

Thanks!
Lukasz Kalbarczyk
Top achievements
Rank 1
 answered on 20 Oct 2011
3 answers
142 views
As the thread title suggest when I have the AutoResizeHeight="true" property set on a RadEditor field and press the toggle full screen mode with content's height that exceeds the height of the screen, the scroll on the RadEditor does not appear.
If i do not have this property set the full screen works correctly. I can also replicate this on the online demo here

http://demos.telerik.com/aspnet-ajax/editor/examples/autoresizeheight/defaultcs.aspx

Any assistance would be appreciated.

 

Rumen
Telerik team
 answered on 20 Oct 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?