Getting grid view on button click event - asp.net

Hello on page load we get two buttons while clicking on 1st button one grid view and while clicking on 2nd grid view,2grid views put in 2 DIV's.there is lot of records so need paging requirement and have to convert each page in to Document or pdf by exporting my code
Any useful links or perfect code to implement in my project

Have a look at this: http://msdn.microsoft.com/en-us/library/aa479347.aspx

Related

Looking for a vb.net code to add existing buttons/text boxes/drop down lists, etc. to a container, or holder?

I'm using vb.net. Basically, I have a drop down list, text box and a submit button. You choose a movie director from a drop down list, then type in a movie, click button and it adds the data to my database.
There's another button which hides/shows drop down list, text box and submit button using Visible = True and Visible = False, but what I don't like about it is when it hides the things I said before, it leaves some white/empty space like if they are still there, but not visible.
Is there anyway to put some kind of holder/container and place a button which when clicked could add my drop down list, text box and submit buttons to that place?
Cheers,
E.N.
I assume that you are working with WinForms in Visual Studio. In the Toolbox the controls which could help you out of this situation are in the "Containers" section. Among others, there is a Panel, a FlowLayoutPanel and a TableLayoutPanel (see this video on msdn for a TableLayoutPanel Demo). They can help you to organize controls. Especially the FlowLayoutPanel places the controls automatically. But you can always change the Top and the Left properties of any control, to move them around to the desired place or group some of them on a Panel and change the Location of this one one.
You can add a control to a container by using the Add method of its Controls property. However, if the control is already on the form (since you are asking how to add an existing control) you must remove it from the form before.
Me.Controls.Remove(myButton)
panel1.Controls.Add(myButton)

Can I Only Export the visible items in a DevExpress Grid

We have data using DevExpress Grid on a web application, and the users are asking to only export the visible data from the page. At the moment, if we do an export, it exports everything from the grid, whether it is shown on the current page, or on a future page (200 items, 20 pages, showing only page 4, we export everything).
We are using the WritePdfToResponse (if its a PDF file as an example) and tried using the PdfExportOptions PageRange, but it seems to only work for Pages of the PDF file, not the data... For example, if there are 200 items to display, on the site it shows as 20 pages, but in PDF, it shows up as 4 or 5 pages. If we want only page 4, we get page 4 of the PDF, not of the site... Can this be done? Ideally, for PDF, CVS, RTF and XSL...
The grid exporter exports the entire data from the ASPxGridView control. However, if you temporarily bind the grid to a visible page only, and then export it, you will get the same result.
For example, you can get the grid's page index to determine what user sees on the screen and that fetch these records from the datasource.
I assume that you can select required range of rows and set the ExportedRowType property of the ASPxGridViewExporter to Selected.
Please also review the following help topics:
- Export Overview
- Selection

Custom Controls and States

I've got an <mx:Button> in my application, I have 10 items in an XML Node. What I'd like to do is when the button is clicked show the next 5 XML Nodes.
How do I achieve this?
My code is as follows at the mo :
<mx:Button x="1380.65" y="582.65" styleName="rightButton"/>
The style is just setting the up / over and down states of the button. But I want it to function and show the XML nodes in groups of 5.
How are you displaying the first five items?
If you're displaying things in a list or DataGrid, I believe you can set the verticalScrollPosition to scroll the list via a button click.
If you are displaying items using TextInputs, custom component, or other non-renderer-based classes, you just need to manually write some code to update the display elements based on the currently displayed index and what is next.
Can you offer a running sample? That may us direct you!

Open create content form modal and refresh view display in Drupal

I have a website developed using Drupal. What I want is to create a link which launches a modal window with a custom content create form, then when the form submits and the child window closes, a view or a display of a view in the parent must be refreshed.
I have tried using an excellent module like automodal and ajax_views_refresh but I can't get to set it right.
Any clues?
Figured out how to do this not so long ago, and while looking for a method to Preview content from the Modal Frame, came across your post. Hope this isn't to late to help.
Open parent.js under modules/modalframe/js
and insert location.reload(); around line 250 within this if statement:
if ($.isFunction(self.options.onSubmit)) {
self.options.onSubmit(args, statusMessages);
}
Now, when you click "Save" the child window closes and triggers a parent page refresh.

ASP.NET C# - Display Embedded Web Objects in Datagrid control

Im using Visual Studio 2008, on an ASP.NET C# website. Overall what I want to accomplish is that when an item from a list of items is clicked, a video will display on the same page. I want this done all in one aspx page, I dont want to create a new page for each video file. The video files are hosted for me on www.screencast.com.
What I have done is created data-bounded radio list, and a datagrid which is binded to whatever is selected from my radio list. So when an item from that radio list is clicked, the video will diplay on the page, along with a description of the video and other important info.
What i have dome so far does not display my videos. Thats why I am here. I need to know how I can replace one of the fields from my data grid with an embedded web object.
What path do you guys recommend I take to acomplish my goal?
EDIT
With JoeRage's suggestion to use Shadowbox.js, Im going to have on my datagrid a simple link that when clicked, a video will display. My problem is how do I make my hyperlinks get formatted with the following info:
<a rel="shadowbox;width=800;height=600" title="Basic Pricebook Training" href="VideoContent/pricebookMgtBasic.swf"><img src="VideoContent/PricebookMgtBasic.gif" alt="" class="border"></a>
I know that on a datagrid, i can add a hypertextFeild. Problem is that even if I use the DataTextDormatString?
Check ShawdowBox.js.
Edit: You can use a TemplateColumn to build the desire output.

Resources