Want to know if XamWebGrid supports the Following
1) Ability to Store Hidden Values(Some Thing Like UserData) at Cell Level,Row Level and Column Level ? Propbably Store Light Weight Structure or clas into Cell, and be able to access it whenever cell values changes
2) Say if a Value is changed in Cell, Can i Call webService and update other Column using data Returned by this Web Service?
3) CasCasding Combobox (Specifically which can call Web Service automatically) as present in Ajax Toolkit ?
4) How to do CRUD using XamWebGrid ?
Will Appreciate sample that shows the above metioned functionalty.
yes. exactly that
Hi,
Every Cell, Row, and Column object have a Tag property, which is of type object and can be used for storing any data that you'd like.
Is this what you're looking for?
-SteveZ
1) I meant that for each cell storing more information, which is hidden, but can be used for decisiion making
i.e i want to store, OldValue,IsValueValid,OrginalStyleName(To Rvert Back when error is corrected) at cell level.Then at Row Level i want to store something in the Same Lines, Don't use this Row for Sum, as the Value is not valid, UseInSum.
In Other Word i am Looking for Property where i can place my custom Data at Cell Level, RowLevel and column Level which is not visibale.
In One of My Pas Projects i have used One of Third Party COmponent(Probably ComponentOne) and they had USerData Property at Cell,Column and Row Level where i could store such data.
Something Like, Cell.Backcolor= Yellow, this property would be Cell.UserData="store anything", nice if it can store Object, instead of string.
This property should be accessible from Cell Events, similarly for column & Rows
Colum1.UserData and Row1.UserData
ANy sample on How To Call WebService from Cell Editiing Events?
1) Not sure I totally understand the scenario, but can hide columns. If you use something like a template column, inside of the DataTemplate you have full access to all of the properties of the object bound to that specific row.
2) There are cell entry and exit events that would allow you to do this. See this help topic which lists the Cell Edting events available:http://help.infragistics.com/Help/NetAdvantage/Silverlight/2009.1/CLR3.5/html/SL_xamWebGrid_Editing_Data.html
3) Not something that is built in, but its certainly possible. In the product samples, we have examples of emedding a combobox into a grid cell using the TemplateColumn and binding the combobox to a seperate items source
4) The grid uses standard two-way Silverlight data binding internally, so when you make a change to a cell value it automatically updates the underlying itemsource object bound to the grid. You would have to implement some mechanism such as a web service that would let you send the changes in that itemssource object back to your server. You might take a look at using something like Microsofts RIA Services which is in CTP, or if you want something production ready today, I have used IdeasBlades DevForce product with our Silverlight controls before to handle the CRUD operations.
I would love to know more about the application your building and the specifics around the scenarios you are looking to implement.