Hi,
I have used Webgrid contains the RowEditTemplate in which many textbox controls as well as the Rating control of the Ajax are placed.
All the values are fetched and stroed into autormatically to the textbox. But the only problem is with the Ajax Rating Control...
Means i am to able to fetch the value of the rating but when i set that value, in display it is not reflected..
Ex..
Initally i have set the currentvalue of the Rating control to 0
There are three rows.. Each row has the value 3,5,1 respectely fetched from the database
Here in the BeforeRowTemplateOpen client-side function.
I am able to get the value, but when i set that value in the cell. The rating is not filled with appropriate value
Here i have used following client-side code..
function BeforeRowTemplateOpen(gridName, rowId, templateId ){var dd = document.getElementById("UG1_ctl00_rtRating_RatingExtender_ClientState");
//alert(dd.value); Here if i am allerting the value then
var grid = igtbl_getGridById(gridName);var row = igtbl_getRowById(rowId); var cell=row.getCell(13); dd.value=cell.getValue(); }
<RowEditTemplate><cc1:Rating ID="rtRating" runat="server" AutoPostBack="false" columnKey="Rating" MaxRating="5" ReadOnly="True" StarCssClass="ratingStar" CurrentRating='3'WaitingStarCssClass="savedRatingStar" FilledStarCssClass="filledRatingStar" EmptyStarCssClass="emptyRatingStar" Height="12px" Width="138px"></cc1:Rating></RowEditTemplate>
Even i have checked with the dropdown instead of the Ajax control but still i can't able to dispaly the desired value
Can any one help me out...
Thanks
Bijal Shah