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

telerik:RadGrid ASP.NET Web is being used.

When you click a cell in the grid of A, The details should be displayed in grid of B.
===> If you click the cell of grid, Another Detail-Grid should appear.

How should I program the code?

 

Attached File : ad1.png

 

Attila Antal
Telerik team
 answered on 24 Jan 2022
1 answer
631 views

I'm getting this error whenever I click a button on the page.

This only happens when you're running the aspx page through a windows forms application that has a browser control.
If I load this page directly from any normal browser it works fine.

Page is running:

    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js" type="text/javascript"></script>
    <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js" type="text/javascript"></script>
    <script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js" type="text/javascript"></script>

 

Any suggestions?

Vessy
Telerik team
 answered on 21 Jan 2022
1 answer
116 views

Hi

Is there a way UI can be rendered asynchronously (ASP.NET ajax way) Lets say i get data like 10MB or more and the getting data part is async. However I can see that the blazor page freezes as it needs to bind the data to grid/list. Is there way to do this just like background thread concept in Winforms? Or asp.net ajax way?

Rumen
Telerik team
 answered on 20 Jan 2022
1 answer
157 views

Hello!

I am trying to configure my updatecommand for a RadGrid dropdownlist edit entry. I have attached the code for the dropdownlist and my current update command below 

DropDownList

if (e.Item is GridEditableItem && e.Item.IsInEditMode && !(e.Item is GridEditFormInsertItem))
        {
            SqlConnection connection = new SqlConnection(ConfigurationManager.ConnectionStrings["DBConnectionString"].ConnectionString);
            SqlDataAdapter da = new SqlDataAdapter("SELECT * FROM [ExampleDB].[dbo].[Status]", connection);
            DataSet ds = new DataSet();
            da.Fill(ds);

            GridEditableItem edit = (GridEditableItem)e.Item;
            TextBox txt = (TextBox)edit["Status"].Controls[0];
            txt.Visible = false;
            DropDownList droplist = new DropDownList();
            droplist.DataSource = ds;
            droplist.DataTextField = "Name";
            droplist.DataValueField = "ID";
            droplist.DataBind();
            edit["OrderStatus"].Controls.Add(droplist);
        }

 

Update Command

protected void RadGrid1_UpdateCommand(object sender, GridCommandEventArgs e)
    {
        GridEditableItem editableItem = ((GridEditableItem)e.Item);
        Hashtable values = new Hashtable();
        editableItem.ExtractValues(values);
        string query = "UPDATE [MSIMM].[dbo].[Order] SET OrderStatusID=@OrderStatusID";
        DataAccess(Command: RadGrid.UpdateCommandName, Query: query, OrderStatusID: values["ID"].ToString());

    }
Attila Antal
Telerik team
 answered on 20 Jan 2022
1 answer
167 views

My Radgrid is in EditMode="Batch" . When I click on the AddNewRecord I need to create a record in the DB. The ItemCommand event does not fire. 

 

Is there a way to get it to fire.

I did see this? https://stackoverflow.com/questions/31816599/overriding-the-telerik-radgrid-addnewrecordbutton-functionality-to-redirect-the 

Is there a better way to do it so the batch mode stays intact? 

Attila Antal
Telerik team
 answered on 19 Jan 2022
0 answers
117 views

Hi,

When using RadTab - RadMultiPage - RadPageView the content url for the page view loads twice on the initial load.

What am I doing wrong?

 

Thanks

 

Scott
Top achievements
Rank 1
 asked on 17 Jan 2022
0 answers
95 views

We have migrated to Telerik.Web.UI from Telerik.WebControls ,Telerik Version - 2021.3.914.45,.Net-4.8

Tried with get_allNodes() instead of AllNodes but no luck.

 function getNodes() {
				
				return this.getTree().AllNodes;                          //AllNodes is not returning Array

            }
 return {
                getTree: function() {
                    if (!this.elements["tree"]) { this.elements["tree"] = window[this.element.getAttribute("tree")]; }
                    return this.elements["tree"];
                },
                getHiddenFieldEl: function() {
                    if (!this.elements["hidden"]) { this.elements["hidden"] = $(this.element.getAttribute("hf")); }
                    return this.elements["hidden"];
                },
                toString: function() { return "Simple Tree"; },
                init: function() {
                    this.hasCheckBoxes = (this.element.getAttribute("checkmode") === "true");

                    Test.Controls.attachSubmitEvent(onSubmit, this, true);
                },
validate: function(source, args) {
                    var isValid = false;
                   var allNodes = getNodes.call(this);                                     //allNodes as Undefined
                    for(var i = 0, len = allNodes.length; i < len; i++) { 
					
                        var node = allNodes[i];
                        if(!node.Checked) { continue; }
                        
                        isValid = true;
                        break;
                    }
                    
                    args.IsValid = isValid;
                }

Can anyone please help to resolve this issue? what should be changed in the above code after migration?

 

Sachita
Top achievements
Rank 1
Iron
Iron
Iron
 updated question on 17 Jan 2022
0 answers
123 views

Hi, when I provide an XML file through web service to the scheduler and the dayview is displayed, the UTC times appear to be displayed in the server/local browser time zone. For example if the <Start>2022-01-14 07:00</Start> tag is provided, it is shown in  the browser view at 1:1:00 (which corresponds to the server time and my time zone).

I have set the timezoneoffset for the scheduler to be -1:00:00 so what should be shown in the dayview should be 08:00,

There is no documentation that suggests that the dayview is using a different mechanism for showing the times so what is happening here and how to correct it?

Matt Smith
Top achievements
Rank 1
 asked on 14 Jan 2022
1 answer
205 views
Is there a way to print a radgrid across multiple sheets when it has horizontal scrolling, i.e. has more columns than can be rendered on the screen at one time or on a single page when rendered to print even in landscape mode? 
Attila Antal
Telerik team
 answered on 14 Jan 2022
2 answers
272 views

I'm using a RadDropDownTree on my website with filtering functionality enabled (EnableFiltering property). It works great, but I need to maintain the filter value during the user session.

Is there any way to get and set the filter that the user types? I haven't seen anything on the documentation.

Serikat
Top achievements
Rank 1
Iron
 answered on 14 Jan 2022
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?