I am using a gridview with ItemTemplate, EditTemplate and FooterTemplate as In My senario I want data input by client.
Client mark the multiple check boxes (suppose mark 4 checkboxes name IncomeTax, EOBI, PF and Late Arrival) and after selection when client presses a button then the below grid will display like
EmployeeCode | Name | IncomeTax | EOBI | PF | Late Arrival | Action
with footer.
When I insert data
001 | Jacob | 250 | 150 | 50 | 63 | Press save button
then that will display on itemtemplate and footer row will shown below for more input.
My problem is how I bind gridview with dynamic column including, Item Template, Edit and footer template? I have been stuck on this issue for the past 3 days :(
To add a new row in a gridview from the footer, i have used this tutorial in the past . NB this is quite an old tutorial, and i remember one of the problems i have had with this is that the footer is only shown if you have data in the gridview so often i would have to put dummy data in the datasource if the GridView1.Rows.Count=0 in the GridView1.DataBound event.
HTH
Related
I have created a hidden item "P1_DOCUMENTS_COUNT" with default of 1. used plsql too increase it when users clicks the button "add row". Created 10 times the following row of items (# for the row number): P1_DOC_DATE_#, P1_DOC_DESCRIPTION_#, P1_DOC_NAME_#, P1_DOC_CATEGORY_#, P1_DOC_FILE_BROWSER_#. at the beginning - rows 2-9 will be hidden. when P1_DOCUMENTS_COUNT = n, show rows 1,2,...n.
Issue is I have cancel button on each row, I am looking for a solution so that if none of cancel button clicks then 1 by 1 clicking add row it shows all 10 rows but if cancel button gets clicked in the middle then that row should also appear by clicking add row. hope i clear my point.
for more info please check url: Multiple conditions on single button with Dynamic Action in Oracle Apex
Instead of braking your head on it - just change the "cancel" button to a "clear" button and empty the contents of the items without hiding the row.
alternatively - create an array of size 10 and keep the information on what's been clear in it
Create 9 hidden Items with default value of 0 (these are supposed to be hidden at the time when page loads)
Now on each click of Add Row button perform PLSQL code to check whether the Row is showing of 6 Items if not then change the value of hidden item to 1 and those row will be showing.
NOTE:- There are separate DA to show and hide items, 6 Items of row based on the value on hidden items.
I want a gridview which will populating values based upon some textbox values outside the grid. For reference
Help me achieve this functionality :
If Text Quantity is 3 , then 3 Gridview rows will be loaded on subsequent click event of linkbutton Charge To(Requestor) .
Data in other text boxes , how to get that into date columns of gridview.
Total Amount in the top gridview is divided by 3 in the lower gridview.
Please see the below image which i accomplished
I have still some enhancements to make:
The count of Gridview rows are based upon the number of charging in Textbox.
Another functionality which i want to achieve is display the Charging date mentioned in the textbox will be displayed in the manner highlighted in red boundery.
Date should be displayed in a span of 1 month gap prior to textbox value.
I have a data table which display like below in grid view and I done edit, update & cancel operation on it, it will work fine
ID | Title | Number | State
585344 issue 1 140024 In progress
But I want to display it like below in grid view and doing Edit, update & cancel operation on it, How to do please help....
ID-585344
Title-issue 1
Number-140024
State-In progress
I would suggest instead of going for gridview go for Listview (as you are using .Net 4.0), you can easily achieve desired output.
I want to load different controls like DROPDOWN,RADIO in single column in Telerik Rad Grid's edit mode.
Means in every row, i want to pass some value from database like
id | control|
1 | dropdown
2 | radio
3 | checkbox
now when i pass 1 in column , telerik grid should load dropdownbox in edit mode.
in another row if i pass 2 than in same column but in that perticular row it should load radio button in edit mode.
Is it possible to do?
you have to set AutoGenerateColumns="False" and then create your custom "RadGridTemplateColumn"'s in your ascx-file.
In each TemplateColumn you can define "HeaderTemplate", "ItemTemplate", "EditTemplate". The EditTemplate will be shown if you are in edit mode.
In this you can show your controls.
Iam not sure what you exactly mean but I think you wanna show a dropdownlist in the Row 0 of your grid and in the next item (Row 1) you wanna show at the same position a radiobuttonlist right?
You can achive this by using the Event "OnItemDataBound".
if (e.Item is GridEditFormItem && e.Item.IsInEditMode)
{
}
use this to be sure that you are in the editmode.
There you can for example hide some controls or maybe create them dynamically and add them to the page.
If you wanna create new controls dynamically I would suggest you to place a asp:PlaceHolder at the specific position in your ascx-file.
hope I understood you right.
best regards, noone.
i am using flex, and in my application i am using datGrid, inside that there are 6 to 7 columns
In the last column, there are 5 link buttons.
Now in dataGris i also have one status column. on tha basis of status, i want to hide some of these link buttons.
for example, if status is 'a' then button 2 and 3 should disaapear
and when status becomes 'b' some other buttons will be disaapear.
and it is also possible that diffrent rows can have diffrent status, and according to that linkButtons should disaapear.
how can i do this???
Please....
Thanks in advance.
Bind the LinkButton's visible property to your DataGrid's status column or a custom function thereof.