Extjs Custom TriggerField implementation - asp.net

This is my first question here.
I hope I can contribute with answers too..
My need is to build an Extjs TriggerField implementation which open on trigger click a Panel with a custom loaded page inside...
example: When I click the trigger button I what to open a panel specifying an url as /Views/Test/Blabla.aspx and then storing the selection in the trigger field value.
I hope someone could help me
Thanks in advance

There is an example which pops up a Panel in your examples directory under examples/form/forum-search.html
It's based on a ComboBox (But it configures it to hide the trigger button)
BTW, probably a better idea to ask for help at http://extjs.com/forum/

Related

Nested getcmsfields_forpopup showing in same popup in silverstripe

I have form in getcmsfields_forpopup for backend(admin panel) in silverstrip. In that form, I have added nested dataobjectmanager field to enter multiple dates(has_many relation). When main form open in popup window and I click on add date link, then second popup form open in the same window not in separate one. That means after entering date data and saving it, when I click on close button, whole form is closed rather going back to main form. Please help in this regard.
This can't be done using SilverStripe's default popup form unless, maybe, you extended the DataObject Manager field and had it render itself in an iFrame.
The best option would be to manage your parent DataObjects with DataObjectManger as well. DataObjectManager supports nested DataObjectManager fields. See this tutorial "Nested DataObjectManager" (on YouTube).
If you're able, can I suggest that you try out SilverStripe 3.0? The support for this kind of thing is much better in SilverStripe 3.0 than it is in 2.4.

Add filter to Add existing button crm 2011

I followed the instructions in this link
but I face a strange problem which is when the lookup is populated with the new filtered view the add button is getting disabled when I select a record from the new view !!
I debugged the code in the lookupinfo.aspx page and I found this line of code that controls whether the add button is enabled or disabled
btnAdd.disabled = (crmGrid.InnerGrid.SelectedRecords.length == 0);
and this line of code always return true despite there is a selected record !!
Can anyone help me ?
Thank you.
I followed the instructions in this link
Which link? I can't see one referenced in your question. I'll make some assumptions about what you are trying to do. I will assume that you are trying to hide an "Add Existing" button linked to a form's sub-grid. I'll also assuem you're trying to edit XML files by hand (which is the hard way!).
The easiest way to apply rules to buttons in CRM 2011 is to use Erik Pool's brilliant tool "Visual Ribbon Editor" (available here)).
To hide an "Add Existing" button based on selected records, you would:
Connect the tool to your CRM environment
Open the "parent" entity (i.e. the record type that shows the "Add Existing xxxx" button
Select the Ribbon Type to be "Sub-Grid"
Select the button you wish to manipulate
Add or edit the Enable Rules for that button
If I'm not describing a solution to your problem, maybe enhance your question - it's hard to understand what you are trying to acheive.

How do you force Combobox dropdowns to stay open

How do you force Combobox dropdowns to stay open even when other Alert boxes appear. Looking at what to subclass from mx.Combobox, there doesn't seem to be much that i can do to short of implementing an entire combobox from scratch.Thx
For that you need to create a custom ComboBox which if created in following Link. and might be this link will going to be useful to you.
Please visit this LINK

ASPxGridView PopupEditForm Doesn't Reload

I'm using a modal PopupEditForm to edit rows in my ASPxGridView.
There is an image and upload control inside this form. The old image is being loaded to this ASPxImage for preview and user can upload a new image. But when user does it, even though I change the url of image to new uploaded image url, new image doesn't appear. But if I update the row, it updates the url and shows the new image next time I click to update row.
So there's a problem like PopupEditForm is not being called again. How can I solve this?
First of all, you should learn very good PopupEditForm.
Read and learn this example Grid Editing - Popup Edit Form .
Then If you can't solve your problem, and you have Devexpress licence, you should ask it in Devexpress Support
http://www.devexpress.com/Support/Center/SearchResults.aspx#cD1UNHxQNXwwc2VhcmNodGV4dD1Qb3B1cCBFZGl0IEZvcm0=
Take a look at this code central sample which you can also download and run locally:
http://www.devexpress.com/Support/Center/e/E19.aspx
Btw, Soner points to some good info too.
Thanks.

How to make an entire jqGrid disabled/readonly

How can I make an entire jqGrid disabled/readonly?
I have a page with a logical "edit section" which I show when the user selects something to edit, and hide when the user is done editing (save or cancel). While the edit section is shown, I disable several other elements on the page. I would like to disable their ability to click in the jqGrid, so they can't change selected rows, re-sort, etc. But I cannot find a way to disable/enable the grid as a whole.
Apologies if this has been answered already - other questions seemed to focus on disabling only certain behaviors within the jqGrid.
Edit: Preferably, I'd like an approach that isn't dependent on yet another 3rd-party addon. Nothing wrong with them, of course! But my client has a degree of reluctance with them, so my life would be a little easier with a purely jQuery/jQueryUI/jqGrid solution. :)
You could use blockUI to block the grid.
Try using $("#lui_" + myGridId).show().
The grid has created this overlay internally an uses it as one part of the loader message.
You can just show it or hide it and it will disable/enable the grid for you.

Resources