Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
140 views
Hello everyone,

In my grid I have 4 columns. Name, Phone, Address and Sales Person. While getting information from SQL, I am getting first 3 columns in one query and fourth column in second query. Order of grid should be by default alphabetically from column "Name". But it is showing in order of Sales Person. If I dont run the second query to get sales person information, my order is according to Name (i.e. first Column).

Is there anyway that I can set the default order for Column "Name" and also at the same time when someone click on any other column, order of grid should change according to that (which is working now as well).
In brief, when grid loads for first time it should be in alphabetical order of column Name and not column Sales person at the same time it should still allow user to change order by clicking on any of the columns headertext.

Thanks
Maria Ilieva
Telerik team
 answered on 11 Jun 2010
1 answer
117 views
We have a user control which contains various Telerik controls like RadTextBox,RadNumericTextBox, RagMaskedTextBox etc.
We are facing the problem with RadMaskedTextBox. When we load our user control fro the first time to show a maskedTextBox, it works correctly. The moment a post back occurs in the page the MaskedTextBox could not retain its viewState and Masked style is also lost.

Can anyone please suggest the probable reason for this behavior.

Note when we directly use the MaskedTextBox it works perfectly.
Maria Ilieva
Telerik team
 answered on 11 Jun 2010
3 answers
166 views
HI,

I have Implemented telerik radtreeview control. I need to change line when perform Drag and drop between trees.
I get some style from your site like rtDropAbove_Telerik, rtDropBelow_Telerik but i am stil confused.

Can you help me how to change line when perform drag and drop with Example

Thanks in Advance.

Regards,
sadiq modan
mohmedsadiq modan
Top achievements
Rank 1
 answered on 11 Jun 2010
5 answers
244 views

RadMenu js scripts automatically set menu items style.width to terrible 600+px in my vertical menu. This behaviour only seen in IE8 and Opera 10; in FF 3.6 links widths are computed correctly (based on parent li element css style as ".RadMenu_Default .rmVertical li { width: 223px;}" in external css file, i guess). Looks like this value - 600+px - is based on the most wide link text.  Such links - with lots of text inside - are expected to be shown like normal text ("white-space: normal"), in theirs 223px.

If I just delete link's "style" property in Dragonfly (FireBug analogue for Opera), that menu item gets desired view.

The question is - is there a way to turn off automatic width adjusement for link's? Or some other method to  solve the problem.

hanks in advance.

Dmitry Selverstov
Top achievements
Rank 1
 answered on 11 Jun 2010
5 answers
360 views
I have a radgrid, using form template for update/insert/delete.  I have a drop down list that is populated from another database and I preselect the value fine.  However, since the dropdown is loaded in the itemdatabound of the radgrid, I'm having trouble doing two-way databinding.  When I do the update button, all fields are updated in the database except the dropdownlist.  Is there a way to fix this?
Mira
Telerik team
 answered on 11 Jun 2010
3 answers
215 views
I can't seem to find any good documentation as to why this behavior is happening.  I have a a list view that is using the onneeddatasource functionality.  I use this to take care of the paging and sorting functionality of the control.
 <telerik:RadListView AllowNaturalSort="true" ID="RadListView1" runat="server" Skin="Windows7" 
                                    AllowPaging="True" onneeddatasource="RadListView1_NeedDataSource"> 
                               

and the event handler
  protected void RadListView1_NeedDataSource(object sender, RadListViewNeedDataSourceEventArgs e) 
        { 
            getIAListData(); 
        } 

However, the method getIAListData() get called twice when i step through the code.  Why is that?  please tell me that this is not a designed behavior or that I will have to override and create custom paging methods.

thanks
Charles
Nikolay Rusev
Telerik team
 answered on 11 Jun 2010
7 answers
865 views
Hi there,

This is my first using on Telerik control and also the style builder.
please refer to my attached image file, after I clicked/selected a menu from RadMenu control, the background became white color.
May i know how to change this?
i've searched through and played around the style builder, but the white background still there right after i clicked on it.
please help.

thanks.
Kamen Bundev
Telerik team
 answered on 11 Jun 2010
1 answer
85 views
Hi,

I would like to make it so that when a user drags and drops a node they can only drop that node above or below other nodes, and not on top.  Basically, I want them to be able to only reorder the nodes using drag & drop and not modify the hierarchy of the TreeView.

I know I can achieve this functionality using the OnClientNodeDropping event, but it is very tedious for the user because the area to drop a node above or below another node is only a few pixels high.  I want the dragging and dropping to work like it does with a RadListBox: there is always an arrow showing where the item will be dropped, even if the item you are dragging is directly on top of the destination item.

What is the easiest way to achieve this?

Thank you for your help.
T. Tsonev
Telerik team
 answered on 11 Jun 2010
9 answers
591 views

Hi there,

I searched the CHM but I wasn't able to find the answer.  Is it possible to build a filter using this control and save it in a database?  We have a need to build a filter which is read by a database job for other processing.  The saved filter all needs to be retrieved and displayed so users can modify the filter.  Is this possible?

Regards,
Joseph


Mandy
Top achievements
Rank 2
 answered on 11 Jun 2010
1 answer
114 views
1.  Page uses LinqDataSource to bind grid on the aspx page.
2.  Grid uses Paging (variable size depending on what the user has selected from dropdown).
3.  User inserts new records via USER CONTROL.
4.  Once record inserted, I need to select that record in the grid to display the details.

I am using a linqToSQL linqdatasource webcontrol on my page.
The grid binds to this control to populate the data.
I use a User Control to Update and Add new records to the database.  
  <EditFormSettings UserControlName="SiteDetails.ascx" EditFormType="WebUserControl">
            </EditFormSettings>

Now I need to allow the user to insert a new record.  
Save the record then have the radGrid select that record.  
We use paging also. I have looked at several of the examples, they all tend to use a datasource in the code behind and bind the grid to that -- We do this via the linqdatasource web control  




Yavor
Telerik team
 answered on 11 Jun 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?