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.
please also tell me how to replace
enFeeWebCurrencyEdit.setEnabled(true);
in version 15.1
thanks
Hello,
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://ko.infragistics.com/samples/aspnet/editors/webcurrencyeditor
Please let me know if you have any further questions concerning this matter.
thanks for reply
One more question
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 the update. Did you change the index of the cell/column you are trying to access the item at? From your markup it appears to be the first column or index 0, in the code you set me you are accessing the 4th column or index 3.
hi,
i am usging
CheckBox check = (Checkbox)WebDataGrid1.Rows[0].Items[3].FindControl("Checkbox2");
but value return null
plase help
Thank you for the update. If you have a control in a template and you want the value from that control you have to find the control first. For example:
However since you want a checkbox column I recommend you instead use our bound or unbound checkbox column:
http://help.infragistics.com/doc/ASPNET/2015.1/CLR4.0/?page=WebDataGrid_Columns.html
http://ko.infragistics.com/samples/aspnet/data-grid/checkbox-column
http://ko.infragistics.com/samples/aspnet/data-grid/unbound-checkbox-column
Concerning adding rows to your database what do you mean it isn’t working for adding two rows? Is it not adding to your database? Or is it not being added to the grid? Either way I recommend you set EnableDataViewState set to false and rebind your grid on postback. Otherwise you can run into issues with the previous data being maintained.
i was not found ig:TemplateDataField <asp:CheckBox ID="CheckBox2" runat="server" ClientIDMode="AutoID" />
value =1 or 0 or true or false.
Please help me .
foreach (GridRecord row in listWebGrid.Rows) {
string itm = row.Items[0].text;
}
----------------------------
<ig:WebDataGrid ID="listWebGrid" OnRowAdded="listWebGrid_RowAdded" OnRowAdding="listWebGrid_RowAdding" OnRowUpdated="listWebGrid_RowUpdated" OnRowUpdating="listWebGrid_RowUpdating" EnableAjaxViewState="true" EnableDataViewState="true" EnableAjax="true" Width="99%" StyleSetName="Office2007Black" runat="server" AutoGenerateColumns="false"> <Columns> <ig:TemplateDataField Key="chkBox" Width="40px" > <ItemTemplate > <asp:CheckBox ID="CheckBox2" runat="server" ClientIDMode="AutoID" /> </ItemTemplate> </ig:TemplateDataField>
<ig:BoundDataField DataFieldName="MessageDescription" Key="MessageDescription" Header-Text="Message"></ig:BoundDataField> <ig:BoundDataField DataFieldName="NotesMessageId" Key="NotesMessageId" Hidden="true"></ig:BoundDataField> </Columns> <Behaviors> <ig:EditingCore AutoCRUD="false"> <Behaviors> <ig:RowEditing Enabled="true" EnableDialog="true" EditModeActions-EnableOnActive="true" EditModeActions-MouseClick="Double"> <ColumnSettings>
<ig:EditingColumnSetting ReadOnly="true" ColumnKey="chkBox" /> </ColumnSettings> </ig:RowEditing> </Behaviors> </ig:EditingCore> </Behaviors>
</ig:WebDataGrid>
-----------------------
i insert two row to grid and insert to database it is not working in new version