Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
178 views
Hi,
I have a radgrid which is data bound using only javascript without any server side binding. Now i want to adjust filter box widths for different columns.
For Ex: If column name is "SR" then i have to adjust width to 30px. If column name is "Name" then adjust it to 50px.

Please let me know how to achieve it using javascript only.

Thanks in advance for helping...
Iana Tsolova
Telerik team
 answered on 24 Feb 2011
2 answers
104 views
Hi,

How can I set the colour/style of specific nodes according to the value of a field in a datasource? For example, if I assign a datasourceid for the treeview which has a boolean/bit field then the nodes that have a value of true/1 should be bold.

Regards,
Ray
Ray Bezuidenhout
Top achievements
Rank 1
 answered on 24 Feb 2011
1 answer
204 views
Is there a way to prevent the user from collapsing nodes on the clientside? I need to keep the whole TreeList fully expanded at all times :-)

Best regards,
Lars Melkevik
Veli
Telerik team
 answered on 24 Feb 2011
4 answers
222 views
Hi,

I know it is possible to setup client side caching declaratively with the RadGrid using the ClientSettings.DataBinding.EnableCaching setting.
However, is it possible to do this with programmatic client side binding?
I am using set_dataSource() and dataBind() methods in Javascript to do the client side binding and I would like to also use caching to implement sorting purely on the client side without any server side callbacks.
Is this possible?

Many thanks,
      Charles Gamble.
Veli
Telerik team
 answered on 24 Feb 2011
1 answer
78 views
Hi Team,
          I want to reorder the grid rows  in client side only , Without server side scripting can i do that,
after drag and drop any number of rows it should be reorder by client side code.

Please reply me as soon as possible.

thanks in advance
Azam
Maria Ilieva
Telerik team
 answered on 24 Feb 2011
3 answers
354 views
Hi,

I am using Rad Ajax Manager and I have added some response scripts in my serverside code. In the response scripts I use $find('...'); to access some telerik controls on the page in the client-side. Each time i try to do this, the $find method returns null. I suppose this is because the corresponding controls are not updated by the ajax manager via the ajax settings. Here is the issue - I do not want them to be updated, there will be no state change to these controls, but I still want to access them after the response (to retrieve or update the selected value of a combobox for instance). Is there a way I can achieve this without adding ajax settings for the controls I want to $find(). The reason for this is to reduce the amount of the response's markup and server-side roundtrips (this also comes as a requirement from our clients). Also, since there has not been any server-side modification on these controls, I consider it unnecessary to update them every time.

Another question - at which state of the client-side lifecycle the response script is called - before or after the load (Sys.Application.add_load) function?. Can I use the response script to hook my logic in the load stage instead of directly calling it?

Thanks in advance
Ivaylo
Top achievements
Rank 1
 answered on 24 Feb 2011
1 answer
108 views
I have a several simple grids of words and comboboxes which lets the user add a word to the respective grid.  Similarly, in the grid, I have an x column to allow the user to delete the word from the grid (and it goes back into the combobox dropdown).

I have this working in the code behind, but it's rather slow.  Each time the user does something, it involves a round-trip to the server.

When the user hits the save button, I get the contents of the grid and save it off, so it seems rather pointless to have all these round-trips to the server just to manipulate the grid!

I'd like to do the add/delete in the client side in javascript.  I'm looking for some easy to understand examples of this.  The reason I'm using a combobox and not 2 lists/grids is that the user can type a new word to add to the list.

I already have the combo box's dropdown list and the grid loaded.  I'm just looking for some javascript that would "move" items back and forth between the dropdown list and the grid.  Ideally some sort of control I could use over and over again!  If anyone has an example of something like this they could share, that would be great.

Michael Grant
Pavlina
Telerik team
 answered on 24 Feb 2011
3 answers
406 views
Hi,

We have implemented date sorting for the RadFileExplorer in the Image Manager tool of RadEditor. With this, the contents of our configured image path are sorted according to the date they were uploaded.  We have also enabled paging for the explorer. Currently we have a problem when the parent 'Images' path has both files and sub folders. In this case, RadFileExplorer seems to be always picking folders first rather than files. So, for example, if my page size was 5 and I have two subfolders and 5 files in my directory, the first page always shows the directories. This has become a problem when a new file is uploaded. We expect to see it at the head of the first page. However, we find that it is the head of a page somewhere down the line. This is happening only when there are subfolders in the parent directory.

Please advise!
Dobromir
Telerik team
 answered on 24 Feb 2011
3 answers
341 views
Hello all,

Is it possible to get and/or set the background color of a radlistbox item in Javascript? 

Thanks!

Eddie
Shinu
Top achievements
Rank 2
 answered on 24 Feb 2011
1 answer
211 views
I have a ListView bind to xmldatasource, but I cannot make it work as the online demo does, it keeps saying "

DataBinding: 'System.Web.UI.WebControls.XmlDataSourceNodeDescriptor' does not contain a property with the name 'Street'.

"..when I changed the syntax from  <%#Eval("Street")%> to <%#XPath("Address/Street")%>, it kinda works but only pull out data under the first child node, the rest never got databinded. The xml file is like below:
<data>
  <Address>
    <Id>1000</Id>
    <Street>1234 S 1st St. </Street>
    <City>LOS ANGELES</City>
    .......
   </Address>
   <Address>
    ......
   </Address>
</data>
 Here is my xmldatasource: 
<asp:XmlDataSource ID="XmlDataSource1" runat="server" 
            DataFile="~/sample1.xml" XPath="data"></asp:XmlDataSource>

Any suggestions?

Thanks a lot!

Shan

Iana Tsolova
Telerik team
 answered on 24 Feb 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?