Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
174 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
191 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
70 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
328 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
87 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
369 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
320 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
192 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
8 answers
675 views
**UPDATE** Doesn't seem to work when adding it into a MasterPage Content page in IE7 only in FireFox it works??
I'm trying to get the RadSlider drag handle to move when clicking on it and dragging it horizontally either direction with no luck.  Using the side arrows or clicking on the slider bar will move the handle, but dragging the handle itself doesn't work.  Not sure what I'm missing here or if I'm supposed to implement some javascript here to allow for that functionality?


 

<telerik:RadSlider ID="RadSlider0" runat="server" ItemType="None" MinimumValue="0" MaximumValue="100" SelectionEnd="100" Value="0" OnClientSlide="clientSlide()"

 

 

ShowDragHandle="true" AnimationDuration="300" Height="20px" Width="106px" Skin="Telerik" OnClientValueChange="HandleValueChange">

 

 

</telerik:RadSlider>

 

RadSlider0.Value = (

Int32)dr[3];

 

RadSlider0txt.Visible =

true;

 

RadSlider0.Visible =

true;

 

Svetlina Anati
Telerik team
 answered on 24 Feb 2011
11 answers
268 views
I have an app wherein I store appointments in a DB.

I - normally - show the appointments in RadScheduler. However, there are occasions when using the scheduler is not the most appropriate too, for example, when the use queries the data base for a period covering more than 1 month.

In these cases, I use RadGrid to display the results of the query and this works just fine.

[wait for it]

But, I now have recurring appointments and these are stored using the recurrence rule in the master appointment. Is there a way for me to show the occurrences of these recurring appointments in a grid?

I can think of doing it:
  1. Read the DB and set the DataSource of the Scheduler to the query result and then use the Scheduler's Appointments property as a DataSource for the grid.
  2. Read the DB and set the DataSource of the Scheduler to the query result and use the AppointmentDataBound event to create a new List<> to use as the DataSource of the grid.
I haven't yet tried either of these, 'cos I'm sure I've seen an demo, or Code Library article on this very subject, but I'll be damned if I can find it.

FWIW, I prefer the idea of the 2nd of the 2 options above as the AppointmentDataBound event gices me access to the DataItem used to create the appointment in the first place, can I have a lot of extra data in that object that I would, otherwise, have to query the DB again for.

-- 
Stuart
Peter
Telerik team
 answered on 24 Feb 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?