BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
InlineForm - grid
one -it's possible if i select product code(str_product_code) in grid client side event (ajax JSON ) bind price automatically
<ej:Grid ID="OrdersGrid" runat="server" AllowPaging="True" > <ClientSideEvents ActionComplete="actionComplete" /> <EditSettings AllowAdding="True" AllowDeleting="True" AllowEditing="True"></EditSettings> <ToolbarSettings ShowToolbar="True" ToolbarItems="add,edit,delete,update,cancel"></ToolbarSettings> <Columns> <ej:Column Field="EmployeeID" HeaderText="Employee Name" IsPrimaryKey="True" ForeignKeyField="EmployeeID" ForeignKeyValue="FirstName" TextAlign="Left" Width="90" /> <ej:Column Field="Freight" HeaderText="Freight" TextAlign="Right" Width="75" Format="{0:C}" EditType="Numeric"> <NumericEditOptions DecimalPlaces="2"></NumericEditOptions> </ej:Column> </Columns> |
<script type="text/javascript">
function actionComplete(args) { if (args.requestType == "add") { var proxy = this._id; $("#" + this._id + "EmployeeID").ejDropDownList({ select: function (args) { //select event in dropdownlist $.ajax({ url: "/Default.aspx/dropdowndata", type: "POST", contentType: "application/json; charset=utf-8", data: JSON.stringify({ id: args.value }), dataType: "json", success: function (data) { //set value to the Freight column if ($('#' + proxy + 'Freight').hasClass("e-numerictextbox")) { var obj = $('#' + proxy + 'Freight').ejNumericTextbox("instance"); obj.option("value", data.d); //if using numeric text box } else $('#' + proxy + 'Freight').val(data.d); //if using ordinary text box } }); } }) } } |