How to design a table(using listbox) in Windows Phone? - silverlight

I could not able to design a table using listbox. For the past 5 days, am doing nothing but these things, I am totally naive to Windows Phone application development.For me, the problem is the table that i'm designing will not fit into a single page. I want the user to drag the table to view the off-contents. But using list box (particularly, listbox item) i could not able to achieve this. After this, i need to create dynamic rows to the table.Could anybody please help to create the table?

Check this out:
Building a DataGrid Control for Silverlight for Windows Phone
http://www.silverlightshow.net/items/Building-a-DataGrid-Control-for-Silverlight-for-Windows-Phone-Part-1.aspx
This might help =)

Related

Paging in a ListBox (Panaroma Control)

I'm using the default Panorama project in Windows Phone 7.1 and want to implement some kind of paging on the the first page's mvvm ListBox items. The sample project has 16 items, but I only want to show 4 at a time (and then buttons below showing next / previous). All of this in XAML.
I've looked around quite a bit and haven't discovered a way to make this happen. Does anyone know how this can be achieved?
Judging by your question the answer shouldn't have to be WP7 specific. Having said that you could pretty much get a listbox control with paging done in silverlight and add it inside of your Panorama page.
I did find this page which shows how to do paging in silverlight with the listbox control and two buttons like you mentioned. Sorry, it's in VB but it shouldn't be difficult to transfer the logic to C#.
But like I said it's not really phone dependent to add paging because it's all xaml. So you could probably search "Paging Listbox in Silverlight" and should find something.

Creating a Drag n Drop Designer so users can create a Form?

I'd like to create a way for my users to create Forms so they won't have to ask me to do it. Unfortunately, I am in dark, unknown territory. I envisioned it as the following:User can drag pre-made tables or (pre-made) custom rows.Once the user has created the layout, he will save the layout and deploy to the server.Other users will then be able to access the new Form which will have textboxes, radiobuttons, and checkboxes.Lastly, users will be able to save and load that Form Data anytime they access the Form.
Anyone can point me in the right direction or give me a quick summary of what I'll need to accomplish this task? It will be much appreciated.
At this point, I'd like to do it in WinForms, WPF, or Silverlight. I know the tech is different but the overall approach should be same (I'm hoping).
Rather than building an application for form-filling, consider using Microsoft Infopath.
If Infopath is too expensive to deploy, you may use the form functionality in Microsoft Word instead. Here's a tip to save data from Microsoft Word forms to the database.

WPF Autocomplete Combobox Not Saving To Database VB

Trying to create what i feel should be an easy WPF application. basically what i want it to do is have a autocomplete combobox which is bound to a sql db table. the table has 2 fields(Address and Directions)
once the user selects the record from the address combox the directions textbox below will be filled directions stored in the table.
if there are no records in the address combobox the user can then type in the combobox and add the new entry.
there will be a save button on the form that saves the new entry and will be visible in the list. Im new to WPF applications and have been trying to get this to work for weeks. Any help would be appreciated.
I would start by checking out the following discussion which will point you to several good tutorials on using the MVVM (Model-View-ViewModel) pattern with WPF.
MVVM: Tutorial from start to finish?
Other than that, you haven't really given any indication what you've tried and what isn't working so I can't really offer any other advice. But even the simplest applications in WPF are much cleaner and more easily implemented with MVVM than using code behind and drag and drop data binding.

How to implement a Silverlight Control for time table(scheduler)

My company is going to development drag and drop feature in Silverlight. We are very new to Silverlight and just learnt SL for a week ago. But I believe the feature that my company wants can be done in Silverlight. The control about is about the time table in which the resource will be shifted around.
Here is the feature detail. We have one list box on left (resource list) and one table on the right. What we want to do is drag an item from the list onto the table then may have some data manipulation on table. I think it’s simple and but for me I don’t know how to create the table which is I think there is no built in control like this. Please take a look my screenshot below.
http://i.stack.imgur.com/QCaVX.jpg
My questions are:
How can we approach to achieve this
feature?
What is the best way to implement
this control?
How we can handle the event such as
drop, reload, bind and so on?
How can we select and drag cell on
table?
Yes, Silverlight can do that. It has drag-drop and rich support for creating custom user controls.
The Telerik RadControls for Silverlight have a control that does some of what you need. They also make source available.
You might want to research all the available third party controls first to save development cost.
There are too many questions in your question to answer. Best do your research and then ask specific questions.
The Telerik control is called RadScheduleView and can be seen here: http://demos.telerik.com/silverlight/#ScheduleView/FirstLook. It has nice performance and a lot of features.
We are also using Telerik RadScheduleView .It is simple and lot of demos for you to start.

Automatic form generation software

I'm using winforms. I spend a lot of time drawing forms (maybe not a lot, but it is a boring task).
To sum up... I want to develop a simple aplication that connect to a sql server database, let the user to select a table, and put the controls in a form for me (generate the designer code), based on the tipe of each column. Then my app will name each control like the column of the table, set the maxlengh property (if the type is varchar), and create a label with the same text near the control. If the column is a FK, then the app will draw a combobox and so on. I saw that Telerik Open ORM make something like this, but I only need a simple app for the IU Generation.
If the same day I finish my little application I discover a tool that make the same... I will feel myself stupid :D
Are there any tool out there that do this work for me?
You can just drag DB columns from the Server Panel and drop them on the Form. This will generate TextField, CheckBoxes and other UI elements for you.
You can also drag the entire table and drop it on the form. Same thing will happen: all fields will get generated.
This is using plan Visual Studio 2008 IDE.
Take a look at DevExpress - they have a number of ways to do exactly this. (We're a happy user of their product.)
Take a look at Microsoft lightswitch. I had posted a similar question as yours and stumbled upon it by accident. Devexpress also has an orm like Teleriks http://www.devexpress.com/Products/Index/Frameworks.xml. I am using Lightswitch for form gen. good luck

Resources