
Hi!
I've read and read all day and I believe noone has written about how to update a for instance a label inside CommandItemTemplate client side when selecting some rows in the grid.
In my case I have
<telerik:RadGrid ID="RadGrid1" runat="server" AllowMultiRowSelection="true" >
<ClientSettings>
<Selecting AllowRowSelect="true" />
</ClientSettings>
<MasterTableView CommandItemDisplay="Top" DataKeyNames="Id" Width="100%">
<CommandItemTemplate>
<asp:Label ID="Totall" runat="server" ></asp:Label>
</CommandItemTemplate>
<Columns>
<telerik:GridBoundColumn DataField="Id" HeaderText="Id" ReadOnly="True" UniqueName="Id" Visible="false">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Amount" HeaderText="Amount" SortExpression="Amount" UniqueName="Amount" DataFormatString="{0:N2}">
<HeaderStyle Width="50px" />
</telerik:GridBoundColumn>
<telerik:GridClientSelectColumn HeaderStyle-Width="20px" ItemStyle-Width="10px" UniqueName="Select1" />
How do I get the selected amounts from each row and show the total selected amount in label "Total" in the CommandItemTemplate? (and keep selected rows selected)
Thanks a million in advance and best regards.
Soren.
| objControl = $find("rcboMatJobNo") |
| objControl.set_text("Job") |
| __doPostBack(objControl.get_id(), '{\"Command\":\"TextChanged\"}', "") |
| objControl = $find("rtxtMatAmount") |
| objControl.set_value("Amount") |
| __doPostBack(objControl.get_id(), '{\"Command\":\"TextChanged\"}', "") |
| objControl = $find("rtxtMatPrice") |
| objControl.set_value("Price") |
| __doPostBack(objControl.get_id(), '{\"Command\":\"TextChanged\"}', "") |
| objControl = $find("rcboMatMaterialNo") |
| objControl.set_text("Mat") |
| __doPostBack(objControl.get_id(), '{\"Command\":\"TextChanged\"}', "") |

| <td class="rsCell"><div class="rsWrap" style="z-index: 36;"> |
| <div title="07:30" id="ctl00_placeActionZone_Ant_calendar1_radCalendar_35_0" class="rsApt" style="height: 200%; width: 45%; padding-bottom: 2px; left: 0%;"> |
| <div class="rsAptWrap" style="padding-bottom: 1px;"> |
| <div class="rsAptInner"> |
| <div class="rsAptContent"> |
| <div class="appointement free" style="background-color: rgb(255, 255, 0); color: rgb(17, 17, 17);"> |
| <img src="images/general/trans.gif" class="appointement_icon">07:30 </div> |
| </div> |
| </div><a class="rsAptDelete" href="ant_modules/#">delete</a><div class="rsAptResize" style="z-index: 80;"> |
| <!-- --> |
| </div><div class="rsAptBottom"> |
| </div> |
| </div> |
| </div> |
| </div></td> |
....Is there another way to completly disable the RadDatePicker? Or is there a way to prevent the exception to be thrown when no handler is installed on the popupButton?
var datePickerInput= control.get_dateInput();
if ( enableFlag && !datePickerInput.get_enabled())
{
datePickerInput.enable();
$addHandler( control.get_popupButton(), "click", control._onPopupButtonClickDelegate);
}
else if ( !enableFlag && datePickerInput.get_enabled())
{
datePickerInput.disable();
$removeHandler( control.get_popupButton(), "click", control._onPopupButtonClickDelegate);
}
....