in details view once i click edit mode. all the controls are getting into edit mode. i make the changes and give update data is updated in database . but still all the controls are in edit mode only "actaully once we give click then update then i should again gone to read only mode means all the values should again be showing in label field"
i am doing this in .cs file only
no sqldatadource is used or object datasource
right now this feature is not happening to me. what is the issue here?
looking forward for an solution
thank you
Since you aren't using any built-in code to do the update, you probably need to change the display mode manually during your update.
myDetailsView.ChangeMode( DetailsViewMode.ReadOnly );
Related
Trying to replicate some of the functions of the Project Tracker template, so I am using a Datasource in Manual Save Mode.
When I try to create a new item I get the following error:
Cannot create a new record on a datasource in manual save mode with
pending changes.
I tried creating a button and clicking "widget.datasource.clearChanges();" but that doesn't seem to help.
I am not sure how to clear the pending changes. Any help would be greatly appreciated.
I think I have figured it out/figured out a work around.
I adjusted all my buttons (ex: my Add Item button, my Delete button, etc.) by adding "widget.datasource.saveChanges();" to them. So now it looks like this:
widget.datasource.saveChanges();
app.showDialog(app.pageFragments.Add);
And this:
widget.datasource.saveChanges();
app.closeDialog();
I am having a strange problem. First let me start by saying that I am using the Telerik controls supplied by DotNetNuke. So I can not "upgrade" to any other version of the Telerik controls. I am stuck with what I am given.
I wrote a module initially using DNN v06.02.09 (Telerik v2012.2.724.35) and it worked great. I unfortunately am forced to upgrade to a newer DNN version because of a bug found in this particular version of Telerick's RADScheduler (which effects the month of November only). So...now I am running DNN v07.00.06 (Telerik v2013.1.403.40). [Note: I also tested this with the most recent DNN v7.04.01 (Telerik v????) and confirmed the same behavior described below]
Previously when I clicked on a button inside the RADGrid and the ItemCommand event fires I was able to obtain the value of each cell in the row that the button was activated in. The same exact code running in DNN v7.x now returns "nbsp;" for every single cell in the row. It's like the new Telerik version doesn't bind the data to the GridDataItem (e.Item) within the ItemCommand event like it used to.
What am I missing? How do I get the selected row's data like I had before?
Ok, so after scouring the internet and trying everything I could think of to fix this...I stumbled across the following "article"... http://www.telerik.com/forums/breaking-change-hidden-column-cell-text-is-not-persisted-in-viewstate
You would think they would make this stuff easier to find. Apparently the ".Visible" property's behavior was changed, so that if the column is not visible, it also does not bind data. They created a new property called ".Display" that would hide the column but still bind the data. I had to change my code to use the new property and then the grid's behavior was returned to what it was previously.
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.
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.
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/