Is it possible to change the graphics for the arrow down on the dropdownlist control, without having to create a custom control? I need all the normal properties, just want to style the arrow down a bit.
You can easily use custom graphics for any form element by using javascript and CSS, please see for examples:
http://ryanfait.com/resources/custom-checkboxes-and-radio-buttons/
http://www.noupe.com/css/form-elements-40-cssjs-styling-and-functionality-techniques.html
http://www.noupe.com/css/47-excellent-ajax-css-forms.html
You can use third party controls, but if you are looking to change the look of your standard tools that would not be very possible, since those are derived from the standard controls of the operating system.
There a third party controls that can help you do that.
Related
At the moment, in my team, there is a conflict when deciding to use HTML control or ASP .NET server control.
For instance, in order to implement a grid view list that supports reordering, we have two options:
Use HTML controls (ul, ol) and jQuery sortable. By using this approach, we can use the markup and style after slicing PSD and implement it rightaaway. We can fetch data by using jQuery ajax.
Use ASP .NET control like Telerik Grid (http://demos.telerik.com/aspnet-ajax/grid/examples/overview/defaultcs.aspx). Using this option, we have to change style of server control to match the design.
Considering performance and secutiry, please help me figure out which option is better?
Thanks in advanced.
#batto
telerik grid will wonderful you only not think for only this time . May be in future you need many enchantments in your project at that time you really need to use that feature's . So from my view you use Telerik controls .
For only display purpose Jquery grid is better option, it will increase the performance.
HTML control is a compromise between traditional ASP.NET programming and web control and it has a limited object-oriented interface. We usually use HTML control to have a smooth HTML code that will be generated and sent to the browser
If you want a powerful control, choose web control over HTML control!
It hope it helps you.
I would go with a server control. I would probably just use a
You have the ability to do what ever you want with them. If you want to do sorting using jquery then it should not be too different than how you sort ul's. If needed I can provide a sample. You also have the power of the server. If you tie other events such as add or remove then you will want the server control. Its a bit easier to pass data back and forth.
I'm using VS2010,C# to develop my ASP.NET web app, I'm going to display some small and simple tooltips over my objects, I want to be able to set tooltip text from codebehind, what are my options (solutions for all browsers)? how can I find some easy-to-use tooltips with usage tutorials?
thanks
Many ASP.NET controls contain a settable ToolTip property
Most controls are going to have a ToolTip property on the control that you can set. I don't know of any issues between browsers.
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.webcontrol.tooltip.aspx
Also if you are trying to do anything w/ rich content you might want to check out something like this.
http://demos.telerik.com/aspnet-ajax/tooltip/examples/overview/defaultcs.aspx
i have dropdownlists in my asp.net web site, now i want to switch them into something like menu and its items should look like menu items, at mouseover event items in that control should be displayed, is it possible to achieve? how?
It is very well possible using javascript/jquery and setting the css to give it the placing and affects you feel like. You will many such examples googling it out....one such is: http://www.queness.com/post/1047/easy-to-style-jquery-drop-down-menu-tutorial
If you like to convert an existin dropDownList to a menou like I know the the Linkselect jQuery plug-in but also I know a similar from Yahoo User Interface Library
jQuery or other library is strongly suggested for a complex conversion like that, at least the examples I know use a library.
I want a asp.net datagrid with client side selection and dockable in pages and custom rightclick support.
cau anyone help me?
You will need to add javascript in case to make the table interactive with user actions
i prefer to use jQuery plugins to able you to do that. just create css classes and assign them in the datagrid columns then use jQuery to add the right click support and dockable rows.
If you have the budget Telerik RadGrid can do what you want and more. (You will also need RadDock for docking - they all are part of RadControls.)
I have an ASP.NET web application for data entry, and we have big lists of radiobuttons, and long lists of checkboxes, in some sections.
The client wants to be able to be able to navigate and manipulate these controls with their keyboard, like the tab/space/enter/right-left-up-down-arrow-keys. Are there any ASP.NET controls that I can use?
You could use the TabIndex property and AccessKey properties of controls. The TabIndex will allow for in order navigation of controls using the Tab key. The AccessKey property can be used to set a specific keyboard letter to access the input field.
Using Jquery, you could use the .keypress() event to detect if the up/down key was press (See this for some hints). Then when used in conjunction with the TabIndex property, you could set focus to the next/previous input field.
This could be accomplished but it requires a bit of coding. You may have to add a keyup event to the body and handle the keys. I did the same for Jquery UI Tabs (right and left keys). You can use the concept to accomplish your stuff.
http://ctrlshiftb.wordpress.com/2010/02/03/how-to-add-keyboard-navigation-for-jquery-ui-tabs/
Hope this helps.
Thanks,
Raja
I may have misunderstood the question but if you set focus e.g.
RadioButtonList1.Focus();
keyboard shortcuts e.g. arrow-keys/space etc are available as standard behavior?
If you want more complex functionality you could add javascript attributes to you controls. This link is useful link text