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

[Solved] grid filtration not working when edit is clicked

3 Answers 109 Views
Grid
This is a migrated thread and some comments may be shown as answers.
ibrahim
Top achievements
Rank 1
ibrahim asked on 19 May 2009, 02:20 PM
i created a filtration scheme  which filters my grid..lets say i choose in the combo box x ..we get all the activites of type x.. which is working just fine...now when i press edit button(the edit column  is created with  the following code:
<EditItemTemplate><asp:ImageButton   
                ID="update_button" runat="server" Commandname="update"   
                ImageUrl="~/updatebutton.JPG" OnClick="update_button_click" /><asp:ImageButton   
                ID="cancel_button" runat="server" CausesValidation="false" CommandName="cancel"   
                ImageUrl="~/cancelbutton.JPG" /> 
            </EditItemTemplate> 
            <ItemTemplate> 
                <asp:ImageButton ID="edit_button" runat="server" Commandname="edit"   
                    ImageUrl="~/editbutton.JPG" onclick="edit_button_click" /> 
            </ItemTemplate> 
                        <HeaderStyle Height="10px" Width="45px" /> 
                        <itemstyle BorderColor="gray" BorderStyle="NotSet" borderwidth="1px"   
                            Font-Size="9px" Height="10px" VerticalAlign="Top" Width="45px" /> 
            </telerik:GridTemplateColumn> 
when i press edit all the filtration is removed and the column with the same index as the one i hit edit on (but with deferant data without filtration apears).... now what am i doing wrong please help me guys i have asked 2 questions in the last 3 days on this forum and got no responses so i had to alter everything i am doing but i am at a very critical point of my work right now pleaase help me asap

3 Answers, 1 is accepted

Sort by
0
ibrahim
Top achievements
Rank 1
answered on 19 May 2009, 02:53 PM
and what is driving me crazy is that i thought it is refreshing  the page so indeed it must go throught the page post back sub..but it doesnt it just takes the original select statment found in the sqldatasource,,,though in my code when i filter a change the datasource select statment and parameters this is driving me crazy why would this happen
0
ibrahim
Top achievements
Rank 1
answered on 20 May 2009, 06:19 AM
hey guys any updates?
0
Yavor
Telerik team
answered on 22 May 2009, 07:26 AM
Hi ibrahim,

Based on this information, it is hard to determine what is causing this unwanted behavior, although I suspect it is related to the way the control is bound to data. If the issue persists, you can open a formal support ticket, and send us a small working project, demonstrating your setup, along with the unwanted behavior. We will debut it locally, and get back to you with additional information.

Sincerely yours,
Yavor
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
ibrahim
Top achievements
Rank 1
Answers by
ibrahim
Top achievements
Rank 1
Yavor
Telerik team
Share this question
or