i already purchage your tool
my question is
1)how to replace igedit_getById('<%=stdFeeWebCurrencyEdit.ClientID%>') in javascript
2)stdFeeWebCurrencyEdit.getValue(); in javascript
3)stdFeeWebCurrencyEdit.setValue(0) in javascript
on
<ig:WebCurrencyEditor ID="enFeeWebCurrencyEdit" runat="server" CssClass="normalText" MinValue="0" Nullable="False" Width="100px" MaxValue="100000"> </ig:WebCurrencyEditor> control on version 15.1
please help width code
thanks.
Hello,
Are you trying to add the row on the client side or server side? If you are adding it to your server you have to add it to your datasource then bind that datasource to your grid. If you are adding it on the client you can see the following forum threads:
http://es.infragistics.com/community/forums/t/20029.aspx
http://es.infragistics.com/community/forums/t/93139.aspx
http://es.infragistics.com/community/forums/t/91020.aspx
thanks for reply
One more question
how to add new row on
ig:WebDataGrid
please give me code
thanks
Thank you for the update. For Paging and sorting these features are now done through behaviors. You can see the following documentation to see how to set them up:
http://help.infragistics.com/doc/ASPNET/2015.1/CLR4.0/?page=WebDataGrid_Paging.html
http://help.infragistics.com/doc/ASPNET/2015.1/CLR4.0/?page=WebDataGrid_Sorting.html
You can see the following link for other behaviors of the grid:
http://help.infragistics.com/doc/ASPNET/2015.1/CLR4.0/?page=WebDataGrid_Behaviors.html
Setting a datasouce is going to be simuliar for example on one of my current samples this is how I bind the grid to a datatable in page load, where GetEmployees returns a datatable full of employees:
if (Session["GridData"] == null) { Session["GridData"] = GetEmployees(50); WebDataGrid1.DataSource = Session["GridData"]; WebDataGrid1.DataBind(); } else { WebDataGrid1.DataSource = Session["GridData"]; }
this is my old code to bind grid
Please tell me how it is use in ig:WebDataGrid 15.1
int recordCount = 0;
TextBox txtRepName = (TextBox)Utils.Helper.FindControl(this.Page, "txtRepName"); txtRepName.Focus(); strRepName = (txtRepName.Text).ToString() == "" ? null : txtRepName.Text; // Set Paging Information. listWebGrid.DisplayLayout.Pager.PageSize = gridDefaultPageSize; int pageSize = listWebGrid.DisplayLayout.Pager.PageSize; int pageNo = listWebGrid.DisplayLayout.Pager.CurrentPageIndex;
// Set Sort Order. string sortOrder = (SortOrder == SortIndicator.Descending) ? Constants.Ascending : Constants.Descending;
DataTable dtRepresentatives = BLUser.GetAllRepsByPaging(false, strRepName, pageNo, pageSize, SortField, sortOrder, out recordCount).Tables[0]; listWebGrid.DataSource = dtRepresentatives; listWebGrid.DataBind(); listWebGrid.DisplayLayout.Pager.PageCount = Convert.ToInt32(Math.Ceiling(recordCount * 1.0 / pageSize));
//If pagecount is 0 the pager should display Page 1 of 1 instead //of Page 1 of 0 if (listWebGrid.DisplayLayout.Pager.PageCount == 0) listWebGrid.DisplayLayout.Pager.PageCount = 1;
thnaks
Thank you for contacting Infragistics!
We received your support request concerning converting to v15.1 WebCurrencyEditor, and this case has been assigned to me. I have done an initial review of your case and first to find the control in JavaScript you can do the following:
var curEdit = $find(“<%=WebCurrencyEditor1.ClientID%>”);
To get/set the value you would use get_value and set_value:
http://help.infragistics.com/doc/ASPNET/2015.1/CLR4.0/?page=WebTextEditor~Infragistics.Web.UI.WebNumericEditor~value.html
var value = curEdit.get_value();curEdit.set_value(0);
For enabling you would use set_enabled:
http://help.infragistics.com/doc/ASPNET/2015.1/CLR4.0/?page=WebTextEditor~Infragistics.Web.UI.WebTextEditor~enabled.html
curEdit.set_enabled(true);
You can see the following links for further documentation and samples concerning this control:
http://help.infragistics.com/doc/ASPNET/2015.1/CLR4.0/?page=Web_WebCurrencyEditor.html
http://es.infragistics.com/samples/aspnet/editors/webcurrencyeditor
Please let me know if you have any further questions concerning this matter.