PC Review


Reply
Thread Tools Rate Thread

Best way to generate custom UI component?

 
 
sean.gilbertson@gmail.com
Guest
Posts: n/a
 
      7th Feb 2007
Hi,

I'm sort of new to ASP.NET 2.0 and ASP.NET in general. I have some
data that I would like to display in a tabular format, but I'm going
to be generating the columns dynamically, and I would like to make it
so that each row can be expanded downward dynamically to show detailed
information.

So far, it seems like I'll have to use an asp:Table and generate the
entire thing in code -- including the Javascript to hide and show the
detailed information. Is this the case? Is there some way I can
externalize this behavior, like in a user control or something?

If I weren't using ASP.NET 2.0, I'd be using jQuery to generate all of
this dynamically. Is there an easier way in ASP.NET 2.0?

Thanks :-)
Sean

 
Reply With Quote
 
 
 
 
Tim Mackey
Guest
Posts: n/a
 
      7th Feb 2007
hi sean,
out of the box, the way .net handles this sort of thing is with a
combination of gridview and detailsview controls. you view the records in
the gridview and select one then, which displays whatever info you want in
the detailsview below the gridview (or above). you can scroll to the
details view position. but your idea with the javascript sounds nicer. i
haven't come across a control that does this. however there is an ajax
CollapsiblePanel control
http://ajax.asp.net/ajaxtoolkit/Coll...iblePanel.aspx
i guess you've already thought about this though and you want to have the
columns as part of a single table to keep the column widths consistent. i
doubt the collapsiblePanel will do this.

hope somebody else can make a better suggestion
tim


<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
>
> I'm sort of new to ASP.NET 2.0 and ASP.NET in general. I have some
> data that I would like to display in a tabular format, but I'm going
> to be generating the columns dynamically, and I would like to make it
> so that each row can be expanded downward dynamically to show detailed
> information.
>
> So far, it seems like I'll have to use an asp:Table and generate the
> entire thing in code -- including the Javascript to hide and show the
> detailed information. Is this the case? Is there some way I can
> externalize this behavior, like in a user control or something?
>
> If I weren't using ASP.NET 2.0, I'd be using jQuery to generate all of
> this dynamically. Is there an easier way in ASP.NET 2.0?
>
> Thanks :-)
> Sean
>


 
Reply With Quote
 
sean.gilbertson@gmail.com
Guest
Posts: n/a
 
      7th Feb 2007
On Feb 7, 11:55 am, "Tim Mackey" <tim.mac...@community.nospam> wrote:
> hi sean,
> out of the box, the way .net handles this sort of thing is with a
> combination of gridview and detailsview controls. you view the records in
> the gridview and select one then, which displays whatever info you want in
> the detailsview below the gridview (or above). you can scroll to the
> details view position. but your idea with the javascript sounds nicer. i
> haven't come across a control that does this. however there is an ajax
> CollapsiblePanel controlhttp://ajax.asp.net/ajaxtoolkit/CollapsiblePanel/CollapsiblePanel.aspx
> i guess you've already thought about this though and you want to have the
> columns as part of a single table to keep the column widths consistent. i
> doubt the collapsiblePanel will do this.
>
> hope somebody else can make a better suggestion
> tim
>
> <sean.gilbert...@gmail.com> wrote in message
>
> news:(E-Mail Removed)...
>
> > Hi,

>
> > I'm sort of new to ASP.NET 2.0 and ASP.NET in general. I have some
> > data that I would like to display in a tabular format, but I'm going
> > to be generating the columns dynamically, and I would like to make it
> > so that each row can be expanded downward dynamically to show detailed
> > information.

>
> > So far, it seems like I'll have to use an asp:Table and generate the
> > entire thing in code -- including the Javascript to hide and show the
> > detailed information. Is this the case? Is there some way I can
> > externalize this behavior, like in a user control or something?

>
> > If I weren't using ASP.NET 2.0, I'd be using jQuery to generate all of
> > this dynamically. Is there an easier way in ASP.NET 2.0?

>
> > Thanks :-)
> > Sean


Thanks for the info and suggestions, Tim :-) I hope things are going
well for you today.

I like to have a lot of control over the UI of a web app. What I've
been doing for about 4 years now is constructing interfaces that are
tailored to the task. This usually means that I'll code from scratch
in HTML and Javascript. Right now, the tools I prefer are jQuery and
Ruby on Rails -- though I did have to write a jQuery add-on library
for generating DOM nodes dynamically (http://www.pinkblack.org/itblog/?
page_id=22).

Anyway :-) The point is that I tend to build things from scratch
because I find that the best and most fitting UI components can be
achieved that way. I'd love to be able to have this kind of power
(and more) in ASP.NET, especially now that it can do some Ajax.

Take care,
Sean

 
Reply With Quote
 
Tim Mackey
Guest
Posts: n/a
 
      7th Feb 2007
hi sean,
i totally agree and find myself taking the same approach most of the time.
the .net controls are good, but to really achieve what you want, i agree
that you'll probably need to roll your own this time as well.
good luck with it
tim


<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> On Feb 7, 11:55 am, "Tim Mackey" <tim.mac...@community.nospam> wrote:
>> hi sean,
>> out of the box, the way .net handles this sort of thing is with a
>> combination of gridview and detailsview controls. you view the records
>> in
>> the gridview and select one then, which displays whatever info you want
>> in
>> the detailsview below the gridview (or above). you can scroll to the
>> details view position. but your idea with the javascript sounds nicer.
>> i
>> haven't come across a control that does this. however there is an ajax
>> CollapsiblePanel
>> controlhttp://ajax.asp.net/ajaxtoolkit/CollapsiblePanel/CollapsiblePanel.aspx
>> i guess you've already thought about this though and you want to have the
>> columns as part of a single table to keep the column widths consistent.
>> i
>> doubt the collapsiblePanel will do this.
>>
>> hope somebody else can make a better suggestion
>> tim
>>
>> <sean.gilbert...@gmail.com> wrote in message
>>
>> news:(E-Mail Removed)...
>>
>> > Hi,

>>
>> > I'm sort of new to ASP.NET 2.0 and ASP.NET in general. I have some
>> > data that I would like to display in a tabular format, but I'm going
>> > to be generating the columns dynamically, and I would like to make it
>> > so that each row can be expanded downward dynamically to show detailed
>> > information.

>>
>> > So far, it seems like I'll have to use an asp:Table and generate the
>> > entire thing in code -- including the Javascript to hide and show the
>> > detailed information. Is this the case? Is there some way I can
>> > externalize this behavior, like in a user control or something?

>>
>> > If I weren't using ASP.NET 2.0, I'd be using jQuery to generate all of
>> > this dynamically. Is there an easier way in ASP.NET 2.0?

>>
>> > Thanks :-)
>> > Sean

>
> Thanks for the info and suggestions, Tim :-) I hope things are going
> well for you today.
>
> I like to have a lot of control over the UI of a web app. What I've
> been doing for about 4 years now is constructing interfaces that are
> tailored to the task. This usually means that I'll code from scratch
> in HTML and Javascript. Right now, the tools I prefer are jQuery and
> Ruby on Rails -- though I did have to write a jQuery add-on library
> for generating DOM nodes dynamically (http://www.pinkblack.org/itblog/?
> page_id=22).
>
> Anyway :-) The point is that I tend to build things from scratch
> because I find that the best and most fitting UI components can be
> achieved that way. I'd love to be able to have this kind of power
> (and more) in ASP.NET, especially now that it can do some Ajax.
>
> Take care,
> Sean
>


 
Reply With Quote
 
sean.gilbertson@gmail.com
Guest
Posts: n/a
 
      7th Feb 2007
On Feb 7, 12:29 pm, "Tim Mackey" <tim.mac...@community.nospam> wrote:
> hi sean,
> i totally agree and find myself taking the same approach most of the time.
> the .net controls are good, but to really achieve what you want, i agree
> that you'll probably need to roll your own this time as well.
> good luck with it
> tim
>
> <sean.gilbert...@gmail.com> wrote in message
>
> news:(E-Mail Removed)...
>
> > On Feb 7, 11:55 am, "Tim Mackey" <tim.mac...@community.nospam> wrote:
> >> hi sean,
> >> out of the box, the way .net handles this sort of thing is with a
> >> combination of gridview and detailsview controls. you view the records
> >> in
> >> the gridview and select one then, which displays whatever info you want
> >> in
> >> the detailsview below the gridview (or above). you can scroll to the
> >> details view position. but your idea with the javascript sounds nicer.
> >> i
> >> haven't come across a control that does this. however there is an ajax
> >> CollapsiblePanel
> >> controlhttp://ajax.asp.net/ajaxtoolkit/CollapsiblePanel/CollapsiblePanel.aspx
> >> i guess you've already thought about this though and you want to have the
> >> columns as part of a single table to keep the column widths consistent.
> >> i
> >> doubt the collapsiblePanel will do this.

>
> >> hope somebody else can make a better suggestion
> >> tim

>
> >> <sean.gilbert...@gmail.com> wrote in message

>
> >>news:(E-Mail Removed)...

>
> >> > Hi,

>
> >> > I'm sort of new to ASP.NET 2.0 and ASP.NET in general. I have some
> >> > data that I would like to display in a tabular format, but I'm going
> >> > to be generating the columns dynamically, and I would like to make it
> >> > so that each row can be expanded downward dynamically to show detailed
> >> > information.

>
> >> > So far, it seems like I'll have to use an asp:Table and generate the
> >> > entire thing in code -- including the Javascript to hide and show the
> >> > detailed information. Is this the case? Is there some way I can
> >> > externalize this behavior, like in a user control or something?

>
> >> > If I weren't using ASP.NET 2.0, I'd be using jQuery to generate all of
> >> > this dynamically. Is there an easier way in ASP.NET 2.0?

>
> >> > Thanks :-)
> >> > Sean

>
> > Thanks for the info and suggestions, Tim :-) I hope things are going
> > well for you today.

>
> > I like to have a lot of control over the UI of a web app. What I've
> > been doing for about 4 years now is constructing interfaces that are
> > tailored to the task. This usually means that I'll code from scratch
> > in HTML and Javascript. Right now, the tools I prefer are jQuery and
> > Ruby on Rails -- though I did have to write a jQuery add-on library
> > for generating DOM nodes dynamically (http://www.pinkblack.org/itblog/?
> > page_id=22).

>
> > Anyway :-) The point is that I tend to build things from scratch
> > because I find that the best and most fitting UI components can be
> > achieved that way. I'd love to be able to have this kind of power
> > (and more) in ASP.NET, especially now that it can do some Ajax.

>
> > Take care,
> > Sean


Thanks :-) And it's comforting to hear these words from a fellow
developer! I don't get to talk to many other programmers very often,
sadly. (BTW: Can you recommend any good programming trade journals?)

Anyway, so this foray into ASP.NET was worth it: Now I have a defense
for "How come you didn't use ASP.NET again?" Right? :-)

Take care,
Sean!

 
Reply With Quote
 
sean.gilbertson@gmail.com
Guest
Posts: n/a
 
      8th Feb 2007
On Feb 7, 12:29 pm, "Tim Mackey" <tim.mac...@community.nospam> wrote:
> hi sean,
> i totally agree and find myself taking the same approach most of the time.
> the .net controls are good, but to really achieve what you want, i agree
> that you'll probably need to roll your own this time as well.
> good luck with it
> tim
>
> <sean.gilbert...@gmail.com> wrote in message
>
> news:(E-Mail Removed)...
>
> > On Feb 7, 11:55 am, "Tim Mackey" <tim.mac...@community.nospam> wrote:
> >> hi sean,
> >> out of the box, the way .net handles this sort of thing is with a
> >> combination of gridview and detailsview controls. you view the records
> >> in
> >> the gridview and select one then, which displays whatever info you want
> >> in
> >> the detailsview below the gridview (or above). you can scroll to the
> >> details view position. but your idea with the javascript sounds nicer.
> >> i
> >> haven't come across a control that does this. however there is an ajax
> >> CollapsiblePanel
> >> controlhttp://ajax.asp.net/ajaxtoolkit/CollapsiblePanel/CollapsiblePanel.aspx
> >> i guess you've already thought about this though and you want to have the
> >> columns as part of a single table to keep the column widths consistent.
> >> i
> >> doubt the collapsiblePanel will do this.

>
> >> hope somebody else can make a better suggestion
> >> tim

>
> >> <sean.gilbert...@gmail.com> wrote in message

>
> >>news:(E-Mail Removed)...

>
> >> > Hi,

>
> >> > I'm sort of new to ASP.NET 2.0 and ASP.NET in general. I have some
> >> > data that I would like to display in a tabular format, but I'm going
> >> > to be generating the columns dynamically, and I would like to make it
> >> > so that each row can be expanded downward dynamically to show detailed
> >> > information.

>
> >> > So far, it seems like I'll have to use an asp:Table and generate the
> >> > entire thing in code -- including the Javascript to hide and show the
> >> > detailed information. Is this the case? Is there some way I can
> >> > externalize this behavior, like in a user control or something?

>
> >> > If I weren't using ASP.NET 2.0, I'd be using jQuery to generate all of
> >> > this dynamically. Is there an easier way in ASP.NET 2.0?

>
> >> > Thanks :-)
> >> > Sean

>
> > Thanks for the info and suggestions, Tim :-) I hope things are going
> > well for you today.

>
> > I like to have a lot of control over the UI of a web app. What I've
> > been doing for about 4 years now is constructing interfaces that are
> > tailored to the task. This usually means that I'll code from scratch
> > in HTML and Javascript. Right now, the tools I prefer are jQuery and
> > Ruby on Rails -- though I did have to write a jQuery add-on library
> > for generating DOM nodes dynamically (http://www.pinkblack.org/itblog/?
> > page_id=22).

>
> > Anyway :-) The point is that I tend to build things from scratch
> > because I find that the best and most fitting UI components can be
> > achieved that way. I'd love to be able to have this kind of power
> > (and more) in ASP.NET, especially now that it can do some Ajax.

>
> > Take care,
> > Sean


Update: I looked into some code that was written for this app in a
place where the same type of task was accomplished, and I discovered
that they didn't use the .NET widgets at all; they used XSL
templates. XSL is cool but I think it's more work than my method.
Anyway, it's interesting to see that data-bound - or other - .NET
controls weren't used.

Take care!
Sean

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Generate WindowsForm from Custom Form Pavel Rosoi Microsoft Outlook Form Programming 1 28th May 2008 02:04 PM
Item_Send: How to generate a non-custom form message from custom f =?Utf-8?B?c3VwcG9ydHVzYQ==?= Microsoft Outlook Form Programming 3 9th Apr 2007 10:37 PM
Can a <asp:contentplaceholder> generate custom events? Beatniks Microsoft ASP .NET 0 23rd Dec 2005 06:07 PM
The system has called a custom component and that component has failed and generated an exception. lil_miss_sassy_girl@yahoo.com Microsoft Windows 2000 Developer 0 31st Jan 2005 05:23 PM
The system has called a custom component and that component has .. =?Utf-8?B?QW1pdCBCaGF0bmFnYXI=?= Microsoft Windows 2000 Advanced Server 2 17th Aug 2004 06:47 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:53 AM.