This is a migrated thread and some comments may be shown as answers.
Refresh button after posting (without Ajax enabled)
4 Answers 134 Views
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Scott Klueppel
Top achievements
Rank 1
Scott Klueppel asked on 12 Feb 2010, 03:15 AM
I love this grid, but have an issue when using the Refresh icon/button when AJAX is not enabled. After posting to the grid, the "Refresh" icon/button on the grid causes a "Replay" of the previous post as if the browser's refresh button was pressed.

If this is not a bug, is there a way to disable/remove the refresh button?

Instead of posting my code, I have reproduced my issue using the First Look Grid Demo. To reproduce, follow these steps:
1. Remove the ".Ajax(ajax => ..." line from the FirstLook.aspx view page.
2. Build and run the First Look Grid sample.
3. Click "Apply" to post to the Grid.
4. Click the "Refresh" icon at the bottom left of the grid.

Thank you.

4 Answers, 1 is accepted

Sort by
0
Accepted
Atanas Korchev
Telerik team
answered on 12 Feb 2010, 08:37 AM
Hello Scott Klueppel,

Currently what the refresh button does is "location.reload()" which is the same as hitting the browser F5 button. I admit that this may be indeed a problem in some cases and we should consider implementing it in a different way. You can hide it easily by using the following CSS rule:

.t-grid div.t-status
{
    display: none;
}

Regards,
Atanas Korchev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Scott Klueppel
Top achievements
Rank 1
answered on 12 Feb 2010, 12:37 PM
Atanas,

I hope to see it changed in future releases, but this is a fine workaround for me right now.

Thank you.
0
ronald
Top achievements
Rank 1
answered on 25 Mar 2011, 04:36 AM
the location.reload() will refresh the entire page.. How to achieve just refresh the grid only??
0
Neha Jain
Top achievements
Rank 1
answered on 02 May 2011, 07:39 AM
Is the Implementation done? what is the solution till that time.
when Im clicking on Refresh Button it populate the grid with default value but I want the grid to be populated with present value of Datepicker,Dropdownlist etc
My code is as follows

    @(Html.Telerik().Grid(dt)
            .Name("DG1")
                    .DataBinding(db => db.Ajax().Select("_LoginMetrics", "AH",,new { Preference = "5", FromDate = "17-04-2011", ToDate = "20-04-2011" }).Enabled(true))
           .Scrollable(s => s.Enabled(false))
            .ClientEvents(events => events.OnDataBinding("GridAction")
            )
         )
The datagrid populate with FromDate = "17-04-2011", ToDate = "20-04-2011" but not with the present value
Tags
Grid
Asked by
Scott Klueppel
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Scott Klueppel
Top achievements
Rank 1
ronald
Top achievements
Rank 1
Neha Jain
Top achievements
Rank 1
Share this question
or