I am trying to put in a panel bar that is collapsed by default. I took the demo and changed the expanded value to false.
<
kendo-panelbar
name
=
"project"
>
<
items
>
<
panelbar-item
text
=
"Storage"
expanded
=
"false"
>
<
items
>
<
panelbar-item
text
=
"Wall Shelving"
></
panelbar-item
>
<
panelbar-item
text
=
"Floor Shelving"
></
panelbar-item
>
<
panelbar-item
text
=
"Kids Storag"
></
panelbar-item
>
</
items
>
</
panelbar-item
>
</
items
>
</
kendo-panelbar
>
The panel bar items are collapsed but the icon is set to "k-i-arrow-60-up" so it looks like it can still be collapsed.
I am also wanting to put content other than <panelbar-item> in there, so I was going to use the <content> tag instead f the <items> tag an then put a treeview in there. When I use the <content> tag, the content is always show, so I must be using this incorrectly. I know I can do it with the html helpers, but I like how the tag helpers look. Can I still do this with the tag helpers?
Hi everybody
I have a problem with kendo treeview checkboxes
i populated treeview with remote data, it binds correctly. I used "checked" property to send checked checkboxes to view, it works fine too.
i use 2 different method for sending checked node IDs to controller but does not work properly.
method1:
use java script to read nodes recursively and gather IDs then store in hidden field and send to controller but most of the times some nodes doesn't illustrate the check items thoroughly. in other words, I lose near half of checkboxes randomly.
method2:
using checkbox name and template and send checkboxes directly to the controller got same issue.
what can i do for this issue??
thanks
I am attempting to add an “All” option to the page size dropdown in a grid’s pagination so that the grid can display all items if needed.
Prior to updating to version R2 2020 we called a script that checked the page size <select> to see if “All” was present as an option. If not it would insert the text and value for the option. It was based on the method described here: Set All Page Size in Grid for ASP.NET Core. This no longer seems to work since the Pager component was updated. What would be the R2 2020 friendly version of that solution? Because calling that scripting breaks the grid’s Pager now and the buttons appear disabled with no change to the page size dropdown.
Currently in Splitter, when adding a new pane, I can use LoadContentFrom("Action","Controller") to load content
For a TitleLayout, when adding a new container, I can only use BodyTemplateId("stringTemplateID")
Is there a way for me to simulate BodyTemplateId ("Action","Controller") to load data into TitleLayout from a Controller/Action?
Thanks.
Hi,
How can I change the default color for all highlighting , hover & mouse - over for an application.
I want to display 4 or 5 columns and 3 or 4 columns that are hidden in the grid. I want to create a custom command to show the all the columns in a readonly fashion.
Basically, use the default dialog for popups and make it readonly. Can it be done?
Thanks … Ed
Hello,
Opening an event in the schedule and then dragging the window that loads as a result makes the window's background colour to change. It seems to be changing to match the overlay background colour. I can recreate this using the example provided on your documentation
https://demos.telerik.com/aspnet-mvc/scheduler
I've tried this using chrome and firefox and the behavior is the same.
Is this default/expected behavior? Is there any way to override this?
Thanks
Tom
I am using .net core mvc version
I have a partial view that I'm loading using a jquery .load
The partial contains a form, which contains some kendo dropdowns and a kendo editor
Whenever the load completes and the partial view renders in the target div, I see a console error relating to each of the kendo components
VM2091:1 Uncaught TypeError: jQuery(...).kendoDropDownList is not a function
at <anonymous>:1:48
at Object.n [as syncReady] (VM2083 kendo.aspnetmvc.min.js:25)
at <anonymous>:1:7
at DOMEval (jquery.js:111)
at domManip (jquery.js:5762)
at jQuery.fn.init.append (jquery.js:5898)
at jQuery.fn.init.<anonymous> (jquery.js:5992)
at access (jquery.js:3939)
at jQuery.fn.init.html (jquery.js:5959)
at Object.<anonymous> (jquery.js:9892)
When i pull out the code that failed and execute it in the browser console, it works and suddenly the kendo form components work fine again.
an example of the code thats failing is this line
kendo.syncReady(function(){jQuery("#ClientId").kendoDropDownList({"autoBind":true,"dataTextField":"Text","dataValueField":"Value","optionLabel":"Select client...","value":"33526","filter":"contains","dataSource":{"transport":{"read":{"url":"/Client/ClientSelect_Read","data":function() { return kendo.ui.DropDownList.requestData(jQuery("#ClientId")); }},"prefix":""},"serverFiltering":true,"filter":[],"schema":{"errors":"Errors"}}});});
Can anyone tell me how to resolve this error?
How do I set the font for a selection of Cells to Arial?
Not sure if this is were I should post this question. I have created a dotnet standard assembly to use with my controller with the PDFViewer that will translate a Word document (docx) to a pdf. I have tried several different methods and get the same error. The error I receive is: "Can not export other than Jpeg and Jpeg2000 and ImageQuality different than High". The document is pretty straight forward with text a barcpde and a table if that helps (a small image of the doc attached). Does anyone have an idea how to fix this? I also created a "this is a test" document and when it is displayed it shows: "PDF file fails to process." I have attached the document.
System.NotSupportedException
HResult=0x80131515
Message=Can not export other than Jpeg and Jpeg2000 and ImageQuality different than High
Source=Telerik.Documents.Fixed
StackTrace:
at Telerik.Windows.Documents.Fixed.Model.Resources.ImageSource.DoOnUnknownData(Byte[] unknownData, ImageQuality imageQuality, Action`1 doOnEncodedData)
at Telerik.Windows.Documents.Fixed.Model.Resources.ImageSource.InitializeImageInfoFromUnknownData(Byte[] unknownData, ImageQuality imageQuality)
at Telerik.Windows.Documents.Fixed.Model.Resources.ImageSource.EnsureImageInfo()
at Telerik.Windows.Documents.Fixed.Model.Resources.ImageSource.get_Width()
at Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Model.Elements.Objects.ImageXObject.CopyPropertiesFrom(IPdfExportContext context, ImageSource imageSource)
at Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Export.PdfExportContext.GetResource(ImageSource resource)
at Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Export.PdfContentExportContext.GetResource(ImageSource imageSource)
at Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Export.ContentElementWriters.ImageWriter.WriteOverride(PdfWriter writer, IPdfContentExportContext context, Image element)
at Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Export.ContentElementWriters.MarkableContentElementWriter`1.Write(PdfWriter writer, IPdfContentExportContext context, Object element)
at Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Export.ContentElementWriters.ContentElementWriterBase.WriteElement(PdfWriter writer, IPdfContentExportContext context, Object element)
at Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Export.ContentElementWriters.ContentRootWriter.WriteOverride(PdfWriter writer, IPdfContentExportContext context, IContentRootElement element)
at Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Export.ContentElementWriters.ContentElementWriter`1.Write(PdfWriter writer, IPdfContentExportContext context, Object element)
at Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Export.ContentElementWriters.ContentElementWriterBase.WriteElement(PdfWriter writer, IPdfContentExportContext context, Object element)
at Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Model.Elements.DocumentStructure.ContentStream.BuildContentData(IPdfExportContext context, IResourceHolder resourceHolder, IContentRootElement contentRootElement)
at Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Model.Elements.DocumentStructure.Page.CopyPropertiesFrom(IPdfExportContext context, RadFixedPage fixedPage)
at Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Model.Elements.DocumentStructure.DocumentCatalog.CopyRadFixedPageProperties(RadFixedPage source, Page destination, IRadFixedDocumentExportContext context)
at Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Model.Elements.DocumentStructure.DocumentCatalog.CopyPagePropertiesFrom(IRadFixedDocumentExportContext context)
at Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Model.Elements.DocumentStructure.DocumentCatalog.CopyPropertiesFrom(IRadFixedDocumentExportContext context)
at Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Export.PdfExporter.Export(IRadFixedDocumentExportContext context, Stream output)
at Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.PdfFormatProvider.ExportOverride(RadFixedDocument document, Stream output)
at Telerik.Windows.Documents.Common.FormatProviders.FormatProviderBase`1.Export(T document, Stream output)
at Telerik.Windows.Documents.Flow.FormatProviders.Pdf.PdfFormatProvider.ExportOverride(RadFlowDocument document, Stream output)
at Telerik.Windows.Documents.Common.FormatProviders.FormatProviderBase`1.Export(T document, Stream output)
at TexasProtax.Document.Pdf.ConvertToPdf.FromWord(String filename) in D:\#bitbucket\TexasProtax\texasprotax.appraisalportal\TexasProtax.Document\Pdf\ConvertToPdf.cs:line 36
at TexasProTax.AppraisalPortal.Web.Areas.Document.Controller.ViewerController.GetDocument(String location) in D:\#bitbucket\TexasProtax\texasprotax.appraisalportal\TexasProtax.AppraisalPortal.Web\Areas\Document\Controller\ViewerController.cs:line 43
at Microsoft.Extensions.Internal.ObjectMethodExecutor.Execute(Object target, Object[] parameters)
at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.SyncActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync()
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync()
Here is the method:
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using Telerik.Windows.Documents.Common.FormatProviders;
using Telerik.Windows.Documents.Flow.FormatProviders.Docx;
using Telerik.Windows.Documents.Flow.FormatProviders.Pdf;
using Telerik.Windows.Documents.Flow.Model;
...
public static Stream FromWord(string filename)
{
using (Stream inStream = File.OpenRead(filename))
using (Stream outStream = new MemoryStream())
{
IFormatProvider<
RadFlowDocument
> fileFormatProvider = new DocxFormatProvider();
RadFlowDocument document = null;
using (Stream input = File.OpenRead(filename))
{
document = fileFormatProvider.Import(input);
}
//byte[] renderedBytes = null;
IFormatProvider<
RadFlowDocument
> formatProvider = new PdfFormatProvider();
using (MemoryStream ms = new MemoryStream())
{
formatProvider.Export(document, ms);
//renderedBytes = ms.ToArray();
return ms;
}
}
}