.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
Kaviya Balasubramanian
satyapriyanayak
SP
abhays
Sasi Prabhu
Post New Web Links

DataPager Silverlight Control for Beginners

Posted By: Asim Sajjad     Posted Date: October 31, 2010    Points: 2   Category :Silverlight
 
It was a long time when I have post on silverlight data grid control, at that time I was thinking of posting complete series of the post on the data grid control I have posted on the data grid grouping control but I didn't post on the paging of the data grid records. Now after long time I have time to see the silverlight and its paging control, I know there are lot of tutorial regarding data pager control But I have this for the absolute beginner who are just started their journey of the Silverlight.
For this example I have two controls added in my xaml are one is the data grid control and the second one is the data pager control.
You can see the code for the data grid control and the data pager control in the List 1, Here you can see that I have set the properties of the data grid control like auto generate columns to false mean I will set the columns for the data grid control, IsReadOnly is set to false mean this grid is used for the display of data and the vertical and horizontal grid line brush and GridLinesVisibility is set to All to show both the horizontal and vertical lines.


View Complete Post


More Related Resource Links

Using Bing Map Control in Silverlight For Beginners

  
In this post I will show you how to use the Bing map control in the silverlight application to show the location on map. For this you have to download the SDK for the Bing map control from here. By downloading and installing the Bing map SDK on your system you will have the libraries and the SDK for the Bing map on your system.Now let us start to create the application to use the Bing map.

Silverlight RichTextBox Control For Beginners

  
Need to use the RichTextBox control of the Silverlight 4 and need ways to bind the RichTextBox control to the view model properties.

How to Bind a child control with properties of the parent control in Silverlight and WPF?

  
Dear Experts, I have a usercontrol in Silverlight and I want to enable the update button inside the usercontrol with property defined in the usercontrol. For the proof of concept sake I have defined the usercontrol xaml and the code behind in VB.NETBelow is the XAML and VB.NET Code. ----------------------------------------------------------------------- <UserControl x:Class="SLBAppAssementQuestions.SilverlightControl1"     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"     xmlns:d="http://schemas.microsoft.com/expression/blend/2008"     xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"     mc:Ignorable="d"     d:DesignHeight="300" d:DesignWidth="400">     <StackPanel>         <CheckBox x:Name="chkBox1" Margin="10" Checked="chkBox1_Checked" >Checkbox1</CheckBox>         <CheckBox x:Name="chkBox2" Margin="10" Checked="chkBox2_Checked">Checkbox1</CheckBox>         <Button  x:Name="BtnUpdate&q

Silverlight media player control for mvc

  
I wamnted to add a silverlight media player to my MVC site. there was a silvlight Media player that you could drag and drop on a page from the tool box, but I cant find it anymore. I am not sure it was good for mvc anyhow,   what is the easiest way to get a silverlight media player up and running on a mvc site, I really dont want to make my own, incorarating a silverlight app just for the media playerr seems like a fair bit of work, i was really looking for the drag and drop option we had in VS2008  I'm using VS2010 .net 4 silverlight 4 Any ideas?

URL Routing + DataPager control

  
hi all, we are using URL Routing so a path like http://www.mysite.com/news/Default.aspx would be output like http://www.mysite.com/news we have a data pager on the page that ties to the list view. the data pager when changing pages reverts the url back to the un-routed version (like http://www.mysite.com/news/default.aspx?page=2) how can i re-write this back to something more friendly for my app ideally it would be great to have it look sometihng like /news/page/2  i can use IIS 7's new re-write module - already using it to remove trailing slashes. thanks in advance, mcm  

Reflection Effect For Beginners Using Silverlight 4

  
In this post I will show you how you can create the Reflection effect using the blend 4 in Silverlight application. It is really easy and nice to have the reflection effect in your application.Creating reflection and mirror effects is a little different than creating blur and shadow effects because these effects are not built into Silverlight. However, you can create reflection and mirror effects by using features present in Silverlight. Output of the this exercise will be as shown in the Image 1.

finger swipe on ipad/iphone for datapager control

  

hi all,

i am currently develping a webpage for ipad/iphone user, but the problem now i face is adding the finger swipe feature for the datapager control, if the user swipe finger to the left, i want the pager to go previous and swipe right side for the next page.

after i research, i got the code for swiping using javascript,  when swiping different direction, the background of the page will be changed, but i just dont know how to implement the code to my datapager control, please help me, thank you.

 

 

 <script type="text/javascript">
      // TOUCH-EVENTS SINGLE-FINGER SWIPE-SENSING JAVASCRIPT
      // Courtesy of PADILICIOUS.COM and MACOSXAUTOMATION.COM

      // this script can be used with one or more page elements to perform actions based on them being swiped with a single finger

      var triggerElementID = null; // this variable is used to identity the triggering element
      var fingerCount = 0;
      var startX = 0;
      var startY = 0;
      var curX = 0;
      var curY = 0;
      var

Silverlight user control, canvas "layout root", no key events ever.

  

Hi,

I'm trying to use a UserControl in Silverlight and I want to handle some key events. The user control is a network diagram, laying out data points in a circle and showing the relations between points. It consists of a canvas to which various shapes (ellipses for data points, lines for relations between points). I'd like it to be focusable and receive mouse and keyboard events to add support for things like rotation, scaling, and randomizing the layout of data points (how readable the diagram is depends on the data and where in the circle related data points are located, but I'm not going to attempt any smart layout logic that figures out where to put the points; instead, I simply allow the points to be laid out in random order along the circle); I was thinking F5 (with it's "reload/refresh" connotations) would be a neat key for this.

Trouble is, I am never ever receiving any key events. Mouse events apparently do bubble up to the canvas, but only from labels - the data points have labels - so I can handle them there. Currently this allows me to resize and rotate the diagram by scrolling the mouse wheel (with the shift key down to rotate, without to scale) if and only if the mouse cursor is over a label. Not *quite* what I want!

After some quick googling I've attempted to set IsTabStop to true on the UserControl containing the Canva

DataPager Manual input From Listview Control

  

Hi There,

I've been trying to marry up the listview and the Data pager with my own, Database class that pulls the information from the database.

I can display the information ok no problem, fortunately this time I know what the problem is, but I cannot figure out a way around the problem.

In my Page_Load event I fill out the listview accordingly:

 

Dim mList As List(Of Object) = mDbase.Record.Items("SELECT TBLResults.ID, Draw, [Date], B1, B2, B3, B4, B5, B6, BB, Jackpot, Wins, Machine, BallSet FROM TBLResults, TBLMachine WHERE TBLResults.MachineID=TBLMachine.ID ORDER BY Draw", GetType(ResultItem))

Me.ListView1.Items.Clear()

     Me.ListView1.DataSource = mList

     Me.ListView1.DataBind()

     mDbase.Close()


 

 

The problem lies in the postback, I need to figure out a way get the information as to what state the DataPager is in so I could update the Query accordingly.

I know there is a StartRowIndex avaialbe but this does not get updated in the Page_Load event.

Has anybody got any ideas?


Anyone know about DataPager in a composite control

  

Hi,

 

I'm trying to use a datapager inside a composite control which references a listview inside the same composite control. Does anyone have experience with doing this as I believe I've set everything up but its not being displayed and not affecting the listView


ActiveX control replacement by silverlight technology

  

Hi,

We developed an ActiveX plug-in for PowerPoint on Windows  The control allows content to be created in some graphical application, transferred to a PowerPoint presentation, and manipulated in 3D in PowerPoint in a view-only manner.  Graphical application is a scientific application which provides ability to create atoms, molecules, defining their bonding and defining surfaces, so user basically create molecules, proteins into the application and transfer it into ActiveX control using  copy-paste.

We want to shift this technology from ActiveX to other, so that it can be used by any software like Microsoft Word, SharePoint, Web browser, and Microsoft Excel.

 

Can someone tell me alternative of ActiveX? What other technologies can be used to develop same functionality in Microsoft domain? Any pointers indicating for Advantage and disadvantage of using ActiveX and other proposed technology?

I heard about Silverlight, but I do not know anything how it would be useful and how it is beneficial over ActiveX?


DataPager Control in a Server Control

  

Hi.


I'm trying to create a Server Control that will use a DataPager Control, but I'm having some difficulties with the PagerTemplate.

This is the DataPager control that I want to generate from a Server Control:


    <asp:DataPager ID="myPager" PageSize="20" runat="server">
        <Fields>
            <asp:TemplatePagerField>
                <PagerTemplate>
                    <div class="counter">
                        <%# Container.StartRowIndex + 1 %> to 
                        <%# ((Container.StartRowIndex + Container.PageSize) > Container.TotalRowCount ? Container.TotalRowCount : (Container.StartRowIndex + Container.PageSize))  %>
                        of <%# Container.TotalRowCount %> records
                    </div>
                </PagerTemplate>
            </asp:TemplatePagerField>
            <asp:NextPreviousPagerField ButtonType="link"
                    FirstPageText="first"  
                    ShowFirstPageButton="true"
                    ShowNextPageButton="false"
                    ShowPreviousPageButton="false"
                    RenderDisabledButtonsAsLabels="true" />
      

DataPager Using MVVM in Silverlight 4

  
In this short post I will show you how to use the DataPager control using MVVM pattern in silverlight. I have develop navigation application for this example which you can see as shown in the Image 1. Here you can see that I have two control in the home screen one is the DataGrid and the second one is the DataPager control.

Selecting One Checkbox Control In DataGrid Control Using MVVM Using Silverlight

  
In this post I will show you how to select single check-box control when you have single check-box control in each row of the datagrid control. As you all know that check-box controls are normally used for the multiple selection and radio buttons are used for single selection. But there are sometimes requirement that control should be check-box and selection should be single. Mean if user view data in the datagrid control then he/she should only select one check-box at a time not more then one. Main page is shown in the Image 1. Here you can see that I have placed check-box control in the first column of the datagrid control which I have also highlighted.
Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend