or
| function SetTotalCost2(sender, args) |
| { |
| var grid = $find('<%=gridBudget.ClientID %>'); |
| var MasterTable = grid.get_masterTableView(); |
| var Rows = MasterTable.get_dataItems(); |
| var textbox1 = Rows[1].findControl("txtCostPerUnit"); //which row no. to use to get add new row reference |
| var textbox2 = Rows[1].findControl("txtNoOfUnit"); |
| var textbox3 = Rows[1].findControl("txtTotalCost"); |
| textbox3.set_value(textbox1.get_value() * textbox2.get_value()); |
| } |
Could you please help. I don't know how to access row while adding a new record on client side.
Many thanks,
Sana Khurram
<telerik:RadSiteMapNode Value="{\"linkid\": \"230\"}" NavigateUrl="javascript:NavTo(this);" Text="Agency Info" />function NavTo(sender) { // somehow find out the value from the RadSiteMapNode clicked to retrieve the link
var linkId = '230'; $find(window.ajaxManagerID).ajaxRequest('MenuNav:' + linkId);}var dockZoneDroppedOnID = "";var displayOverBaseID = "";//Handles drawing the LoadingPanels over the correct elements when callbacks are occurring. var loadingPanel = "";var pageRequestManager = Sys.WebForms.PageRequestManager.getInstance();var postBackElement = "";pageRequestManager.add_initializeRequest(initializeRequest);pageRequestManager.add_endRequest(endRequest);//This will display a loading panel over a control. It's useful to change what the loading panel is being//displayed over in some scenarios because it just doesn't look quite right. e.g. when moving between panels//the loading panel should only be the size of the pane that the dock is moving to, not the full size of the dock currently.function initializeRequest(sender, eventArgs) { loadingPanel = $find(radAjaxLoadingPanel1ID); loadingPanel.hide(postBackElement); postBackElement = eventArgs.get_postBackElement().id; //When drag and dropping the 'interesting' control isn't where we're coming from but where we're going to. if (dockZoneDroppedOnID != "") { postBackElement = $find(dockZoneDroppedOnID).get_parent().get_id(); dockZoneDroppedOnID = ""; } else if (displayOverBaseID != "") { postBackElement = displayOverBaseID; displayOverBaseID = ""; } loadingPanel.show(postBackElement);}//This will hide the loading panel thats currently being displayed and, //if the user decided to continue dropping things onto the page, it will fire//the next event.function endRequest(sender, eventArgs) { loadingPanel = $find(radAjaxLoadingPanel1ID); loadingPanel.hide(postBackElement); if (droppedItemQueue.length > 0) { droppedItemQueue.shift(); //Remove the ID of the control we just finished. droppedItemQueue.shift(); //Remove the data for the control we just finished. } //If we've got more ajax requests queued up. while (droppedItemQueue.length > 0) { var uniqueDockZoneID = droppedItemQueue.shift(); var data = droppedItemQueue.shift(); $find(radAjaxManagerID).ajaxRequestWithTarget(uniqueDockZoneID, $.toJSON(data)); } if( resizeQueue.length > 0) { resizeQueue.shift(); //Remove the ID of the control we just finished. } while (resizeQueue.length > 0) { var resizedID = resizeQueue.shift(); $find(radAjaxManagerID).ajaxRequestWithTarget(resizedID); }}