How To Use Grid With Check Box In DevExpress

May 12, 2010

How 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 Replies


Similar Messages:

.net - Devexpress Grid - PerformCallback Generates Invalid Viewstate?

Dec 13, 2010

I 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".

View 2 Replies

Adding Check Box To Grid View For Each Row?

Aug 20, 2010

I am filling a grid view with the data table but on each row i want a check box.

View 3 Replies

Check Grid View Is Empty Or Not?

Aug 27, 2010

How to check for grid view empty or not.

View 1 Replies

Asp Grid View Check Box To Presrver On Neigation(paging)?

Aug 29, 2010

In 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>

View 2 Replies

Forms Data Controls :: Have A Grid View And Want To Add A Check Box?

Jan 27, 2011

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 Replies

How To Check The String Of The Characters In Database And Display In Data Grid

Feb 15, 2011

I 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 Replies

Forms Data Controls :: Add Another Column In Grid Which Display Check Box

Jun 22, 2010

I 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]....

View 6 Replies

Forms Data Controls :: Check The Value Is Already Exist In The Grid View?

Mar 17, 2010

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 Replies

C# - How To Check The Status (True/False) In A Grid View On Rowdatabound Event

Feb 17, 2011

I 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.

View 3 Replies

C# - Grid View With Check Boxes To Append Selected Values In A Label

Feb 7, 2011

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.

View 2 Replies

Forms Data Controls :: Can Check That A Row In Datagrid (not Grid View) Is Checked Or Not

Jan 19, 2010

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>

View 7 Replies

Forms Data Controls :: Grid Is Being Filled To Check A Fields Value And Set Anothers Columns Value Depending On The Vale?

Jun 28, 2010

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"

View 4 Replies

Using JQuery With DevExpress

Nov 20, 2010

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 Replies

C# - Selecting Multiple Check Boxes Inside A Grid View Control By Clicking The Column Label Header

Oct 27, 2010

I 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]....

View 1 Replies

Use Both DevExpress And Telerik On The Same Webpage?

Oct 7, 2010

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.

View 1 Replies

.net - Devexpress Intelisense In Markup?

Aug 26, 2010

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>

View 1 Replies

C# - Calculate SubTotal In Devexpress Gridview?

Mar 20, 2011

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?

View 2 Replies

C# - Access Object From Javascript DevExpress?

Aug 24, 2010

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().

View 3 Replies

DevExpress AspxGridView Filter In ObjectDataSource

Mar 16, 2010

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 Replies

Using Devexpress HtmlEditor Control Has DXR.axd Throwing 404?

Oct 8, 2010

I 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"

View 2 Replies

Looking For Devexpress PivotGrid/PivotTable For Java Webapp?

Jan 26, 2011

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.

View 2 Replies

Preserve Paging With The DevExpress MVCxGridView Control?

Jan 12, 2011

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.

View 1 Replies

C# - How To Highlight Focused Row In DevExpress Gridview On Click

Aug 13, 2010

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 Replies

Keeping DevExpress Controls Inline On Web Forms?

Dec 9, 2010

I'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>

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved