would someone please tells me how to populate a combobox with two or more columns? I have been trying to accomplish this for quite some time but with no results. I would appreciate any help. thank you
I have looked in to this myself and unfortunately there is no such thing as combo box with multicolumns. I got round it by creating my own control, but it was a lot of work for what it is, i would suggest finding a third party tool that does this.
You can use Dev Express controls, there is control called Lookupedit it will show multiple columns
In case anyone's struggling with this still, check here.
for short answer you can use SyncFusion MultiColumnComboBox (documentation here for c# or here for VB). If you follow the first link, it will direct you to my answer on a similar question with an example on code.
Related
First of all, thank you so much for your support of YADCF. It's a fantastic tool! Second, I'm not a programmer (I know enough to break stuff :D) so I apologize in advance for having to bother you at all. It's possible my question has even already been answered, I just don't know what to search for.
I'm using the YADCF 0.8.8 table on DOM Source (small "d"). I've built a custom_func_filter based on 11 values & labels. The weird thing is, when the drop-down menu displays for the filter, the labels are not in the order they're defined in.
In trying to figure out what the issue was, I changed the values and labels to numbers from 01 - 11 instead of text to see how it was moving things around. Apparently it's anything over 10 items that it begins to jumble everything up. Here's a side-by-side comparison on what it looks like:
custom_func_filter comparison
I'm behind a firewall so it's not easy to share my code, but I'll figure out a way to if need be. I just wasn't sure if there was something I was missing.
Using datatables 1.9.4, jquery 1.11.3.
Thank you!
You are welcome :)
Quick answer: Use the sort_as: "none" and make sure the data array is in your desired order
Explanation: BEcause in custom function filtering the select is being populated by (data) array of objects value/label the sort as (as its implemented now) wont really sort the data, so since you populate data manually, just make sure its in your desired order
So I'm working on a database application in JDeveloper, and one of the requirements is that the user doesn't need to manually enter a unique PK when creating a new object through a web form.
I've done my online searches for about two hours now, and I know that many people have solved this problem in the past. But I'm having a hard following their solutions.
I've only started using JDeveloper, ADF/JSF/Facelets, and SQL less than a week ago, so I'd really appreciate step-by-step instructions.
Check out my groovy sample at http://tompeez.wordpress.com/2011/09/02/using-groovy-expression-to-set-a-primary-key-with-a-sequence-number/
Which shows you how to use a groovy expression to do your use case.
Thanks for your help Timo. I actually didn't realize that you needed to create a sequence, so I wasn't able to work very far through your example.
I did eventually figure my problem out here: http://sathyam-soa.blogspot.com/2012/07/adf-db-sequence-using-db-trigger.html
It spells out each step, with pictures, in creating a sequence, setting up auto-increment, and putting auto-increment functionality into a page.
I've made a significant edit to my original post.
Is there a way to modify a column so that it's a ComboBoxColumn without having to change the fact that the other columns will autogenerate? Or is there a way to simply tack on another column that is a ComboBoxColumn?
I haven't supplied code because I'm just looking for a generic way of doing this. If there isn't one then I'll look for alternatives afterwards.
I'm a complete newbie to this WPF stuff so any help would be appreciated. If you need code let me know (it works but it's kinda messy).
Hi I am Mukesh from Madurai
I am using a VB.Net form in which I have a table of sql. In it is a boolean field.
I want to show this field in a form as checked if that field value is true and if false then it should not be checked.
Is this is possible?
If possible please help me with the code which I have to type to make that column in the datagrid view to checked or not.
I have created the sql inside vb.net using add new item and then a database.
First, as you probably have already done, you'll need to import your database. Then set up your data source so you can reference it in code. If you don't know how to do these things, you'll need to look them up on MSDN or the like. They're pretty straightforward. (I wouldn't recommend asking a stackoverflow question to learn how to do these, as you'll probably just get a link as an answer anyway.)
Once you've gotten your database set up, you should be able to tie the checked/unchecked state of a check box (which is what I think you're referring to) to the value using a very simple code similar to the following:
CHECKBOX.Checked = DATABASE_BOOLEAN_FIELD
Replace "CHECKBOX" with the name of your checkbox, and "DATABASE_BOOLEAN_FIELD" with the reference to your database's boolean field.
So, as a recap, you'll need to do the following steps. From experience, I can tell you that one of the best ways to get better with programming is to follow a step-by-step, using your own knowledge and research skills to figure out each step.
Import database into your VB.net project.
Create data source.
Set checkbox's "checked" property to the boolean field in your data source.
After you've earnestly tried this, if you're still stumped, I can walk you through it in a little more detail. Just comment on my answer (and edit your question to include what code you've written for this so far) for more help.
I know the question I am asking is normally not encourentered in business applications. However i have encourentered such a need today.
The photos in my listbox are coming from two sources :- One is offcourse from database and other is coming from facebook. I have the user's photo link using facebook C# SDK. Thus i need to have two different data templates as well as binding set up that way. How can i solve this problem? Oh! and yeah i don't want to put up two listboxes on screen and do patch work by putting one listbox exclusively for images coming from my server and other which are coming from facebook.
Thanks in advance :)
Was looking for the same thing since i heard that DataTemplateSelector was missing in Silverlight.
Came across this article that might help anyone else that is looking.
SLTemplateSelector