This is a migrated thread and some comments may be shown as answers.

[Solved] POST and GET issue

2 Answers 41 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
sefer kılıç
Top achievements
Rank 1
sefer kılıç asked on 25 Mar 2010, 04:14 PM
I have to many grid on my project, some grids send GET request some grids send POST request when I click column name for ordering.

All my grids creates like belows ;

 <%= Html.Telerik().Grid(Model) 
        .Columns(columns => 
        { 
            columns.Add(o => o.CustomerName); 
            columns.Add(o => o.MicrosVersion); 
            columns.Add(o => o.PosSystem); 
            columns.Add(o => o.HasDbs); 
            columns.Add(o => o.UpdateTime); 
            columns.Add(o => o.LastBackup); 
            columns.Add(o => o.CheckUpdTime); 
             
             
        }) 
        .DataBinding(dataBinding => dataBinding.Ajax().Select("CustomerList", "Customer")) 
        .Name("gridCustomerList") 
        .Sortable() 
        .Pageable(p=>p.PageSize(15)) 
        .Filterable() 
        .Groupable() 
        .Ajax(ajax => ajax.Action("AjaxCustomerList", "Customer") 
         
         ) 
    %> 


you can see firebug images as attachments

Have any idea ?

Thanks

2 Answers, 1 is accepted

Sort by
0
sefer kılıç
Top achievements
Rank 1
answered on 25 Mar 2010, 04:47 PM
I think I found problem but how I can solve it I didn't find out.

Problem reason is redirection. If I use redirection before populate grid data, request change POST to GET on second actions after redirection.


0
sefer kılıç
Top achievements
Rank 1
answered on 30 Mar 2010, 09:08 AM
redirection using every time GET , so, I change my code . Not use anymore redirection. 
Tags
Grid
Asked by
sefer kılıç
Top achievements
Rank 1
Answers by
sefer kılıç
Top achievements
Rank 1
Share this question
or