Hideing GrandTotal Field Of PivotGrid In Developer Express 2010 - devexpress

hi I dont Want to Show The GrandTotal Field Of PivotGrid In Developer Express 2010 So Plz Tell Me How To Hide GrandTotal Field Of PivotGrid In Developer Express

in properties there is one optionview property in that optionview showgrand total is make false it will hide

myPivotGrid.OptionsView.ShowColumnGrandTotals = false;
myPivotGrid.OptionsView.ShowRowGrandTotals = false;

Related

How to export report from Devexpress End user designer?

I have used standard report designer in winform and added a button "Export to PDf" in designer bar.
I want that when i click on this button , opened report or edited report in designer should be exported in pdf.
Please give solution to do this.
You need to add a button in the ribbon and enable the export command with that button. See the below code snippet from the DevExpress sample project for reports in version 14.2.5.
Create a button item in PrintPreview tab and specify it's properties as below:
private DevExpress.XtraPrinting.Preview.PrintPreviewBarItem printPreviewBarItem23;
this.ribbonControl1.Items.AddRange(new DevExpress.XtraBars.BarItem[] {
.....
this.printPreviewBarItem23
.....
};
//
// printPreviewBarItem23
//
this.printPreviewBarItem23.ButtonStyle = DevExpress.XtraBars.BarButtonStyle.DropDown;
this.printPreviewBarItem23.Caption = "Export To";
this.printPreviewBarItem23.Command = DevExpress.XtraPrinting.PrintingSystemCommand.ExportFile;
this.printPreviewBarItem23.ContextSpecifier = this.xrDesignRibbonController1;
this.printPreviewBarItem23.Enabled = false;
this.printPreviewBarItem23.Glyph = ((System.Drawing.Image)(resources.GetObject("printPreviewBarItem23.Glyph")));
this.printPreviewBarItem23.Id = 91;
this.printPreviewBarItem23.LargeGlyph = ((System.Drawing.Image)(resources.GetObject("printPreviewBarItem23.LargeGlyph")));
this.printPreviewBarItem23.Name = "printPreviewBarItem23";
-GUI view
You can add a single command button to just export it to pdf, but you need to check for that specific properties you need to set on the control. You can do above programmatic work in Report designer.
Hope this help.

Remove button Find and Clear in GridControl

like I can eliminate the botton (Find and Clean) of a GridControl, and alone to leave TextEdit.
regards
Alex
You can use the approach demonstrated in How to customize the Find Panel layout? example:
Create the GridControl/GridView descendant components
Override the GridView.CreateFindPanel method to provide your
own customized FindControl instance into the view.
Yes it is possible. you will need to access the FindControl and then access the layoutControl and its Control Items. Use the Code below in form_load etc:
// Get the Find Control on Grid : gcMain
FindControl _FindControl = gcMain.Controls.Find("FindControl", true)[0] as FindControl;
//Get the Layout Control
LayoutControl lc = (_FindControl.ClearButton.Parent as LayoutControl);
//Allow Control Hiding
lc.Root.AllowHide = true;
//Hide Find Button
(lc.Root.Items[2] as LayoutControlItem).ContentVisible = false;
//Hide Clear Button
(lc.Root.Items[3] as LayoutControlItem).ContentVisible = false;

Details View in Asp.net, Set it to NEW

I have a grid view on my page, and a hidden details view.
When the user wants to add a new entry, they will click a button, and the gridview will become hidden and the details view will become visible. The only problem is I want my details view to automatically be set empty in the NEW mode, without them having to click the new in the details view form.
In the RowCommand event of the gridview:
myDetailsView.Visible = true;
myDetailsView.CurrentMode = DetailsViewMode.Insert;
myGridView.Visible = false;
On button click change the mode like:
DetailsView1.ChangeMode(DetailsViewMode.Insert)

DatePicker in ActionScript

I want to integrate a date picker component using action script for date of birth.
any avialable components ? please give url's ?
Check the Calendar component # minimalcomps
http://minimalcomps.com/
You need to use DateField
var dp:DateField = new DateField();
dp.yearNavigationEnabled = true; // enables you to move thru years quickly.
addElement(dp);

jQuery Autocomplete losing text on AutoPostBack

I have a jQuery Autocomplete field on an ASP.Net Webform and everything has been working great until now. I also have a DropDownList that I have a need to fire onSelectedIndexChanged with AutoPostBack.
When I changed my code to do the AutoPostBack, the text field that has the jQuery AutoComplete on it comes back blank. However, if I look at the source of the page, the text is in the text field. If I now post the form, the page will send back a blank field. My Google-Fu is weak on this one, as I could not come up with any workaround for it.
Has anyone had any issues like this with the Autocomplete field getting blanked out on an AutoPostBack, and how did you get around it?
I can post code if it's really necessary, but I'd need to sanitize a lot of it before I could due to company policy.
How is the autocomplete field being initialized? Is it being set to empty string either on page load from server or by the autocomplete jQuery plugin on document.ready?
If the source code for the plug-in is setting the textbox to empty string on document.ready then try the following:
// Store current textbox value in a var
var temp = $('#mytextbox').val();
// Initialize the autocomplete plugin (winging it on the syntax)
$('#mytextbox').autocomplete();
// Reset the value of the textbox.
$('#mytextbox').val(temp);
If you use jQuery Autocomplete plugin 1.1,
* Revision: $Id: jquery.autocomplete.js 15 2009-08-22 10:30:27Z joern.zaefferer $
Add "autoPostBackSelection: false," in the options Ex:
$.Autocompleter.defaults = {
inputClass: "ac_input",
resultsClass: "ac_results",
loadingClass: "ac_loading",
minChars: 1,
delay: 400,
autoPostBackSelection: false,
...
After, add this just before the "return true; at the end of the "selectCurrent() function.
if (options.autoPostBackSelection == true) {
__doPostBack($input.id, "");
}
Example:
function selectCurrent() {
...
if (options.autoPostBackSelection ==
true) {
__doPostBack($input.id, "");
}
return true;
}

Resources