Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
1.0K+ views


1. platform used :  ==== > telerik:radgrid   on   ASP.NET 

as the Attached File, I want to input text by adding a txtBox to a column in telerik:radgrid

Is there an ASP.NET version of the source code I can refer to?

 Telerik : radgrid on ASP.NET

 

Please Help me.

 

 

 

 

 

Attila Antal
Telerik team
 answered on 31 Dec 2021
0 answers
110 views

Attached File : GridtxtBox.png

 

I need the asp.net version of the ASP.NET Version example source files. Because I'm not good at programming. 

Please check the file I attached. 

I need ASP.NET Version Souce Example File.

Please Help me

anna
Top achievements
Rank 1
Bronze
Iron
 asked on 30 Dec 2021
0 answers
65 views

Hi Team,

We have migrated all RadTreeView Classic to RadTreeView Ajax Controls.

https://docs.telerik.com/devtools/aspnet-ajax/controls/treeview/appearance-and-styling/migrating-skins 

Modified existing skin as per above document but could not find anything related to SingleSelect_Hover,SingleSelect_Select,Disabled.

Code before migrating existing default skin:
 private const string SINGLE_SELECT_HOVER_CSS_CLASS = "TreeNodeOver_SingleSelect";
        private const string SINGLE_SELECT_CSS_CLASS = "TreeNodeSelect_SingleSelect";
        private const string DISABLED_CSS_CLASS = "TreeNodeDisabled";
Can anyone help how to modify changes programattically with any example?
Sachita
Top achievements
Rank 1
Iron
Iron
Iron
 asked on 29 Dec 2021
0 answers
113 views

Hello.

I'm using CommandItem built in Insert button to open a window with a form to insert new values.


      <telerik:RadWindow ID="UserListDialog" runat="server" Title="Atualizar listagem" Height="400px" OnClientClose="OnClientCloseHandler" 
                            Width="800px" Left="150px" ReloadOnShow="true" ShowContentDuringLoad="false" DestroyOnClose="true"
                            Modal="true" 
                            Behaviors="Close,Move,Resize" CssClass="opaque"  KeepInScreenBounds="True"  >
                            
                                <ContentTemplate>
                                      <uc1:ViewEmissaoTimeSheetEdit ID="EditTimesheet" runat="server"  />
                                </ContentTemplate>
                            
                        </telerik:RadWindow>


            <CommandItemTemplate>
                                     <telerik:RadButton CommandName="InitInsert" RenderMode="Lightweight" ID="AddNewRecordButton" Text="Adicionar nova versão" ToolTip="Adicionar versão"
                                          runat="server" style="background:none; border:none; color:green;">
                                         <Icon PrimaryIconCssClass="rbAdd"></Icon>
                                     </telerik:RadButton>

The problem is, when i use Validators in my form atributtes, the form doesn't open when clicking the insert button.

Validators structure in my form (contained in a user control)


 <telerik:RadTextBox ID="txtAssinaturaTimesheet" runat="server" MaxLength="30"  Width="220px">
                                    </telerik:RadTextBox>
 <%-- <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtAssinaturaTimesheet" Display="Static" 
CssClass="ValidationFont" Text="Campo Obrigatório!" Font-Size="Medium" ></asp:RequiredFieldValidator> --%>

It is a common issue? How can i overcome it?

Harlem98
Top achievements
Rank 1
Iron
Iron
Iron
 updated question on 28 Dec 2021
1 answer
219 views

hi,

we are using Telerik UI ASP.NET AJAX version 2013.3 and we would like to upgrade to the latest version.

how tough it will be?

 

what difficulties we should expect?

 

thanks

 

Vessy
Telerik team
 answered on 28 Dec 2021
1 answer
134 views

Currently testing with Telerik R32021.3.914.45 ,.NetFramework-4.8 and browser - Chrome and Edge

https://docs.telerik.com/devtools/aspnet-ajax/controls/treeview/migrating-from-radtreeview-for-asp.net-to-asp.net-ajax

We migrated from Classic to Asp.Net ajax controls followed the aboved document.

and observed that SSL property has been removed from Telerik.Web.UI controls.

May anyone help me out to find an alternate propoerty instead of SSL for that?

Old Code with Classic TreeView (Telerik.WebControls):
 protected override void OnInit(EventArgs e)
        {
           eventTypeTree.SSL = ConfigurationManager.SystemSettingsSection.ApplicationInfo.Protocol == Protocol.https;
            base.OnInit(e);
        }

Vessy
Telerik team
 answered on 28 Dec 2021
0 answers
86 views

Dears,

I want to generate thumbnail from images upload to cloud azure cloud already I have create azure function to generate thumbnail but it is not suitable for us because has many issues... if possible please share with me any way to do that

thanks

Rebeen
Top achievements
Rank 1
Iron
 asked on 26 Dec 2021
1 answer
563 views

I've seen multiple questions related to this but still haven't seen a good answer.

Dates on the backend are in UTC, I want the front end to display them on the Clients Local timezone. However, the Client is displaying the UTC time.

I understand this is related to the way browsers handle dates, but my confusion is with what exactly happens  when you "bind" a DateTime object to a RadGrid. I've even tried binding an ISO formatted Date string to a GridDateTimeColumn to see if that resolved the issue (it didn't).

When I say "new Date(theText)" in JS I get the correct value, but it apparently doesn't bind like this. I've even tried using DateTimeOffset instead of DateTime.

The data is being bound on the Server Side NeedDataSource event.

What is the current best solution to this problem? Must I either take the users offset and convert on binding or convert the front end text using JavaScipt? OR is there a cover all solution to just convert ALL dates to client local?

Thanks

Attila Antal
Telerik team
 answered on 23 Dec 2021
1 answer
116 views

Hello,

When I filter on the RadDropDownTree then backspace everything I typed  in the filter field it expands all the nodes on the tree.

What I want it to do is collapse all the nodes as if I'm starting at the very beginning.

Peter Milchev gave me a nice working script from my last filter question.  I'm posting it here.  Perhaps it can be modified? 

Thanks!

--Clark

<script>
    var $T = Telerik.Web.UI;
    Telerik.Web.UI.RadDropDownTree.Manager.prototype._filterNodes = function (text) {
        var nodes = this._embeddedTree.get_allNodes(),
            count = nodes.length,
            regEx,
            i;
 
        if (this._filter == $T.DropDownTreeFilter.StartsWith)
            regEx = new RegExp("^\\s*" + $T.RadDropDownTree.Manager._regExEscape(text), "im");
        else
            regEx = new RegExp($T.RadDropDownTree.Manager._regExEscape(text), "gim");
 
        for (i = 0; i < count; i++) {
            var currentNode = nodes[i];
            var matchIsFound;
                   
            if (currentNode.get_level() !== 2) {
                matchIsFound = false;
            } else {
                matchIsFound = this._matchNode(currentNode, text, regEx);
            }
            if (matchIsFound) {
                this._handleVisibleParents(currentNode);
                this._filteredVisibleNodes.push(currentNode);
            }
            else {
                this._handleHiddenNode(currentNode);
            }
        }
 
        this._hideNodes(this._filteredHiddenNodes);
        this._showNodes(this._filteredVisibleNodes);
 
        this._filteredVisibleNodes = [];
        this._filteredHiddenNodes = [];
    }
</script>

 

 

Doncho
Telerik team
 answered on 21 Dec 2021
1 answer
148 views

Hi,

I am trying to perform an upload with no post back, so I am using the handler. Telerik  v4.0.30319

The code works, but for some reason it split the file and upload only 2MB of it. 

 public class myHandler : AsyncUploadHandler, System.Web.SessionState.IRequiresSessionState
    {

        protected override IAsyncUploadResult Process(UploadedFile file, HttpContext context, IAsyncUploadConfiguration configuration, string tempFileName)
        {
            
            string targetFolder = context.Server.MapPath("~/Uploads/");
            string fileName = file.GetName();

            file.SaveAs(targetFolder + fileName);

            return CreateDefaultUploadResult<UploadedFileInfo>(file);
        }


    }

JS code

  <script type="text/javascript">
        function OnClientFileUploadFailed(sender, args) {

        }

        function OnClientValidationFailed(sender, args) {

        }
        var gridfileName = '';
        function OnClientFilesUploaded(sender, args) {
           
            GetgridIDfieldName(gridfileName);
        }
        function OnClientFilesUploading(sender, args) {
         
            gridfileName=args.get_fileName();
        }
    </script>

 

                                        <telerik:RadAsyncUpload  
                                            ID="RadAsyncUpload1"
                                            OnClientFileUploadFailed="OnClientFileUploadFailed"
                                            OnClientValidationFailed="OnClientValidationFailed"
                                            OnClientFilesUploaded="OnClientFilesUploaded"
                                            OnClientFileUploading="OnClientFilesUploading"
                                            HttpHandlerUrl="~/myHandler.ashx"
                                            TargetFolder="~/Uploads"
                                            DisableChunkUpload="true"
                                            MaxFileSize="10485760"
                                            RenderMode="Lightweight"
                                            runat="server">
                                        </telerik:RadAsyncUpload>

Note: The code do not create temp file at "\App_Data\RadUploadTemp"  it directly upload the file to the Uploads folder.

Any help is much appreciated.

Regards,

Omar

Omar
Top achievements
Rank 3
Iron
Iron
Iron
 answered on 20 Dec 2021
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?