iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
Hi
I have one grid which need to create the custom controls dynamically. I want multiple selection combo and datetime picker. Also i need to save the mutiple selections made by user with "|".
Can you please guide me on the same. Rest all Editypes I am able to add dynamically.Its Urgent.
Waiting more Quick reply.
thanks
rajshri
Could you please point me to which grid product that you use so that I can assist you further? Is it ASP.Net WebGrid control or ClientUI UXGridView control in Silverlight/WPF?
Its asp.net grid product.
Waiting for reply./
Any updates.
... I want multiple selection combo ... Also i need to save the mutiple selections made by user with "|".
Please check WebGrid sample file, UsingWebComboNETwithMultipleSelection.aspx. The live version of this sample is available in here.
This sample shows how you can easily edit the multiple values data by using Intersoft WebCombo.NET control. With Mutliple Selection feature available in WebCombo.NET, WebGrid automatically creates seamlessly interface to WebCombo control in order to edit and return multiple values in the selected cell. In this sample, the SeparatorChar is set to a comma (,) character. For your scenario, you can set the SeparatorChar property to “|”.
... I want ... datetime picker
WebGrid provides several edit types as follows: NoEdit, Textbox, MultilineTextbox, Checkbox, DropdownList, CalendarDropdown, CalendarCombo and also WebCombo.NET, etc. About your requirement to use datetime picker, please kindly check EditorTypes.aspx sample file of WebGrid. The live version of this sample is available in here.
In this sample, try to edit the OrderDate or RequiredDate column of WebGrid.
Hope this helps.
Thanks for the reply.
I want to create the custom controls Dynamically through code.
Please help
I’d like to suggest you to programmatically create the WebCombo in Page_Load event. Next, in PrepareDataBinding (WebGrid’s server-side event) set the EditType property of the column to WebCombo (and CalendarDropDown for the DateTime picker editor).
Following snippet code has been tested in my local end and it worked just like the WebGrid’s sample mentioned in my previous post.
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { /* populate data as unbound to enable checkbox mode in multiple selection */ DataView view = SqlDataSource2.Select(DataSourceSelectArguments.Empty) as DataView; WebCombo webCombo1 = new WebCombo { ID = "WebCombo1", Height = Unit.Pixel(20), Width = Unit.Pixel(200), UseDefaultStyle = true, DataTextField = "RoleName", DataValueField = "RoleId", LayoutSettings = { StatusBoxVisible = false, AllowFloatingText = false, BoundMode = BoundMode.ForceUnbound, TextBoxMode = TextboxMode.ReadOnly } }; webCombo1.MultipleSelectionSettings.Enabled = true; webCombo1.MultipleSelectionSettings.SeparatorChar = ","; webCombo1.PopulateUnboundData(view, true); form1.Controls.Add(webCombo1); } } protected void WebGrid1_PrepareDataBinding(object sender, ISNet.WebUI.WebGrid.DataSourceEventArgs e) { WebGrid1.RootTable.Columns.GetNamedItem("Roles").EditType = EditType.WebComboNET; WebGrid1.RootTable.Columns.GetNamedItem("Roles").WebComboID = "WebCombo1"; WebGrid1.RootTable.Columns.GetNamedItem("JoinDate").EditType=EditType.CalendarDropdown; }
Please feel free to let me know whether this helps or not.
It worked!!
Thanks
Glad to hear that the snippet code helps.
Should you need further assistance or run into any problems regarding our controls, feel free to post it into our forum. We would be happy to assist you again.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname