Home  About Us   Contact  Search   Tell A Friend   Resources  dotnetVideos Store Register  Login  
  January 6, 2009  
telerik_dec08_sk2
CustomFormattingBasedUponData    

Page 2 of 3First   Previous   1  [2]  3  Next   Last   

Custom Formatting Based Upon Data: Step 4-Displaying the Product Information in a FormView

This step of the VIDEO TUTORIAL (included in Step 3 Video) will demonstrate on how to display UnitsInStock field in a FormView(with an ID as LowStockedProductsInRed) Control in Red color font, if the UnitsInStock value is less than 10. The LowStockedProductsInRed FormView control is bound to the same ObjectDataSource on the CustomColors.aspx web page. Once the FormView is bound to this ObjectDataSource, if we examine the declarative mark up of the CustomColors.aspx web page, we can observe that various templates such as ItemTemplate, EditItemTemplate, and InsertItemTemplate are added. The EditItemTemplate, and InsertItemTemplate are removed from the declarative mark up of the FormView control. For detailed information and source code for this step, please refer to the original article.

 
  View Video...

Custom Formatting Based Upon Data: Step 5- Programmatically Determining the Value of the Data in the DataBound Event Handler

This step of the VIDEO TUTORIAL will examine on how to format the display of UnitsInStock field in the FormView control at run time on the CustomColors.aspx web page, if the UnitsInStock value is less than 10. In order to achieve this, a DataBound event handler for the FormView control is created. Additional exploration of this event handler will be dealt in the next step of this video tutorial.
For detailed information and source code for this step, please refer to the original article.

 
  View Video...

Custom Formatting Based Upon Data: Step 6-Formatting the UnitsInStockLabel Label Control in the FormView's ItemTemplate

This step of the VIDEO TUTORIAL (included in Step 5 Video)will focus on adding custom code to the FormView’s DataBound event handler. In this event handler a label variable is initialized with reference to the actual DataItem of the product row instance whose UnitsInStock field is not null and the value is less than 10. The label control is found using FindControl method that fulfils the preceding criteria, following which the label control’s CssClass attribute is assigned with newly created css class ‘LowUnitsInStockEmphasis’ in the Style.css file of the project. Finally, a demonstration of the CustomColors.aspx web page at run time is made to demonstrate that the UnitsInStock column’s value will be displayed in ‘Red’ color, if its values is less than 10. For detailed information and source code for this step, please refer to the original article.

 
  View Video...

telerik_dec08_target_sky1
  Copyright 2008 by dotnetvideos.net   Terms Of Use | Privacy Statement