I have a form with one gridview as master linked to a listview in the same page. Listview shows one record. this happens when i select a row in the grid.
I have successfully managed to get my listview to appear inside a jquery dialog. the problem is that i cant do the edits and insert when inside the dialog box. What happens is that after i press update , after the postback the dialog box has a blank form.
After researching (stackoverflow question) i have found that the problem MAYBE is that the dialog option creates a new div inside my div (by examing the resulting page). This breaks the association of the child elements of the listview and they appear blank....
the solution proposed there has to do with one field. How can i apply the logic to the whole list view?
Related
Using the Details Master pattern. When the form initially loads it shows a grid. When clicking on the grid the details are displayed, and is working perfectly fine. The issue with this design pattern is the first record is always loaded so when I look at the cursor the first record is showing.
I'm populating a two list view controls through code (one is available items and the second is selected with buttons to move the items back and forth between the controls) and my issue is when I press "New" the detail page is displayed but the list view is populated for the first record selected. I need a way to know when "New" is pressed I can clear out the list view selected control and just populate the available values.
I ended going a different direction and creating my own "New" button that calls a menu item to call a new form as a popup similar to how the form when entering a new customer works. Then I turned off the "New" button and now my code works fine without have to deal with the one screen containing both forms logic.
I am attempting to use jqGrid ASP.NET for the first time and I'm having an issue with properly using a parent and child grid on my form.
Scenario: On my form I have two grids, one a parent that displays product information, and a second child grid that is used for editing a collection of prices for the product in the parent row. When a user clicks the plus sign in a parent row, the OnDataRequesting event is handled and I load the child grid with that product's prices. When the user clicks a price in the child grid, I use ClientSideEvents RowSelect and the server side RowEditing event to perform inline editing.
All of this was fairly trivial to set up and works great. Where I'm having an issue is that I'd like the selected row in the parent grid to act like a context for the rest of the page, i.e. the rest of the page displays information related to the product selected (charts, graphs, etc). For this I set up an event handler for the OnRowSelecting event and then trap the RowKey from the event args. That works great. However... the unintended side effect of setting up that handler is that once a user selects a row in the child grid to edit, the OnRowSelecting event fires in the parent, the page posts back, and when the page reloads the child grid is closed and the attempted edit is thwarted.
What I would like to know is, is there any built in way to handle this sort of scenario either through the client side jqGrid library or the Trirand.Web library? Or will I need to write some custom script to either send the selected parent row asynchronously or possibly trap the expanded child grid and attempt to reopen it once the post back is complete? Thanks.
I thought I'd brush off the tumbleweeds here and inject the answer I finally received from Trirand's support. As of the time of this writing, you can't do this. If you handle the OnRowSelecting event, you cannot use an editable child grid as they built it to specifically fire the parent's OnRowSelecting event anytime you select a row in a child grid.
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 a gridview which contains columns vacancy id and vacancy title and a few image buttons.
When the user clicks on button show criteria, another gridview should open inside existing gridview.
This inner gridview should show criteria for that vacancy.
Again, when user clicks on the same button, it should hide the child gridview.
I tried this by adding child gridview in item template part of the template field of the parent gridview, but it shows the inner gridview in another column.
However, I want to open child grid below the row whose button is clicked.
How is this accomplished?
hi check this example : http://tugberkugurlu.com/archive/parent-child-view-in-a-single-table-with-gridview-control-on-asp-net-web-forms
i think for your issue you need to play with the width of the itemtemplate column. that may resolve your issue easily.
Use Ajax modal popup inside GridView and it will open on button click.
I have a user control and one button and one dropdownlist(ddl1) and a listview in my content page.
the user control consist of 3 dropdownlist.
Now the issue is that when i show image in listview based on ddl1. It works fine but when selected index change occurs in dropdownlist of user control then sometime the image control appears in listview without image which shouldn't.
http://img560.imageshack.us/i/listviewerror.png/
what could be issue because of which listview shows last control generated inside the listview?
suppose last time if listview showed 2 image and if i try to change something in user control's dropdownlist then it will show two image control but withou the image...
please guide me where am i going wrong??
if required i will post the code.
Thanks.
i think you need to bind the listview again when select the value from droupdown list. then may be you are not face the same problem.
hope this help.