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

problem with multiple collapse in radgrid

7 Answers 149 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ebin
Top achievements
Rank 1
Ebin asked on 11 Jun 2010, 11:20 AM
i am using the hierarchy in my application and multiple records can be collapsed at a time in that. but i want only one record to be expanded at a time. if already one record is expanded then that one must collapsed before the other one is expanding.

7 Answers, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 11 Jun 2010, 11:48 AM
Hello Ebin,

You can implement the functionality using some lines of code. The documentation shows how to allow single row expand at a time for each level in the grid hierarchy.
Single expand in hierarchical grid

Thanks,
Princy.
0
Ebin
Top achievements
Rank 1
answered on 11 Jun 2010, 12:09 PM
Thank you Princy   :) .. this is what i was really looking for.
0
Ebin
Top achievements
Rank 1
answered on 26 Jul 2010, 07:16 AM
i am getting one more problem with the filtering functionality.

i have the data in grid and when i am filtering it is working fine.
but the problem is when if there is no data present in the first filtering and i am going to the next filtering then it shows that "Drag a column header and drop it here to group by that column".
i checked with data , the data  is available in database, so for the second filtering it must work logically.
and example flow i will give,

i will enter the filter field as test and i am filtering with contains and assume that there is no record, it works fine.
and i am selecting the option as not filter, actually the whole data must appear but here it is not showing any data instead in is showing that "Drag a column header and drop it here to group by that column".
0
Tsvetoslav
Telerik team
answered on 29 Jul 2010, 08:00 AM
Hello John,

The "Drag a column header and drop it here to group by that column" text is related to the grid's group panel and is not related to the filtering but is controlled by the ShowGroupPanel property of the grid. Please, open up a formal support ticket and send your files giving a more detailed and clear description of the problem as it is somewhat obscure what exactly the issue at hand is.

Thanks in advance.

Regards,
Tsvetoslav
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
Ebin
Top achievements
Rank 1
answered on 05 Aug 2010, 07:44 AM
Can you tell me how to add a new Thread in telerik forum?

i am searching and i am not getting it.
0
Ebin
Top achievements
Rank 1
answered on 05 Aug 2010, 08:03 AM
here is my problem.

i have a grid that contains an item template it holds check boxes and i have another field called as amount. when i am checking the checkbox for a particular row i need a textbox to be appeared in amount field to enter the value, and that text box need to be validated also.

i am thinking of taking an approach that let the amount field be a textbox that is invisible and when clicking on the checkbox i will make the particular textox visible.
my problems are

*) how to handle the event for checkbox
*)how will i identify that which row has been selected.
*)how will i store  the amount enterd in the textbox? shold i go for keeping a label in the same place?

please have an answer.
0
Tsvetoslav
Telerik team
answered on 10 Aug 2010, 11:43 AM
Hi Ebin,

Here are the steps in order to achieve your scenario:

1. You can add a grid template column for the text-box, put the text-box in the ItemTemplate of the column adn as you have correctly noted make the box hidden (not invisible, because if it is invisible it will not be rendered at all in the browser).

2. Attach an event handler to the onclick client event of the check-box.

3. In the client-side event handler, find the parent <tr> element through dom oeprations and then use $telerik.findElement(rowObject, "IDofTextBox") or $telerik.findControl(rowObject, "IDofTextBox) method to located the textbox withing the <tr> element.

4. Once you have the box, you can store the given value into it.

Greetings,
Tsvetoslav
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
Tags
Grid
Asked by
Ebin
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Ebin
Top achievements
Rank 1
Tsvetoslav
Telerik team
Share this question
or