Showing posts with label display. Show all posts
Showing posts with label display. Show all posts

Wednesday, March 28, 2012

Atlas with multiple GridViews

I have a page which needs to allow user to populate fields by selecting rows from Gridviews. I would like to temporarily display a GridView with search field to locate a row, then populate the associated field with a value from GridView row and move on to the next field with it's own associated GridView.

Is it possible to do true Ajax with Atlas, e.g. load content dynamically? It would be nice if the GridViews didn't load their corresponding data sources until acutally needed for a given field. I thought I might use the Atlas Control Toolkit's collapsible panel component but not sure if this is the best way to only render a GridView when it's needed.

Any suggestions on how to go about this would be appreciated.

hello.

though i haven't understood your scenario very well, i think that atlas can help you accomplish this. since you've spoken about gridviews, i think you'll want to use the server side approach, where you use an updatepanel to have a partial update zone on the page.

in these situations, you can have a placeholder and add controls dinamically to that control during postbacks (partial or complete).


Hi Luis

I'm not sure I understand my scenario completely either ;)

But suppose I have a drive name field. If a user clicks on choose button, a panel with search field and GridView pops up, allowing the user to select a driver from the user database. The driver name field is populated and the GridView disappears. Since I have a number of fields I need to allow the user to fill by choosing from a GridView I don't want to populate the page with GridViews at the outset.

Your idea sounds like it could work, but I'm unclear on what events I should use to dynamically add the GridView and search field. It would be great if you could direct me to a sample where someone uses Atals to replace content dynamically (would be great if it was with a GridView ;).

Thanks much!

hello.

hum...i think that basically we're talking about dynamic replacement of a portion of the page. you may use usercontrols to encapsulate both parts (on has the textbox and the search button and the other user control has the grid) and you'll need to work with the params collection in order to replace the controls dynamically (search the forums because one or two days ago i've wrote a small sample that shows how to replace the usercontrols dynamically in an updatepanel).

Monday, March 26, 2012

Atlas UpdatePanel wont display certain data records

I have a page with a GridView that displays about 50 records, 5 per page. Works great without Atlas. Once I added an Atlas UpdatePanel to the page, the paging of the GridView stopped working. I've researched the problem, added a DetailsView control to the UpdatePanel, and discovered that the 9th record of the dataset won't display with Atlas, but will without Atlas. I can't find anything unusual with the data record. Any help/suggestions? Thanks.

Is it possible that the record contains some data that is not properly HTML encoded? If it's not confidential data, can you show part of that record so we can see it?

We made a number of fixes in the March CTP to allow for more relaxed support for HTML. In the next CTP we will have even better support for data that isn't quite XHTML compliant as well.

Thanks,

Eilon

Saturday, March 24, 2012

Atlas Tutorials

Hi all .. please tell me where i can find atlas tutorials and training ... i am working on a project for stock market and i have to display alot of information live from database without the round trip to server.
If anyone knows about good bookds tutorials or training please provide me.http://atlas.asp.net/docs/default.aspx

Atlas TextBox with 2 column ListView as Completion suggestions

Anybody know how to implement this? When implementing autocompletion I need to display more info on the code that the enduser is typing. So instead of the list I get out of the box when trying autocompletion, I was thinking of implementing a mulicolumn listview ( or something similar).
Anybody know how to do this?
Borge3000

For now, you would have to write your own AutoComplete behavior, orperhaps extend the current one. Perhaps if lots of people areinterested in such a behavior, I could put it together sometime for you.

I would very much like this. Maybe you could outline what to to to make this myself?

Wednesday, March 21, 2012

Atlas question

Hello all,

Thanks in advance for any help.

I used a datalist to display data, I have to build paging and sorting. I used hidden fields to store the sort field and sort command. It works fine as expect, but when I put it inside of the updatepanel, the hidden fields are all empty. Is there a way to solve this problem. I tried to replace the hidden field with static variables, but I don't like the way the static variables work.

can you enable EnablePartialRendering in script manager?

then wrap only controls need to get update within UpdatePanel

PS. remember to keep registry hidden field in each time of post back...


I put these hidden fields and put inside of the UpdatePanel, it works great.

Thanks