Telerik Forums
UI for ASP.NET Core Forum
3 answers
99 views

Hi, this is my first time exploring the Grid in ASPNET.CORE. I am unable to display the grid on the page with the bare minimum by following the Grid Example (Index Controller and View). Please be rest assured that there is data being returned by the repository.

I am assuming that the Findings_Read([DataSourceRequest] DataSourceRequest request) will be called upon loading. However, it is not called at all. This is not the case when running the Telerik Trial Examples.

Please see the attached files for what I have written.

Let me know what am I missing here.

Viktor Tachev
Telerik team
 answered on 18 Nov 2019
1 answer
75 views

Hello,

I am trying to create a row with a nested grid template. In order to post for creation of new record in database I need to relate the child grid with the parent grid. If I add more rows I need this Id to increment, so parent and child grid will have the same Id.

How can I manage this? am I doing it the correct way? May you please provide me with an example?

Eyup
Telerik team
 answered on 18 Nov 2019
1 answer
62 views

Is there any example, how to drag and drop between two TreeLists like in the Drag and Drop example from Ajax: https://demos.telerik.com/aspnet-ajax/treelist/examples/itemsdragdrop/defaultcs.aspx

 

 

Viktor Tachev
Telerik team
 answered on 15 Nov 2019
16 answers
1.4K+ views

This worked in .NET 4. not so in Core. Is there an alternative to custom popup templates ???

.ToolBar(toolBar => {toolBar.Create();})
.Editable(e => { e.Mode(GridEditMode.PopUp); e.TemplateName("MaterialEdit");})
.Navigatable()

Viktor Tachev
Telerik team
 answered on 14 Nov 2019
1 answer
625 views

According to the demo at 

https://demos.telerik.com/aspnet-core/grid/paging

the range and total count of items does display in the far right of the grid paging control.  For example, the demo example displays initially "1 - 10 of 830 items".

In my use of the grid pager, it used to work fine just like in the demo with a range and total count of items displayed. But now with the current version 2019.3.1023 of UI for ASP.NET Core, the range and total count of items are no longer displayed with the grid pager.  Have defaults changed?  Or has the feature been removed?

What has changed? Or is it a bug?  Or perhaps just a problem in my hands on my machine?  Does anybody else have this problem?

Thanks, Carl

Alex Hajigeorgieva
Telerik team
 answered on 14 Nov 2019
5 answers
395 views

Im implementing a ViewComponent in a RazorPages application that includes two dropdownlists.  The primary would be returned with the initial view, the 2nd would be called via ajax.

Questions:
- Does the ViewComponent even need a model if I am using using a method in my VC to return data for the primary dropdown?
- If using using RazorPages, what is the syntax for the DataSource read action, which expects an MVC controler name and action?
Since the controller name is the name of the viewcomponent in this case and action would be something like "Handlers?handler=MyMethod

Petar
Telerik team
 answered on 13 Nov 2019
4 answers
318 views

I want to pull a PDF file from a Private/Protected container in Azure.  If it was a public container I could just use a Url.  But, I can't do that so I believe this needs to be pulled following this type of method:

CloudStorageAccount storageAccount = CloudStorageAccount.Parse(storageName);
CloudBlobClient blobClient = storageAccount.CreateCloudBlobClient();
 
CloudBlobContainer sourceContainer =
    blobClient.GetContainerReference(
        sourceContainerName);
 
CloudBlockBlob sourceBlob =
    sourceContainer.GetBlockBlobReference(fileName);
 
if (await sourceBlob.ExistsAsync())
{
    // pull the file into memory
    using (MemoryStream stream = new MemoryStream())
    {
        // load the stream from the blob
        await sourceBlob.DownloadToStreamAsync(stream);
        await sourceBlob.FlushAsync();
        stream.Position = 0;
        ...

 

So, this turns the BLOB into a Memory Stream.  Do you have a best-practices example on how I should do this?  If not, do you have an example of how I can load a stream directly into the control.  Better yet, I pull this through a REST service.  Do you have an example on how to request a stream from an API that then loads it into the control?

Thanks for your help,

Joel

 

Martin
Telerik team
 answered on 12 Nov 2019
7 answers
2.2K+ views
Have a set of DropDownLists in a ViewComponent and work fine as is, but how can I display a loading spinner if the process takes a second or two?
Its the 2nd DDL that loads via Ajax which I would like to have the progress indicator display, even if just for a fraction of a second.
I seem to notice that the Grid has this enabled by default?  Where are these properties listed?  Do they just default to enabled?
Can one override the image for the spinner?
Aleksandar
Telerik team
 answered on 12 Nov 2019
1 answer
169 views

I am trying to use the grid and pagers, but I have some requirements to meet that I cannot find how to do.  I need to:

  • Show a pager both at the top and bottom of the grid
  • Have other controls (like a page size selector) next to the pager controls
  • Have a "select exact page" dropdown as part of the pager formatted to look like the attached mockup.

How do I do this with the drid?  This is in .NET Core 3 Razor Pages

Tsvetomir
Telerik team
 answered on 12 Nov 2019
3 answers
108 views

https://demos.telerik.com/aspnet-core/listbox/index

See attached screenshot

 

I'm using Firefox 70 64bit

 

 

Tsvetomir
Telerik team
 answered on 11 Nov 2019
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?