Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
195 views
I've included a screenshot of my question...Please see the arrows.

If I enlarge the editor with the corner handle the space always remains.  If I decrease the editor with the corner handle down beyond a certain size, the gray remains the same while the editable region (white area) continues to decrease.

Is there any way I can decrease the gray area?

Thanks,
Joshua
Ianko
Telerik team
 answered on 02 Jun 2015
1 answer
97 views
How can I set mediaplayer to play at a certain time?

I've loaded an hour long clip and now I'm trying to set the time:

protected void RadTime_ItemSelected(object sender, DropDownListEventArgs e)
{
MediaPlayer.StartTime = double.Parse("10.00");
}
Viktor Tachev
Telerik team
 answered on 02 Jun 2015
2 answers
182 views
I tried to export the data to excel using radgrid option, it's working fine on single export. but I tried to export in for each loop, last file data's only exported. Is possible to export in loop?
protected void btnexport_Click(object sender, EventArgs e)
{
string selectedimportfilesid = "";
IList<radlistboxitem> collection = ListBoxFileNames.CheckedItems;
string selectedfilename = "";
DataTable dtselect = new DataTable();
foreach (RadListBoxItem item in collection)
{
Label filename = (Label)item.FindControl("lblfilename");
Label Importfileid = (Label)item.FindControl("lblimportfileid");
selectedfilename = filename.Text;
selectedimportfilesid = Importfileid.Text;
dtselect = selectedexportfilelist(selectedimportfilesid);
testgrid.DataSource = dtselect;
testgrid.DataBind();
testgrid.ExportSettings.IgnorePaging = true;
testgrid.ExportSettings.FileName = selectedfilename
testgrid.ExportSettings.OpenInNewWindow = true;
testgrid.ExportSettings.Excel.FileExtension = "xls";
testgrid.MasterTableView.ExportToExcel();
}
}
keerthivasan
Top achievements
Rank 1
 answered on 02 Jun 2015
4 answers
171 views

We are using RadPivotGrid and was working fine until we change the sessionState to SQLServer. And now getting the error:

Unable to serialize the session state. In 'StateServer' and 'SQLServer' mode, ASP.NET will serialize the session state objects, and as a result non-serializable objects or MarshalByRef objects are not permitted. The same restriction applies if similar serialization is done by the custom session state store in 'Custom' mode.

 Stack Trace:

 [SerializationException: Type 'Telerik.Web.UI.PivotGrid.Core.ViewModels.PivotViewModel' in Assembly 'Telerik.Web.UI, Version=2015.1.401.45, Culture=neutral, PublicKeyToken=121fae78165ba3d4' is not marked as serializable.]
System.Runtime.Serialization.FormatterServices.InternalGetSerializableMembers(RuntimeType type) +14052545
System.Runtime.Serialization.FormatterServices.GetSerializableMembers(Type type, StreamingContext context) +408
System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.InitMemberInfo() +420
System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.InitSerialize(Object obj, ISurrogateSelector surrogateSelector, StreamingContext context, SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter, ObjectWriter objectWriter, SerializationBinder binder) +532
System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.Serialize(Object obj, ISurrogateSelector surrogateSelector, StreamingContext context, SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter, ObjectWriter objectWriter, SerializationBinder binder) +270
System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Serialize(Object graph, Header[] inHeaders, __BinaryWriter serWriter, Boolean fCheck) +814
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(Stream serializationStream, Object graph, Header[] headers, Boolean fCheck) +322
System.Web.Util.AltSerialization.WriteValueToStream(Object value, BinaryWriter writer) +1487

[HttpException (0x80004005): Unable to serialize the session state. In 'StateServer' and 'SQLServer' mode, ASP.NET will serialize the session state objects, and as a result non-serializable objects or MarshalByRef objects are not permitted. The same restriction applies if similar serialization is done by the custom session state store in 'Custom' mode.]
System.Web.Util.AltSerialization.WriteValueToStream(Object value, BinaryWriter writer) +2252815
System.Web.SessionState.SessionStateItemCollection.WriteValueToStreamWithAssert(Object value, BinaryWriter writer) +49
System.Web.SessionState.SessionStateItemCollection.Serialize(BinaryWriter writer) +729
System.Web.SessionState.SessionStateUtility.Serialize(SessionStateStoreData item, Stream stream) +336
System.Web.SessionState.SessionStateUtility.SerializeStoreData(SessionStateStoreData item, Int32 initialStreamSize, Byte[]& buf, Int32& length, Boolean compressionEnabled) +99
System.Web.SessionState.SqlSessionStateStore.SetAndReleaseItemExclusive(HttpContext context, String id, SessionStateStoreData item, Object lockId, Boolean newItem) +3538988
System.Web.SessionState.SessionStateModule.OnReleaseState(Object source, EventArgs eventArgs) +1021
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +165

 

Francis
Top achievements
Rank 1
 answered on 02 Jun 2015
4 answers
139 views

Hi,

I have a diagramming application which uses a RadToolBar to set attributes such as Bold, Italic and Underline - pretty standard stuff.

The RadToolBarButton's need to serve a dual purpose:

  1. To set the attribute (e.g., Bold) of the selected object
  2. To indicate the attribute setting for the selected object

I am using the check() method of the item to "highlight" it if the selected shape has that attribute set.

Unfortunately it seems that only 1 item can be checked at a time.

How do I go about checking/selecting/highlighting multiple toolbarbutton's?

Thanks in advance for any suggestion and code snippets.

Jim

 

jlj30
Top achievements
Rank 2
 answered on 01 Jun 2015
1 answer
310 views
Hello,

We create a RadFlowDocument with a table of contents and some fields (page, numpages). We want to convert it to PDF, but the table of contents and fields are not updated in the PDF, even though I have executed the UpdateFields method before. How can I proceed?

Thank you for your help!
Petya
Telerik team
 answered on 01 Jun 2015
1 answer
627 views

Hai, i have a CommandItemTemplate at my grid, and i want to add CommandItem Refresh.

i've done it like this:

<MasterTableView AutoGenerateColumns="False" DataKeyNames="MemoID" ClientDataKeyNames="MemoID" Width="100%" CommandItemDisplay="Top" PageSize="5" NoMasterRecordsText="No Record Selected">
 
  <CommandItemTemplate>
  <a href="#" onclick="return ShowInsertFormSender();">Add New Memo</a>
  </CommandItemTemplate>
 <CommandItemSettings ShowRefreshButton="true" />
</MasterTableView>

 

but it doesn't show the Refresh Button. How to show it?

Thank you

​

Konstantin Dikov
Telerik team
 answered on 01 Jun 2015
1 answer
258 views

Hi,

My wizard uses postback on ActiveStepChanged, whenever Next is clicked then the cancel button appears and disappears during the postback. If I ajax the control then this seems to work, is it unusual to do this?:

 

 

<telerik:AjaxSetting AjaxControlID="RadWizard1">
    <UpdatedControls>
        <telerik:AjaxUpdatedControl ControlID="RadWizard1" UpdatePanelHeight="100%" LoadingPanelID="ALP1" UpdatePanelCssClass="" />
    </UpdatedControls>
</telerik:AjaxSetting>

 

The problem is that this only works when the wizard has only text, as soon as I have grid's etc. on wizard steps when I get ajax errors. Removing the code above  makes the errors disappear.

Ivan Danchev
Telerik team
 answered on 01 Jun 2015
2 answers
319 views

Hi,

If the user clicks next, is there a way to cancel the move to the next tab in ActiveStepChange?  or even just to set the active step back to the previous step.

Al
Top achievements
Rank 1
Iron
Iron
Iron
 answered on 01 Jun 2015
3 answers
223 views
Hello i have been using Telerik rad media player, How do i unhide/ visible= false the media player controls? but i want to play the video when its clicked but not to show the controls.
Maria Ilieva
Telerik team
 answered on 01 Jun 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?