How To Use Grid With Check Box In DevExpress
May 12, 2010How to use Grid with check box in devExpress . i have grid with data i want to get the valuse if the check box is checked
View 2 RepliesHow to use Grid with check box in devExpress . i have grid with data i want to get the valuse if the check box is checked
View 2 RepliesI have a DevExpress grid that needs to be refreshed every time the value in a combobox is changed. For example, I have a combobox that sets the grid's page size. One of the requirements is that the combobox does not cause a full postback.
The combobox is declared like this:
<asp:DropDownList ID="cboPages" AutoPostBack="false" runat="server"
EnableViewState="false" OnSelectedIndexChanged="cboPages_SelectedIndexChanged" />
On selected index changed, it sets a cookie whose value is the selected value. When the combobox value changes, a javascript function is called:
function PerformCallbackOnGrid(grid) {
try {
grid.PerformCallback("refresh");[code]....
The function is attached in code behind: this.cboPages.Attributes["onChange"] = "PerformCallbackOnGrid(" + this.GridClientID + ")";
After performing these steps:The user changes the grid page size using the combobox, so PerformCallback is called at least once.
The user presses F5(refresh).
The user tries to change the page size again.
an 'Invalid viewstate' error message appears.
I have tried setting ViewStateMode to Disabled for the grid, also EnableViewState="false".
I am filling a grid view with the data table but on each row i want a check box.
View 3 RepliesHow to check for grid view empty or not.
View 1 RepliesIn a grid view i have used paging for that i have used the view state to store datatale to bind it on GridView1_PageIndexChanging event every thing works fine but the problem happens with the first column which is having the checkbox placed in each row .On navigation all checked check box becomes unchecked how to maintain the state of check box as well.this is the aaspx code
<Columns>
<asp:TemplateField HeaderText="Select Student">
<ItemTemplate>
<asp:CheckBox id="Chek" runat="server" Text="select" ></asp:CheckBox>
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField HeaderText="Enrollment No." DataField="enrollment_no" />
<asp:BoundField HeaderText="Course Name" DataField="course_name"/>
<asp:BoundField HeaderText="Branch Name" DataField="branch_name"/>
<asp:BoundField HeaderText="Email Id" DataField="email" />
<asp:BoundField HeaderText="Mobile" DataField="mobile"/>
<asp:BoundField HeaderText="Name" DataField="first_name"/>
<asp:BoundField HeaderText="Surname" DataField="last_name" />
</Columns>
</asp:GridView>
i have a grid view and i want to add a check box in thati know we can do this by adding check box in item template of grid viewbut when i edit template , i am only getting pager template and empty data templatei think this is because i have populated grid view manuallywhatever the reason is the thing is i am not able to add check box in gridview
View 13 RepliesI have string i get it the chracters and copare it in my table with productvalue and also comapreing productgroup g 1 to 10 thats is the lenth of the string.but it doesnot show any data in data grid.
View 4 RepliesI am displaying some data in a grid view. I want to add another column in the grid which displays a check box for each row in the grid.
1. How do I give a new name to each textbox? example could be corresponding Case No value could be the text box name.
2. I have a button to read what checkboxes have been checked and initialize a string accordingly. For each checkbox checked it should add the corresponding row's "case no" value to a string.
[code]....
I am not using any database for data source.I can enter the some value in text box and the entered value is automatically added in the gridview.How can i validate not adding same item numbers in gridview.And i also calculated grand total for amount column.If i remove any records means how to recalculate current total.Any one can tell solution for this issue.I am waiting for reply ASAP.
View 2 RepliesI have a table with three columns (ProdID,ProdName,Status). I m fetching that into a dataSet and binding that to my gridview. I have a very basic and simple rowdatabound event like this :
[code]....
how can i compare my status against True or False in my if condition.
well i am new to Grid View , so i am taking a simple scenario. well i have a visual webpartin sharepoint ; i have added a grid view with first column is of CheckBox Type & it has a Button & aLabel
i populate the grid view from an array of cities & i want that when button is clicked all the checked cities are appended in to the label.
code is below.
[code]....
while working i found that when button is clicked the page_load function build the grid view again & there fore all check boxes are initialised .
complete my code !!!!!
i do not want to do the same by using Javascript. i want to do this by C# only
& if possible tell me the way how can i put a checkbox near "Show" button that is used to check all the check boxes.
I have a data grid and inside that datagrid check box and created using template field.
How can I check that a row in datagrid (not grid view) is checked or not.
For gridview we can use the below in codbehind file,
Boolean isChecked = ((CheckBox)(Row.FindControl("chkDelete"))).Checked;
For datagrid how to achieve this...
My aspx code is
<asp:DataGrid ID="dg1" runat="server">
<Columns>
<asp:TemplateColumn HeaderText="select">
<ItemTemplate>
<asp:CheckBox runat="server" ID="chkD" />
</ItemTemplate>
</asp:TemplateColumn>
</Columns>
</asp:DataGrid>
Im developing an ASP Web application and have a Gridview which I have set as follows:-
[Code]....
At this point alls good.
I have a field in the selected table that returns an integer which relates to a Table on a Seperate Database.
Is it possible, when the grid is being filled to check a fields value and set anothers columns value depending on the vale?
ie First Row Column 1 value is 1 so set Column 2 to "Sunny"
Second Row Column 1 value is 2 so set Column 2 to "Cloudy"
I'm trying to include jQuery in an ASP.NET web site that also uses DexExpress controls, but no matter how I include my script, the $ function is always anonymous and the jQuery function is undefined. I suspect the DevExpress 'plumbing' script is overriding jQuery.
View 2 RepliesI have a grid view control with Template Field containing Item Template as Checkbox control and the Header Template is containing the label with column header name.
I want to click the coulmn header label and all the check boxes must be checked once.
provide me some examples or ideas how i can achieve this
[code]....
Will there be any problems if I use DevExpress controls and Telerik controls on the same web page. Imagine I am nesting them insider one another.
I am wondering if they would conflict each other during AJAX calls.
Ive got problem with intellisense in markup for example:
When I type
<dxwgv:ASPxGridView ID="grid" runat="server">
<Columns>
< -- here I hit ctrl + space and only normla html tags are shown: a, abbr ... --
But I would like to have available columns instead :/
</Columns>
</ dxwgv:ASPxGridView>
I have a simple Devexpress Gridview.
Here code;
[code]...
Is there any way calculate sub total of Unit Price column in Devexpress?
For this example; I just want total of Unit Price column (18 + 19 + 4.5 + 14 + 18 + 263.5 + 18 + 46 + 14 + 14 + 15 = 430) in the bottom..
How can i do that?
I wonder why I cant access Object by ClientInstanceName from javascript.
example:
function NextStep(pageControl) {
currentStep = pageControl.GetActiveTabIndex();
switch (currentStep) {
case 0:
selectedRowsCount = GridViewClient.GetSelectedRowCount();
break;
}
The error is:
There is no definition for GridViewClient;
but ClientInstanceName is set to GridViewClient
Case is that I have thos grid on other tabs in ASPxPageControl so that these aren't visible but What I want to do is to refresh one of it before displaying it and I wanted to use client side ASPxGridViewClient.Refresh().
One Page In the Page, a custom control In the custom Control, a AspxDropDown The AspxDropDown, has a DropDownWindowTemplate In the DropDownItemTemplate, I add a GridView and a paging/sorting/filtering enabled ObjectDataSource When handling the Selecting event of the ObjectDataSource, I should set filter parameters for the datasource. There filter parameters should come from the FilterRow of the AspxGridView (preferably using the AspxGriedView.FilterExpression property). The problem: the AspxGriedView.FilterExpression property is not set to the proper values (set by the user). Did anyone find a good implementation of what I'm trying to do here?
View 1 RepliesI am using a dev express control: ASPxHtmlEditor version 10.1. I am trying to create a simple that only has this control. Unfortunately the control does not render with any of its styles or images loaded. This happens over 20 times. The control does not have any of its styles and all of its images do not load on the control.
I am getting 404 exceptions similar to: "Failed to load source http://localhost:11238/DXR.axd?r=5_0"
I've just been looking around a little at the Devexpress PivotGrid/PivotTable and wow, I'm impressed (see here for an example, skip towards end to see some of the functionality).
I'm working on a java webapp in which the tabular data presented is the key part of the application, and if I could implement something such as the Devexpress control that would be amazing. Is there anything out there?? The java webapp uses the myfaces framework.
I'm working with the 10.2 version of the DevExpress MVC controls. I have a page hosting a MVCxGridView and I need to preserve the current page when navigating away and back to this particular page.
I can see from the old ASPxGridView documentation that there's a PageIndex property, but this seems to only be accessible from a WebForms/Code Behind/Server Control type context. I'm using MVC and can't figure out how to preserve this page setting.
I've tried the cookie settings with the control but those don't seem to persist for me.
I have a devexpress gridview one of the column contains url. I need on url clik highlight this row and if user click another url in another row highlight and unselect previous.
View 1 RepliesI've just replaced Telerik controls in a small web project with DevExpress controls, but now, despite my adding an inline display div as container, these controls are no longer rendered inline. What could have caused this, and what can I do to get these errant controls back inline?
<div style="display: inline;">
<label>
Department:</label>
<dx:ASPxComboBox ID="deptCombo" runat="server" AutoPostBack="false" ValueField="DeptId" TextField="DeptName" Width="250px" OnSelectedIndexChanged="deptCombo_SelectedIndexChanged">
</dx:ASPxComboBox>
<label>
Production Date:</label>
<dx:ASPxDateEdit ID="productionDatePicker" runat="server" DisplayFormatString="{0:dd/MM/yyyy}" EditFormat="Custom" EditFormatString="dd/MM/yyyy"
ondatechanged="productionDatePicker_DateChanged">
</dx:ASPxDateEdit>
</div>