Can I show hyperlinks in AutoCompleteExtender? - c#

I'm able to create a List<> of strings and show it in a AutoCompleteExtender, but how can I make these suggestions clickable links? I figured, I could create a List of HyperLink objects, but they just show up as [Object] in the list. Any suggestions?
In simple words, I want to be able to click suggestions from the AutoSuggest list.
Will I need to use some kinda client side script?

Related

List data in multiple views edit data on click

I'm trying to figure out what design object to use for my forms application.
I want to make a forms application that looks like below image.
I have so far used splitcontainers for the layout and three gridviews with separate DataSources querying the same table but with different where clause for eatch gridview. This works fine but when i click a row in any of the three gridviews i cant have that data show on the right side becaus i can only get data from one datasource on my labels and textfields etc.
I guess that i should use one datasource but in some way have different where clause to each gridview but i've tried it and i only end up with the same data in all of the gridviews.
If it's to complicated to get together i would instead have a new form window apeare with a click of a button. So if i select one row in any of the gridviews and then click edit a new forms window will open for me to edit data in. How can i do that?
Please advice me how i should try to build the application.
For example; Dont use gridviews use this or that instead. Dont use splitcontainers use this instad. Use bindingsources... etc.
I really appreciate any help you can provide

How to manipulate a datasource in SketchFlow

I'm learning SketchFlow and am working with a sample project I've created. The basic idea I'm wanting to prototype is having a list of beverages (which are bound to some sample data) and allowing the user to add one or more to their order. When they click the add to order button the selected beverage from the listbox would be added to the order listbox on the right.
Perhaps I'm overthinking this, but there doesnt seem to be an easy way to do it without the marjority of it being done in the code behind.
Or is this something that shouldn't be prototyped in sketchflow?
Any suggestions?
you should be able to bind it the right list with new datasource instead, cause the idea here is not to write and get involved into coding more than its a protoype tool, so try to get around by bind the right list to new datasource which include the list u added from the left hand side

Creating checkboxlist with a list box

I have an requirement to create a list type structure and that will be the options kind of thing.So, when user check the checkboxes or in other words select the options, I have an box equally opposite to it which will show the seleceted options. for eg
The first box contains this::
checkbox Investemnt-1102
checkbox credit-rt11
checkbox debit -2390
the seocond box will list all the items that are selected from first box
as I am new to MVC, I am confused for the first thing that I am not using any third party control.I need to do it custom .so, How can I make it possible. Please suggest.
You can always create custom Helpher extended controls in MVC. This is the beauty of MVC.
Do you want something like this?
MvcCheckBoxList
You can play around with your logics easily.
Here is the detailed description of above extension
http://www.codeproject.com/Articles/292050/CheckBoxList-For-A-missing-MVC-extension
Do google and read about Extensions

list view problem with respect to my problem

I have a listview in wpf and i am swapping two items index..
the swapping must be visible to the user.
i tried giving thread delay..
it didnt work
How to do that..
If I was going to do this I would delete the list view and lock it up where you can't use it again. Then code whatever your list view was outputting in C# using whatever you use to query your database(I think LINQ to SQL is the most robust solution right now) and then use a string builder to construct the html. This way you can assign a id to each div and append an incrementing number to the end of the id. Finally you could write your javascript and use the id's. Here is a link that shows how to build a gridview without using a gridview control.
See the first answer to the question in this link: How to show pop up menu from database in gridview on each gridview row items?
I am not sure whether it will work for your problem or not.
I think you need some kind of animation there. If it is web project, you can use jQuery animation to do that.

Dragging & dropping items from one list to another in a ASP.NET page?

I would like to move items from one list to another on a page, and I'm pretty flexible about what type of a list it is. What's the best way to do that? ASP.NET Ajax? jQuery? Anything else?
There's a nice tutorial on CodeProject that covers dragging with ASP.NET and jQuery:
http://www.codeproject.com/KB/webforms/JQueryPersistantDragDrop.aspx
if you want to do this and PostBack instead of using AJAX to update your data based on from fields you'll need to get creative about what types of controls you use. Page validation will complain about ASP controls like dropdownlists, listboxes, etc. if they contain selected items that weren't in the list when it was rendered.
Better to use AJAX to send back your updates or use HTML controls like unordered lists or select added via javascript and stuff the selected data in another control that doesn't complain (hiddenfield) on PostBack. The alternative is turning off page validation and I don't think that's a good idea.
You can also might look at YUI Library, I'd say it implements Drag & Drop in a very simple and flexible way:
http://yuilibrary.com/yui/docs/dd/
There are a lot of examples etc...

Categories

Resources