 |
|
 |
Hi..
I tried executing the code with the dll rebuit with the error fix mentioned to use the ClientID. Still I get an error saying that the javascript function :Toggle expand is undefined..
The observation I could make is that the dynamic file created had the script (having toggleExpand function) just above the dynamically created table.. It is not under the <head> tag.
Can anyone please post a fix for this.
Thanks,
Sruthi
|
|
|
|
 |
|
 |
It is good one, whether we can use this Grid in Ajax update panel
|
|
|
|
 |
|
 |
hi,
This is very nice. Got my 5.
Please have a look over my similar article: <a target="_blank" href="http://www.codeproject.com/KB/webforms/GroupGridView.aspx">Group GridView Data</a>
|
|
|
|
 |
|
 |
I have created a table named streptomyces in SQL server.. This table contains the columns isolates,refrence , species , antibiotics , resistant.
Now i need to create a page in asp.net in which there is a text box search. When we enter the search value , we need to search the entire table if that word is present.
If that particular search word is found , I need to display all the columns for that particular row.
Plss help me how to create the aspx.cs file. Plss its really urgent..
Mansi
Student
|
|
|
|
 |
|
 |
I am trying the expand/contract concept in a datagrid in vs2003.
when i try the same grid for exporting to excel i cant export it into excel.
can anyone please help me in this case.
the code i used is:
Response.ContentType = "application/vnd.ms-excel";
this.EnableViewState = false;
Response.Charset = String.Empty;
StringWriter myTextWriter = new StringWriter();
HtmlTextWriter myHtmlTextWriter = new HtmlTextWriter(myTextWriter);
Exdatagrid1.RenderControl(myHtmlTextWriter);
Response.Write(myTextWriter.ToString());
siva.
|
|
|
|
 |
|
 |
The below excerpt works for me when outputting office docs-though I am usually dealing with a buffer. I would imagine you could replace the Response.OutputStream.Write part with your TextWriter. // Clear the response buffer Response.Clear(); // add a header so we can name our file [Optional] string strFileName = "your_file.xls"; Response.AddHeader("Content-Disposition", "attachment;filename=" + strFileName); // Set the content-type so the browser knows what to do Response.ContentType = "application/vnd.ms-excel"; // now write out the file data..yours is textual so use what you have above i guess // Response.OutputStream.Write((byte[])buffer, 0, intLength); // End your response stream Response.End(); HTH, lacourem
|
|
|
|
 |
|
 |
hi eric,
Thanks for your reply.
i got the exported excel file.
But the gif image is there in the exported excel file.
i cleared the special controls like link.
can anyone help me in this case to clear the gif image.
|
|
|
|
 |
|
 |
Help!
is it possible to add icon in collapse/expand column header? to toggle the expand/collapse of all rows.
Thanks.
-- modified at 6:33 Thursday 12th January, 2006
|
|
|
|
 |
|
 |
Congratulations, quite nice grid
|
|
|
|
 |
|
 |
Tony - this is a really great grid - I've been coding ASP.NET for about a year now, but am only starting to get into creating my own controls, and looking at yours has helped immensely... my question is about adding an AlternatingItemStyle property to the ExColumn class. When I try to use the property, I get the following error:
Type 'Gorth.ExDataGrids.ExColumn' does not have a property named 'AlternatingItemStyle'.
Could you help me learn how to add this to your exColumn.cs file? Thanks a million!
Shelley
|
|
|
|
 |
|
 |
In normal datagrids, we format the columns like so: <ItemTemplate> <%# DataBinder.Eval(Container.DataItem, "MyDate", "{0:dd/MM/yy}") %> </ItemTemplate> How do we format the ExColumnExpand and ExColumn in ExDataGrid? Thanks!
|
|
|
|
 |
|
 |
I'm using the ItemDataBound event to format columns. Seems to work fine.
|
|
|
|
 |
|
 |
Hi,
your code just works fine,
i tried to adapt your code with the Northwind Products table, i made the necesary changes (perhaps not all of them), i am getting an error at line 233,
image.ID = this._exGroupName.ToString() + "_ctl_Icon";
the error says: Object reference not set to an instance of an object.
any ideas how to resolve this problem?
|
|
|
|
 |
|
 |
Make sure you set the ExGroupName property in the ASPX file.
|
|
|
|
 |
|
 |
I don't see the live demo working on Firefox, so if it's only usable in IE I see little worth in it at the moment.
If you can rewrite it for cross-browser uasabiltiy, then you'll have something.
|
|
|
|
 |
|
 |
Folks,
Nice control.
Has anyone tried editing within the expanded grid.
When I put the grid into edit mode ca I control which columns in both the row in editmode and the other non edit mode rows get expanded?
Cheers
Mick
|
|
|
|
 |
|
 |
I solved this problem with a workaround:
I optimized the edit mode:
I put all editable fields in the first column(s).
The expandable columns are hidden.
It works very fine.
http://kraftspl.ath.cx/index.htm
public -> Maintenance -> employees
kraftspl,ath.cx
|
|
|
|
 |
|
 |
Could you post a code or pseudocode sample on how you did this?
Mick
|
|
|
|
 |
|
 |
Hi,
I customized and added this expand datagrid to my website.
It works very good - even in a list for data maintenance.
http://kraftspl.ath.cx/index.htm
public -> Maintenance -> employees
kraftspl,ath.cx
|
|
|
|
 |
|
 |
Glad you could find some use with the custom control.
|
|
|
|
 |
|
 |
why online tests are not accessiable?
|
|
|
|
 |
|
 |
Yours control it's very useful and cool... but have a little bug in ExColumn.cs...
At line 232 must change this.Owner.ID in this.Owner.ClientID to be sure that the element ID of the table is pass correct at the js function if your control is placed not in a page but in UserControl.
if you develops a variant of ExColumn that extends even the TemplateColumn... send me the code
Thanks for your code and happy programming!
|
|
|
|
 |
|
 |
Good catch. I'll have to update the source and binaries when I get a chance.
|
|
|
|
 |
|
 |
Tony:
Thank you. The code is cool.
Ataru:
I encountered the same bug. Thanks to your posting, I am able to enjoy using Tony's code.
Re-build the ExColumn.cs, then use the newly created ExDataGrid.dll.
|
|
|
|
 |
|
 |
thank Mr. Truong with your tips, we can learn about datagrid, but this articel explain colums expand only, no expand row. because in this example use expand row. can be Mr Truong explain Expand Row in dataGrid
Thank's
Subandi@capcx.com
|
|
|
|
 |