Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
185 views

I am using Radeditor with track changes  in aspx page.

but my project implementing in MVC so i want to implement Rad Editor with Track changes in mvc.

is it possible?

Ianko
Telerik team
 answered on 02 Jun 2015
1 answer
169 views

Hello,

I have a RadSplitter with 2 RadPanes

In Left pane i am loading TreeView List. In RightPane i am loading Radgrid with 10,000 rows.

Each page load, about 5-7 seconds RadSplitter shows small then expanding(Please see attachment) to full screen.

<style type="text/css">
html, body, form 
       
           height: 100%; 
           margin: 0px; 
           padding: 0px; 
           overflow: hidden; 
       }
</style>

<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
       <script type="text/jscript">
          function pageLoad()
            
                var splitter = $find("<%=RadSplitter1.ClientID%>");
                splitter.clientHeight = (screen.availHeight - 5) + "px";
            }

 

       var minWidth = 1000;
           var minHeight = 600;

           window.onresize = ResizeSplitter;

           function ResizeSplitter() {
               var splitter = $find("<%=RadSplitter1.ClientID %>");
               if (!splitter) return;
               var viewport = $telerik.getViewPortSize();
               var widthToSet = viewport.width > 1000 ? viewport.width : 1000;
               var heightToSet = viewport.height > 600 ? viewport.height : 600;
               splitter.set_width(widthToSet);
               splitter.set_height(heightToSet);
               var wrapper = $get("ParentDivElement");
           }

       </script>
</telerik:RadCodeBlock>

 <div id="ParentDivElement" style="height: 100%;"> 
 
<telerik:RadSplitter ID="RadSplitter1" runat="server" Height="100%" Width="100%" LiveResize="true" OnClientLoad="ResizeSplitter">
 
           <telerik:RadPane ID="TreePane" runat="server" Width="25%">
 
            <telerik:RadTreeView ID="RadTreeMatt" runat="server"
                   style="white-space: normal;" Skin="Windows7" Font-Size="12pt" CheckBoxes="True"
                   TriStateCheckBoxes="true" CheckChildNodes="true"
                   onnodeexpand="RadTreeMatt_NodeExpand">
                
            </telerik:RadTreeView>
 
           </telerik:RadPane>
 
           <telerik:RadSplitBar ID="RadSplitbar1" runat="server" CollapseMode="Forward">
           </telerik:RadSplitBar>
 
            <telerik:RadPane ID="GridPane" runat="server" Width="75%" MinHeight="2000"  Scrolling="None" >
               <div id="divGrid" style="width:100%; height:100%;">
 
               <telerik:RadGrid ID="grdList" EnableViewState="false" runat="server"
                  PageSize="10000" AutoGenerateColumns="false" AllowPaging="true"
                  Skin="Bootstrap" Width="100%" Height="100%" AllowSorting="True"
                  AllowFilteringByColumn="false" GridLines="None"
                  onneeddatasource="grdList_NeedDataSource"
                  onitemcreated="grdList_ItemCreated"
                  onitemdatabound="grdList_ItemDataBound">
               <ItemStyle Wrap="false"></ItemStyle>
               <MasterTableView AllowMultiColumnSorting="true" TableLayout="Fixed">
                   <Columns>
                           <telerik:GridClientSelectColumn UniqueName="ClientSelectColumn">
                           <HeaderStyle HorizontalAlign="Left" Width="2%"></HeaderStyle>
                           <ItemStyle HorizontalAlign="Left" Width="2%"></ItemStyle>
                           </telerik:GridClientSelectColumn>
                                 
                           <telerik:GridHyperLinkColumn HeaderText="Name" DataTextField="LeadFullName" AllowFiltering="false" DataNavigateUrlFields="LeadID,MatterID" DataNavigateUrlFormatString="javascript:AddorEditorViewLead({0})" SortExpression="LeadFullName" UniqueName="LeadFullName" HeaderStyle-Font-Underline="true" DataType="System.String" >
                               <HeaderStyle HorizontalAlign="Left" Width="12%"></HeaderStyle>
                               <ItemStyle HorizontalAlign="Left" Width="12%"/>
                           </telerik:GridHyperLinkColumn>
                                                                     
                           <telerik:GridBoundColumn HeaderText="Address" DataType="System.String" DataField="Address" UniqueName="Address" SortExpression="Address" AllowFiltering="false">
                               <HeaderStyle HorizontalAlign="Left" Width="15%"></HeaderStyle>
                               <ItemStyle HorizontalAlign="Left" Width="15%" Wrap="true"></ItemStyle>
                           </telerik:GridBoundColumn

 

                               <telerik:GridBoundColumn HeaderText="E-Mail" DataType="System.String" DataField="Email" UniqueName="Email" SortExpression="Email" AllowFiltering="false">
                               <HeaderStyle HorizontalAlign="Left" Wrap="false" Width="13%"></HeaderStyle>
                               <ItemStyle HorizontalAlign="Left" Width="15%" Wrap="true"></ItemStyle>
                           </telerik:GridBoundColumn>

 

                 
                           <telerik:GridBoundColumn HeaderText="Phone" DataType="System.String" DataField="Phone" UniqueName="Phone" SortExpression="Phone" AllowFiltering="false">
                               <HeaderStyle HorizontalAlign="Left" Width="10%"></HeaderStyle>
                               <ItemStyle HorizontalAlign="Left" Width="10%" Wrap="true"></ItemStyle>
                           </telerik:GridBoundColumn

 

                           <telerik:GridTemplateColumn UniqueName="LinkButtonColumn" AllowFiltering="false">
                           <HeaderTemplate>
                           <telerik:RadCodeBlock ID="codeblaok1" runat="server">
                               <asp:ImageButton runat="server" ID="btnNew" ToolTip="Add New Lead"                                                               OnClientClick="AddNew();return false;" ImageUrl="~/images/buttons/plus_blue.gif" />
                               </telerik:RadCodeBlock>                    
                           </HeaderTemplate>
                           <HeaderStyle HorizontalAlign="Left" Width="15%" Wrap="false"></HeaderStyle>
                       </telerik:GridTemplateColumn>  
                   </Columns>
               </MasterTableView>
                <ClientSettings>
                   <Scrolling AllowScroll="true" ScrollHeight="500px" UseStaticHeaders="true" />                          
                   <Selecting AllowRowSelect="True" UseClientSelectColumnOnly="True" ></Selecting>
               </ClientSettings
           </telerik:RadGrid>
           </div> 
        </telerik:RadPane> 
 
       </telerik:RadSplitter>


      </div>

Vessy
Telerik team
 answered on 02 Jun 2015
3 answers
185 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
93 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
178 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
166 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
131 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
307 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
623 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
247 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
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?