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

Hi Team,

I am using Telerik - R32020.3.915 with .Net-4.8

Currently we are migrating Telerik.WebControls.RadGrid to Telerik.Web.UI.RadGrid, with help of below article.

https://www.telerik.com/support/kb/aspnet-ajax/grid/details/migration-from-radgrid-for-asp.net-(classic)-to-radgrid-for-asp.net-ajax.

My project has a skin="Sample" ,Exists in project skins folder.when I try to render with that ,no changes are seen.

Code Snippet:

     

<telerik:RadGrid ID="ItemRadGrid" AllowCustomPaging="true" AllowFilteringByColumn="True" AllowPaging="True" AllowSorting="True" 
              AutoGenerateColumns="False" GridLines="none"
              GroupingSettings-CaseSensitive="false" PageSize="50" Skin="Sample" 
              ShowGroupPanel="false" UseEmbeddedScripts="false" Width="100%" runat="server">
   

    <MasterTableView CommandItemDisplay="Top" DataKeyNames="Guid" Width="100%" AllowNaturalSort="false">

Error:

Telerik.Web.UI.RadGrid with ID='ItemRadGrid' was unable to find an embedded skin with the name 'Sample'. Please, make sure that the skin name is spelled correctly and that you have added a reference to the Telerik.Web.UI.Skins.dll assembly in your project. If you want to use a custom skin, set EnableEmbeddedSkins=false.

Tried by removing and adding reference telerik.skins.dll ,but still issue exists,

if we try to set EnableEmbeddedSkins=false, no skin is rendered.

If there is property implemented for skins ?

Can anyone please help on this?

 

 

 

Rumen
Telerik team
 answered on 25 May 2021
1 answer
175 views

Hi there, 

I would like to know which is the easiest way to add a link button to a group Panel in a PvGrid.

It would be like in the image below.

Thanks,

Alvaro

Attila Antal
Telerik team
 answered on 25 May 2021
1 answer
385 views

Hi,

Im trying to bind a large data set with thousands of rows ,to a rad grid but I dont want to do it all at once,I want for example the pager to call lets say 15 rows at a time from the database and display those then the next page will call and display another 15....

Any help would be appreciated thanks.

 

Attila Antal
Telerik team
 answered on 25 May 2021
1 answer
559 views

*** Update from 17 Jan 2018 ***

The problem discussed below has been fixed in R1 2018 (2018.1.117).

*** End of update ***

The new Chrome 61 introduces some breaking changes which may lead to some of the following errors when the browser is scrolled and the resize handler of an appointment is clicked:

  • Uncaught TypeError: Cannot read property ‘viewPartIndex’ of null

  • Sys.WebForms.PageRequestManagerServerErrorException: Appointment Start time must be before the End time

  • Uncaught TypeError: Cannot read property 'cells' of undefined

  • Uncaught TypeError: Cannot read property 'resizeFromStart' of null

  • Uncaught TypeError: Cannot read property 'intervalIndex' of null;


Solution:

Placing the following JavaScript override before the declaration of the Scheduler should resolve all of the above issues:  

<script type="text/javascript">
    Telerik.Web.UI.RadScheduler.prototype._compensateScrollOffset = function(contentTable) {
        //In Chrome and Safari document.documentElement.scrollTop is always 0, due to a browser bug
        //In Internet Explorer there is no "document.scrollingElement"
        var scrollingElement;
        if ($telerik.isSafari || $telerik.isChrome) {
            scrollingElement = document.body.scrollTop <= document.scrollingElement.scrollTop ? document.scrollingElement : document.body;
        }
 
        var bodyOffsetElement = scrollingElement ? scrollingElement : document.documentElement,
        bodyScrollOffset = $telerik.getScrollOffset(bodyOffsetElement, false),
        scrollOffset = $telerik.getScrollOffset(contentTable, true);
 
        scrollOffset.x -= bodyScrollOffset.x;
        scrollOffset.y -= bodyScrollOffset.y;
 
        contentTable.targetRect.x += scrollOffset.x;
        contentTable.targetRect.y += scrollOffset.y;
 
        // The Safari issue here could be a problem in getLocation (used in getBounds). This code offsets it
        //if($telerik.isSafari3 || $telerik.isSafari4 || $telerik.isChrome)
        //{
        //    contentTable.targetRect.x += scrollOffset.x;
        //    contentTable.targetRect.y += scrollOffset.y;
        //}
    }
</script>


<telerik:RadScheduler runat="server" ID="RadScheduler1" ... >

If any other issues are observed in Chrome 61+ environment, please share them along with more details and specific examples of the reproduction steps so we can update the information here. 

For more information on the Google Chrome update and any issues with the position of ToolTips and ContextMenus, you may refer to http://www.telerik.com/forums/wrong-placement-of-radcontextmenu-in-chrome-61

Vessy
Telerik team
 answered on 25 May 2021
1 answer
272 views

Hello,
I am new to Telerik and I am currently supporting an ASP.NET application, I got a task in order to locate the files that were being uploaded by the application.
Reviewing the code I am making use of <telerik:RadAsyncUpload> using OnFileUploaded and InputStream.
I know that InputStream allows me to make the insert in database and process its content from the application. The doubt I have is where are the files that are uploaded using InputStream stored internally or where are they located, considering that it allows me to access the content of the uploaded files without saving them in a temporary location?

P.S.: I tried to check the App_Data\RadUploadTemp folder in my project but the files are not found.  

I would greatly appreciate your help, as I need to validate what documents are there and so on.

This is my code:

<telerik:RadAsyncUpload ID="RadAsyncUploadDocuments" runat="server" MaxFileSize="10485760" 
            MultipleFileSelection="Automatic" CssClass="multipleDocUpload" OnFileUploaded="RadAsyncUploadDocuments_FileUploaded" 
            Localization-Cancel="<%$Resources:cancel %>" Localization-Select="<%$Resources:select %>" Localization-Remove="<%$Resources:remove %>" >
        </telerik:RadAsyncUpload>

        <div class="doc_upload_buttons">
            <asp:Button runat="server" CssClass="action_button" ID="confirmUpload" OnClick="confirmUpload_Click" Text="<%$Resources:confirmUpload %>"/>
        </div>

 

protected void RadAsyncUploadDocuments_FileUploaded(object sender, Telerik.Web.UI.FileUploadedEventArgs e)
        {
            var Documents = Session["Documents"] == null ? new Bll.DocumentsCollection() : (DocumentsCollection)Session["Documents"];

            byte[] bytes = new byte[e.File.ContentLength];
            e.File.InputStream.Read(bytes, 0, (int)e.File.ContentLength);

            var document = new Bll.Documents();
            document._acprocessId = _acProcess.AcprocessId;
            document.AddedbyDate = DateTime.Now;
            document.AddedbyUsername = _user.UserName;
            document.AddedbyUsertype = (int)_user.ActiveReviewProcess.PermissionLevel;
            document.DocumentType = e.File.ContentType;
            document.AddedbyDate = DateTime.Now;
            document.Lastmodifieddate = DateTime.Now;            
            document.Path = e.File.GetName();
            document.Title = e.File.GetNameWithoutExtension();

            var documentId = document.Insert();
            document.DocumentId = documentId;
            var documentData = new Bll.DocumentData();
            documentData._documentId = documentId;
            documentData.BinaryData = bytes;
            documentData.Insert();

            Documents.Add(document);
            
            Session["Documents"] = Documents;
        }

        protected void confirmUpload_Click(object sender, EventArgs e)
        {
            UploadDocumentsSession _uploadDocumentsSession = new UploadDocumentsSession(_acProcess);
            _uploadDocumentsSession.Documents = Session["Documents"] as DocumentsCollection;
            _uploadDocumentsSession.CurrentDocument = _uploadDocumentsSession.Documents[0];
            _uploadDocumentsSession.UpdateSession();
            Response.Redirect(string.Format("~/{0}/DocumentManagerDashboard.aspx", _user.UserLevel >= SiteEnums.UserLevel.CCAReviewer ? "Admin/Processes" : "Public"));
        }
6 answers
288 views
Hi

I will work with 

<

 

ClientEvents OnRequestStart="gridRequestStart" />

But i get the Message "...is not a valid Attribut

i am working on Version

2009.3.1314.35

Regards
Markus

 

Sachita
Top achievements
Rank 1
Iron
Iron
Iron
 answered on 21 May 2021
7 answers
445 views
I am having a problem with RadGrid' scrolling position.

I want the header to be fixed. But they should move (scroll) horizontally, but not
vertically.

As it is a Telerik control I used their example (See below)

http://www.telerik.com/DEMOS/ASPNET/Prometheus/Grid/Examples/Client/Scrolling/DefaultCS.aspx

But it is helpless to me. The same thing I have applied, But when i fixed the header with the property  UseStaticHeader="True"  the headers are fixed.
I have also applied the container table property  style="table-layout:fixed".  After that they are not moving or scrolling horizontally nor vertically.

Please try to solve my problem, I am stuck.

You can see what problem I am facing. See the image below.



Please help. Its really urgent.
Sachita
Top achievements
Rank 1
Iron
Iron
Iron
 updated answer on 21 May 2021
1 answer
319 views

In my login page, I would like to hide the RadMenu which resides in the Master page in a RadPageLayout column.

Currently, the LayoutColumn holding the RadMenu has a Span of "2".  The RadMenu is in a LayoutColumn with a Span of "10".  Both exist within the same LayoutRow. 

When I set the RadMenu.Visible property to "false", the parent LayoutColumn is still rendered and while the RadMenu is not visible, the space it occupies is.  This forces the login form to appear off-center.

I have implemented a crude padding-right value which makes the visible login form to appear to be centered.  This is not a desired approach.

Is it possible to hide this LayoutColumn, server-side, on the login page so that the form isn't off center, or maybe a better solution to achieve the desired functionality?

Thank you, in advance.

Jeff
Top achievements
Rank 3
Bronze
Iron
Iron
 answered on 20 May 2021
1 answer
290 views

We have one site where we are seeing an odd behavior in RadComboBox, that I've never seen in any of our other sites. 

We have a lot of radcomboboxes throughout this site, some of which have pre-defined items, or items added on page load in the code behind. These comboboxes all work perfectly fine, exactly as expected. 

A lot of the comboboxes however use load-on-demand to query items at runtime for the user's input. ALL of these comboboxes have the same problem. They seem to perform their AJAX postback fine, and get the correct data, and the items all get added to the combobox, showing the correct data. 

The problem though is that the load-on-demand items cannot be selected. You can't click on them, you can't even use the arrow-keys to up/down to them and select one. 

The Web Developer tools in the browser don't show any javascript failing to load on page load,
they don't show any errors in the Console tab on the initial page load, or the load-on-demand postback
they don't show any errors in the Network tab on the initial page load, or the load-on-demand postback

 

This project was originally written in ASP.NET 2.0, and we are upgrading it to 4.7.2.
Updated the latest Telerik DLLs, updated the latest jQuery libraries, updated the compilation nodes in the web.config.

Vessy
Telerik team
 answered on 20 May 2021
2 answers
574 views

Hi,

I am trying to set the data source for grid from client side, Below is example of the code.

 

<telerik:RadGrid ID="Grid_geoData" runat="server" AutoGenerateColumns="false" Height="200px" > <MasterTableView DataKeyNames="Text" ClientDataKeyNames="Text" ShowHeadersWhenNoRecords="true" Visible="true"> <Columns> <telerik:GridBoundColumn DataField="Text" HeaderText="Comp. name" UniqueName="comName" /> </Columns> </MasterTableView> </telerik:RadGrid>

 


function pageLoad() {
            var data =
                [
                    { "ID": 1, "Text": "Text1" },
                    { "ID": 2, "Text": "Text2" }
                ];
            var mtv =  $find("<%= Grid_geoData.ClientID %>").get_masterTableView();
            mtv.set_dataSource(data);
            mtv.dataBind();
        }

I get error at line 

mtv.set_dataSource(data);

Do anyone have idea what I am doing wrong?

Regards,

Omar

 

Omar
Top achievements
Rank 3
Iron
Iron
Iron
 answered on 20 May 2021
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?