I have datagrid with populated data. When the user clicks on one particular cell of one column, the popup window has to be displayed, and also same requirement is there for another column.
I could not find how to do it for cell.doubleclick and click properties are applicable to row selection. Can any one give solution for this requirement?
Listen to the itemClick event of the DataGrid - it dispatches an event of type ListEvent that has columnIndex and rowIndex properties.
If for some reason it doesn't work, you can use a custom itemRenderer and dispatch a custom event using its listData.owner property.
Related
I want my popup to display user data (possibly with edit/delete options). I've handle following function to the RowDBclick:
popupControl.Show(grid.GetSelectedKeysOnPage());
And in the popupControl I've set Popup Element Id to grid which is my ClientInstanceName of the GridView. The popup appears but with no data. What do I do wrong? How to display user data of the clicked row id? If I set Choose data source in Popup task panel to my db ConnectionString, the popup doesn't appear.
There is no client-side Show method for ASPxPopupControl that accepts an array of values. ASPxClientPopupControlBase.Show Method. You need to perform a callback on the PopupControl (PerformCallback), populate its controls with required values obtained from the grid in the server-side WindowCallback event handler. After this show the popup.
I found that in flex, combobox has 3 events: open, close, change
combobox events example
Let's say I selected A in my combo box. Then I might do 2 things:
I open combobox and click A option again
I open combobox and close it by clicking somewhere else (without clicking A option)
There is no selection change in either of the case above. And they both have open and close involved. So if I want these 2 actions have different behaviors, I can't programmatically distinguish them....
Is it possible to have a click event on combobox or combobox options?? I am using a data provider for my combobox...
Thanks a lot!!!
The ComboBox events do have a click event defined, although it is inherited.
Unless the ComboBox has a click event listener and calls preventDefault() to prevent the event from bubbling, you should be able to listen for the click event on a ComboBox without any issues.
I have few Ext.NET ComboBox controls on a Web Form. Selecting an item from the first fires the ValueChanged event to populate the second, and so on.
Except Force Selection property, I have not altered other properties of the ComboBox control.
I am experiencing odd behavior of Combo Box controls. As all controls get filled via AJAX request, I find it difficult to set focus on any control. As soon as I bring focus on any control, the cursor disappears after it gets filled.
Secondly, one of the ComboBox is not permitting me to select an item from the list. Even if I try to select an item, it automatically brings back the default item back, which is actually a sixth item in the list.
I double checked the queries and there is no way through which sixth item should get selected.
If I try to open the DropDown list using mouse, it opens for few seconds and collapses automatically.
Is there any way to fix these strange issue? Any other third-party open-source control?
I guess that combos are rebinded in each ajax requests
I suggest to rebind combos in Select direct event handler
Also see the following sample
http://examples1.ext.net/#/Form/ComboBox/Ajax_Linked_Combos/
I have editable grids which are 2-way binded to my model. What I want is to validate my data when user edits any cell before it get updated in model. I have applied my validation at ItemEditEnd handler, but, I want to apply validation in between itemEditBegin and itemEditEnd events.
any ideas how to achieve this?
For this level of validation I would create a Validator for the type of data you're editing (string, number, etc.) and set the Validator's trigger to the change event of your itemEditor component.
Check out Adobe's example on using validators in an itemEditor for more info.
Update:
You may also want to check out this related question.
"In your event listener, you can
examine the data entered into the item
editor. If the data is incorrect, you
can call the preventDefault() method
to stop Flex from passing the new data
back to the list-based control and
from closing the editor."
We have a Datalist in which we have some data, with every Item we have a button control. What I want to achieve is that on the button click, the data related to that particular row of Datalist is fetched whose Button control is clicked. How to accomplish this? The problem is how to attach the button control with values related in that particular row? Note that I am using ArrayList as the Datasource since I am enabling padding via pageDataSource class...
Implement the OnDataBinding event for the Button. Then in the Button set the CommandArgument to something that will identify the row you are clicking. Then implement the OnItemCommand event for the DataList. You will be able to read the CommandArgument for the Button that was clicked and then perform whatever action you need.