Want to fix four items per row in a gridview in Windows Phone 8.1 app. I am using data binding.

No of items in a row of grid varies for different resolution WP devices. How can it be fix to say 4 items per row. Here is xaml:
<DataTemplate x:Key="DataTemplate1">
<Grid Margin="8,0">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Border Background="{ThemeResource ListViewItemPlaceholderBackgroundThemeBrush}" Margin="0,9.5,0,0">
<Image x:Name="image" Height="100" Width="100" Source="{Binding ImageName}" >
</Image>
</Border>
<TextBlock Grid.Row="1" Text="{Binding Name}" />
</Grid>
</DataTemplate>
<Grid>
<GridView ItemTemplate="{StaticResource DataTemplate1}" ItemsSource="{Binding Data1}" HorizontalAlignment="Center" >
</GridView>
</Grid>

You could change the GridView's size to datatemplate size * 4 (and allow for any padding). This would have the side-effect of making the GridView a different size on different screens though (e.g. on a higher-resolution screen the grid will be smaller, but
will have the correct number of rows).
I'm not sure if it's possible, but see if you can adjust the datatemplate's size at runtime to be 1/4 the gridview size. This will scale nicely if it works.
I'm a self-taught noob amateur. Please take this into account when responding to my posts or when taking advice from me.

Similar Messages

  • I want to use data binding in jsp,just like microsoft ASP's RDS,how can I d

    I want to use data binding in jsp,just like microsoft ASP's RDS,how can I do?

    I can't claim to know exactly what RDS binding involves, but if my hunch is correct, you can get very similar behavior by using JSTL and define your data source using JNDI. See the JSTL spec, my article series about JSTL, or a JSP/JSTL book (such as mine ;-) for details:
    http://java.sun.com/products/jsp/jstl
    http://www.onjava.com/pub/a/onjava/2002/08/14/jstl1.html
    http://www.onjava.com/pub/a/onjava/2002/09/11/jstl2.html
    http://www.onjava.com/pub/a/onjava/2002/10/30/jstl3.html
    http://www.thejspbook.com/

  • Fixed header working fine for desktop but not for windows phone

    I have my website in asp.net with master page. I have used below css for header div of my website to make it fixed.
    .header{
    z-index: 3001;
    position:fixed;
    top:0px;left:0px;
    background-color: white;
    width:100%;height:150px;
    This is working fine for desktop. But on mobile, I can only see my 50% of width of the header. On the right side of 50%, nothing is cmg. As in just white background is cmg. On the right side, I have a button which when I click is working. To say, controls are
    not visible but they are working if u manage to click at the exact place. Any fix for this?
    I want to add that this problem is coming only in windows phone. So need fix for that.

    Hi User1508372,
    The
    Developing for Windows Phone forum is for developers to discuss writing Windows Phone apps, not for writing web sites targeting Windows Phone IE.
    My guess here is that your site may be running into a compatibility mode or different versions of IE on desktop and on Windows Phone, but you don't provide enough information about which versions of IE you are using. Windows Phone 8 uses IE 10 (similar to
    Windows 8).
    The folks in the
    Windows Phone IT Pro forums are likely to know more about the Windows Phone IE specifics, and the folks in the IE or ASP.Net forums will know more about how to target your HTML for different versions.
    --Rob

  • RESOLVED : Windows Phone – Download/In-app reporting fix begins tonight

    Update 4/2/15: The processing is complete.  The below issue is resolved.
    We have identified some download and in-app purchase transactions that were not appearing in the Windows Phone Dev Center dashboard for the November to present timeframe.
    We will start the process to add these transactions back tonight. The process will be completed in approximately a week.
    Please note the following:
    We will add data one month at a time. The most current data will be processed first (March 2015) and then work backwards to November 2014. 
    As each month is processed, you may see increases in your download/in-app reporting numbers for that month.
    You will not lose visibility into any data. 
    Transactions will continue to be shown in the Windows Phone Dev Center portal, while in parallel, we will add back the historical data.
    Only some developers were missing transactions, so you may not see any changes in your download/in-app numbers.
    This issue only impacts
    Windows Phone download/in-app numbers.  Windows Phone payout data, and Windows data is unaffected.
    We will update this post when the process is complete.
    Thank you,
    Patrick

    Hello,
    Skype for Windows Phone 7 has been discontinued and stopped working. Please read this:
    https://support.skype.com/en/faq/FA34489/is-skype-for-windows-phone-7-being-discontinued
    Skype für Windows Desktop: v7.4.x.102
    Skype für Mac OSX: v7.7.335
    ↓ Did my reply answer your question? Accept it as a solution to help others. Thanks! ↓
    ↓ Hat mein Post deine Frage beantwortet? Akzeptiere ihn als Lösung, um anderen zu helfen. Vielen Dank! ↓ .

  • Need a panelGrid which renders a List one item per column

    I want to show items from a list in my backing bean as icons in a grid, 4 columns wide.
    This means I need to iterate through the list and show each item in the list in a separate column, moving to the next row after every fourth item.
    My experience with the dataGrid shows that I can only display one record per row with this control, and the panelGrid doesn't allow iteration through a data structure.
    Any suggestions?

    I solve this problem using binding
    First
    <h:panelGrid id="panel" columns="4"                          
    binding="#{BeanClass.panelList}" >
    </h:panelGrid>     
    this is all that need in my jsp.
    Inside my BeanClass i have a property panelList
    /** This is in my BeanClass */
    private HtmlPanelGrid panelList;
    public UIComponentBase getPanelRole() {
    panelList = new HtmlPanelGrid();
    //TODO this is option, because already it's define in jsp page
    panelRole.setColumns(4);
    List objectList = getAnyWhere(); // this should be your object List
    for (Iterator iter = objectList.iterator(); iter.hasNext();) {
    AnyObject element = (AnyObject) iter.next();
    // You can create other object ( link, button, simple text and soon )
    // I wanted to create a button link
    UICommand out = new UICommand();
    out.setValue(element.getName());
    out.setId(element.getId());
    // Both name and id are String
    panelList.getChildren().add(out); // here attach the components
    return panelList;
    public void setPanelRole(UIComponentBase panelRole) {
    //I don't use this method
    }

  • Fix a column a row when scrolling

    I want to fix a column or row in number so that they stay where they are whilst I scroll through the sheet. Is that possible? How?

    See Freeze Headers.
    p. 64 in the Numbers User Guide.
    Jerry

  • ListView jiggles horizontally when large item about to scroll in or out in Windows Phone 8.1 Preview

    If you have a ListView (in a Windows Phone 8.1 Store app, running on the developer preview 8.10.123979.895) in which you do not explicitly constrain the size of your list view's item template (e.g., because you'd like it to resize automatically when
    the screen is rotated, or to adapt well to larger screen sizes), a problem arises if some of the items in your list want to be wider than the screen. They are correctly cropped, but as you scroll down through the list, the whole list jiggles left and right
    as the long item is about to scroll into view, or shortly after it has scrolled out of view.
    The built-in Calendar app suffers from this problem, by the way, so even if it's possible to avoid this in my own app, the Calendar app needs fixing... If you create a large number of appointments on a single day, where most of the appointments have short
    names, but one has a long name, and you then tap the day to expand its list of appointments for that day, you'll see this jiggling from left to right as you scroll through the appointments.
    Here's some code that reproduces the problem:
    XAML:
    <Page
    x:Class="Wp81ScrollBug.MainPage"
    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"
    Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
    <Grid>
    <ListView
    x:Name="myList">
    </ListView>
    </Grid>
    </Page>
    Codehind for that:
    using System.Linq;
    using Windows.UI.Xaml.Controls;
    using Windows.UI.Xaml.Navigation;
    namespace Wp81ScrollBug
    public sealed partial class MainPage : Page
    private string[] _source =
    Enumerable.Range(1, 80).Select(i => "Short " + i)
    .Concat(new[] { "This item is much longer than the rest and causes problems as virtualization adds and removes it" })
    .Concat(Enumerable.Range(81, 80).Select(i => "Short " + i)).ToArray();
    public MainPage()
    InitializeComponent();
    NavigationCacheMode = NavigationCacheMode.Required;
    myList.ItemsSource = _source;
    protected override void OnNavigatedTo(NavigationEventArgs e)
    You can get rid of the problem by adding this inside the ListView:
    <ListView.ItemTemplate>
    <DataTemplate>
    <ContentControl Width="480" Content="{Binding}" />
    </DataTemplate>
    </ListView.ItemTemplate>
    but this is unsatisfactory, because it no longer handles orientation changes or different screen sizes - when you rotate the screen, the long item doesn't get to use the whole width.

    The Jiggle is due to virtualization and an attempt to fit the contents.  The only solution I can think of is to set the width based on the orientation.
    Jeff Sanders (MSFT)
    @jsandersrocks - Windows Store Developer Solutions
    @WSDevSol
    Getting Started With Windows Azure Mobile Services development?
    Click here
    Getting Started With Windows Phone or Store app development?
    Click here
    My Team Blog: Windows Store & Phone Developer Solutions
    My Blog: Http Client Protocol Issues (and other fun stuff I support)

  • Last Use Date for iViews/Pages/Workset - Portal clean up of old items

    Is there any scripts that SAP has created that shows the Portal Admin which iViews have been recently used by the users and which ones have not. We would like to go through our environments and Clean Up/Remove old none used code in the PCD.
    I am hoping there is a script that can be run which produces a report stating Last Used/Executed date. If there is nothing like this, does any one know if there is any Data Base table or fields that can identify this type if data so we can create/write our own script?  The PDC inspector may do this but its a very manual effort and we'd like something that is automated and runs in the background.
    I know we can turn on metrics, but that will not work for us because it completely bogs down our systems and we can't afford that. Hence we are looking for something that runs in the background and will not effect our environments.
    Thanks
    Pete

    Thanks everybody for trying to asnwer the first question.
    But I guess what I am really looking to find out, for every item we have in the PCD, is there a way to find the last used date? We don't want to turn on the metrics for a period of time like some of the solutions have suggested since that will bog down out production system and it still won't help us identify in our DEV and Test regions items that might still be valid but haven't been touched for a while or are still in development phases. 
    I was hoping that there would be a way that SAP would allow us to enter in a folder name, iview, workset, page, role, etc and then have the system tell us the last used/accessed date for that item or all of the items in the PCD folders.   Kind of the reverse thought to get this data instead of letting the metrics tell us which users have hit which pages, etc.
    Does any one know of that type of option? 
    Thanks
    Pete

  • Want to count the number of rows of analysis item in WAD Template

    HI all,
    Detail Description:
    In my WAD report, i have a Export to Excel Option. But I want when I click on this button, one pop up will come only if no of rows of the Analysis Item is Greater than 10,000 ask for Do you want to proceed or not.
    Means 1st i want to count the no of rows in the Analysis Item, after that it will check, if the no of rows is greater that 10,000. then the pop up will come.
    Question:
    Does anyone know, "how to count the no of rows of the analysis Item ?" . It will be better if you know you to implement this with the help of java script.
    Means there must be some varible, which counts the no of rows. If you know then please help me

    Hi,
    Please find the below link which helps you to get solution of your question.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d0bbb20f-2d7e-2e10-258f-8655daa41fab?QuickLink=index&overridelayout=true
    It is mainly used to automate queries, web templates, and reports in different output formats like PDF, Excel,
    XML, XHTML, and HTML
    How to see WAD reports on browser:
    The BEx Web Application Designer is a desktop application for creating Web applications with BW-specific contents. Using the BEx Web Application Designer, you can create an HTML page that contains contents such as various tables, charts or maps. This HTML page (Web application) provides the basis for not only Web applications with complex interaction, but also for Web cockpits and iViews.
    http://help.sap.com/saphelp_nw04/helpdata/en/1a/456a3badc1b315e10000000a114084/content.htm
    Web Application Designer for Beginners
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/749a4622-0a01-0010-36bf-b6b30a2a3a22
    Web Application Solutions: A Designer's Guide
    http://www.lukew.com/resources/webapplicationsolutions.pdf
    http://sap.ittoolbox.com/groups/technical-functional/sap-solution-manager/bw-web-application-designer-1955944
    Feautures of WAD in 7.0
    http://help.sap.com/saphelp_nw70/helpdata/en/88/4d354277dcb26be10000000a155106/frameset.htm
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5c46376d-0601-0010-83bf-c4f5f140e3d6
    Regards
    Sudheer

  • IDOC type to send OPEN ITEMS per INVOICE to external system?

    Dear EDI Experts,
    we want to send OPEN ITEMS of a customer per document via EDI to an XML file.
    We checked on idoc type CRESTA01 but this idoc type provides "only" the total OPEN ITEMS of a customer but NOT e.g the invoice document numbers.
    Is there any way to generate an IDOC or XML file with the invoice numbers and its OPEN ITEM amounts?
    We want to transfer that data to an HH device in order to show customer which invoices yet to be paid.
    Any idea?
    Many, many thanks
    Regards
    JW

    Hello,
    many thanks for the quick answer to my question.
    We want ONE credit idoc per one customer showing all OPEN ITEMS with the document number.
    That info is sent to the Handheld in order to provide customer exact info which invoice he has not paid yet.
    We do not need ONE idoc per ONE document.
    But it seems no standard idoc provides such info and we have to call a FM to provide that info to a Z-Segement of CRESTA01. Is that correct?
    Port definition XML in we21 for idoc type is understood.
    Thanks a lot
    Regards
    JW

  • Interactive Report - Icon View - Dynamic Columns per Rows ?

    Hi all,
    We use the icon view functionnality in Interactive Report.
    Is there a way to display the 'columns per row' attribute as an application item and set it dynamical via PL/SQL ?
    Any suggestions?
    Thanks in advance for advices,
    Regards,
    Grégory

    Hi,
    Apex 4.0 interactive reports and images (Scott's thread)
    Have some useful information and pointers to the solution you are looking for.
    I hope this help.
    Thank you,
    Ranish

  • Delivery from sales scheduling agreement with one item per schedule line

    Hi all,
    I have a sales scheduling agreement where the same part number has 3 different JIT schedule lines and I need to create a delivery with 3 item lines: every item line of the delivery has to be referred to one schedule line of the scheduling agreement.
    When I create the delivery with transaction VL10E it has only one item line and its quantity is the sum of the 3 schedule lines of the sales scheduling agreement.
    I've tried to change the customizing of the User Role, choosing the Split Schedule Line = 2 ("One item per schedule line") but the delivery is created again with only one item line.
    How can I solve this issue?
    Thanks in advance for reply

    Dear Alex
    The SAP standard behaviour is that all schedule items with delivery date in the past have to be rescheduled anyway to one date and are combined therefore.
    Partially this behaviour can be influenced in VL10* by 2 parameters in
    the user role : Split per sched.line and Rule (delivery qty).
    Please find below informations about these different parameters
    "Split per sched.line propose you 3 Rule for creating one delivery item
    per schedule line. In a delivery list in item view with multiple
    schedule lines, you can decide for the same document item whether you
    want to generate one delivery item per schedule line or whether you want
    to deliver the cumulated quantity of the last schedule lines selected.
    About rule for delivery quantity, the following rules are currently
    implemented:
    1. No cumulation
    The open schedule line quantity to be delivered is the quantity at which
    the list line is delivered.
    2. Sum of all open schedule line quantities to be delivered that fall
    before the chronologically latest date in the to field (following the
    Deliv. creation date field) of the selection criteria.
    3. Sum of all open schedule line quantities to be delivered whose
    delivery creation date falls within the selection time frame (between
    the dates in the Deliv. creation date and to fields, respectively),
    making the calculation of the quantity to be delivered consistent with
    selection criteria. However, calculationof the quantities delivered with
    the order's schedule line quantities is not affected."
    Hope this helps.
    Regards
    Tonia

  • Delivery item per schedule line

    Hi all,
    Thank you for viewing my posting, I have the requirement as following:
    I have two SD schedule agreements, there are several schedule lines on JIT delivery Scheudle tab for each schedule agreement, these two schedule agreement are for same customer, have different material.
    What I want is:
    When I create delivery for these two schedule agreements in VL10A, these two schedule agreements are combined into one delivery note, but the delivery item per schedule line on the delivery note.
    E.g.
    one schedule agreement has 5 schedule lines
    the other has 4 schedule lines
    After I create delivery for these two delivery notes in VL10A, there should be 9 items on delivery notes, one item per schedule line.
    Do you have idea on this? I do not want to combine several schedule line into one delivery item.
    Thanks!
    Alex Lu

    Dear Alex,
    You try these copy control settings between Scheduling agreement and delivery document.
    Go to VTLA transaction select your document types
    First you go header level settings here you can find the check box field called Copy item number check this then try.
    If it is not full fill your requirement then go in to the item details here you can find the copying Routine maintenace field Item Data Under Data transfer Tab,this field will have 101 item Routine as per the standard,you take ABAPer help you copy this routine then change according to your requirement then assign new routine here.
    I hope this will help you,
    Regards,
    Murali.

  • SMARTFORM:  How to print on document per row in an internal table

    Hi.
    I have created a SmatForm that is a one-page document to be printed once for every row in an itab I'm sending it via the Table Interface.
    I hope I didn't waste my time designing this form but I created several Windows for each section (header, recipient address, summary of coverage, detail coverage information, disclaimer, etc.).  I arbitrarily chose the header window as the "main" window (mainly because I couldn't find out what the difference between  the different choices was).  I've got the form laid out exactly how I want it.
    If I test the SmartForm and pass in 2+ records via the test screen only the first one prints. 
    I thought about trying a LOOP but since you have to place the text within the loop that means all the Windows I have defined won't "get" any of the data.
    I thought about looping in the driver ABAP program and just calling the SmartForm once per row but that seems horribly inefficient.
    PLEASE HELP!  Can I salvage what I've done already?

    Valter:
    OK.  I'm trying this and running into a snag.
    In the Form Interface section I have a table interface parameter defined as this: 
    P_CERTIFICATES_IN TYPE ZBNTT_LIFECERTIFICATE
    next I declared a variable named "IT_CERTIFICATES LIKE LINE OF P_CERTIFICATES_IN" in the "Global Definitions" section and on my LOOP element (under my new MAIN window) I have "[X] Internal Table" checked and
    "P_CERTIFICATES_IN" "INTO" "IT_CERTIFICATES"
    but the compiler says "Global Definitions     Field "P_CERTIFICATES_IN" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement . . . . . .".
    Why can't the Smartform "see" P_CERTIFICATES_IN?

  • Displayin message and fixing the number of rows in a table

    Hi Experts,
    I have a requirement like this
    there is a table, where i need to diplay a message when there are no records and no rows should be visible on that table.
    Also, when the records are populated from the context, i need to fix the number of rows in that table and display the records.
    Please let me know hw this can be achieved.
    Also in the table I have Link to URL, please let me know how to handle this reference, when i set the reference Property, its giving me an error stating that the file doesn't exist when the table gets loaded.
    Thanks in Advance
    Regards,
    Palani

    Hi
    Oh!!  You should to  explain it at first thread itself that you want to display a JPG imange or other WDWebResourceTypetaken form the backend.
    1. So this is not at all a URL
    2. You have to convert binary data to WDWebResource then display it in either Image UI element or other (like PDF , txt etc)
    3
    try
                   //        Read the datasource of the FileUpload
                   IWDResource res = wdContext.currentContextElement().getResource();
                   InputStream in = res.read(false);
                   ByteArrayOutputStream bOut = new ByteArrayOutputStream();
                   int length;
                   byte[] part = new byte[10 * 1024];
                   while ((length = in.read(part)) != -1)
                        bOut.write(part, 0, length);
                   in.close();
                   bOut.close();
                   IPrivateUploadCompView.IImageTableElement ele = wdContext.nodeImageTable().createImageTableElement();
                   ele.setImage(wdContext.currentContextElement().getResource().getUrl(0));
                   ele.setText(res.getResourceName());
                   wdContext.nodeImageTable().addElement(ele);
              catch (Exception e)
                   wdComponentAPI.getMessageManager().reportWarning(e.toString());
    Here I assume that you convert that data to IWDResource type or
    4.
    WDWebResource.getWebResource(wdContext.currentContextElement().getresource(), type);
    // getResource of type binary which u read from BAPI and set it in local context , type is MIMETYPE or hardcode it as "JPG"
    5. Further help
       [Help1|To Displayan Image in Webdynpro Java from Standard Function Module;
    [Help2|http://wiki.sdn.sap.com/wiki/display/KMC/GettinganimagefromKMDocumentstobeusedinWeb+Dynpro]
    [Help3|http://wiki.sdn.sap.com/wiki/display/KMC/GettinganimagefromKMDocumenttobeusedinWeb+DynPro]
    It might code look strange at first , please do some reserch in SDN ,I did my best at this level.
    Best Regards
    Satish Kumar

Maybe you are looking for

  • How do I share files without making a new copy of them.

    I have my music library on an external hard drive, connected to my AE base station. I have instructed iTunes (on my laptop) that its music library is on that external drive. Now my teen has a laptop and I wish to setup iTunes on that laptop with the

  • Can't figure out how to get my I tunes from one Computer to another.

    When I downloaded I tunes and quick time to my new Laptop and logged into I tunes, I authorized this computer, but can't get my existing library from my PC to my laptop. How do I do that? Can someone tell me please. Thanx! Stashpuppy

  • Small doubt

    hi friends, how can i update in a flat file like ( abc.txt). i would like to search a string in file and replace something in the row and update in the same position. how to do that. with regards.

  • End of a session

    Hi, I want to redirect the user of my page to the index.jsp page when the session ends. How can i do ?

  • LDAP, Address Book and picture

    Hi, I have a Xserve on my network with LDAP, i use it for display all information user's in address book, but no picture ! I read many post on this forum about LDAP and picture user's in address book, likely this post : http://discussions.apple.com/t