Telerik Forums
UI for ASP.NET AJAX Forum
8 answers
710 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
301 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
2 answers
134 views
Hi All,


I am using radgrid having nested RadListView.


On click of (+) any row in the grid, the radlsitview shows
records specific to that row.


Recently i added paging to my radlistview,but due to that i have issues.


1st time it shows proper items, but whenever i select any next or previous or page size
from dropdown,the behaviour gets change.
Now it shows records in thousand, even i know the record is only 1 for that row.

1st time:
 Page: of 1 Items 1 to 1 of 1

After choosing from dropdown or clicking any pager button
1 2 3 4 5 6 7 8 9 10...  Page size: 
 select Page: 1 of 2569 Items [Go]        Item 3 to 4 of 5138

Any help is greatly apreciated.
Vasil
Telerik team
 answered on 24 Feb 2011
1 answer
102 views
Hello,

I have a custom ascx controls contains RadGrid and RadChart.

The control is loaded into ajax panel using ajax request
protected void RadAjaxPanel2_AjaxRequest(object sender, AjaxRequestEventArgs e)
{
if (e.Argument == "InitialLoad")
{
var auctionTotals = LoadControl("~/core/Informers/CurrencyRates.ascx");
auctionTotals.ID = "CurrencyRates";
panel2.Controls.Add(auctionTotals);
}
}
Inside the user control every grid row has a related chart dislayed when this row is selected.
function <%=ClientID%>_grid_OnRowSelected(sender, args) {
<%=ClientID%>_selectChart(parseInt(args._itemIndexHierarchical));
}

Here is how the event handler is added

var events = grid.ClientSettings.ClientEvents;
events.OnRowSelected = ClientID + "_grid_OnRowSelected";

Everything works just fne if the control is used on the aspx page (like a normal aspx control). But as soon as I try to load this control dynamically using ajax panel (using the first code snapshot), I get a javascript error: content_CurrencyRates_grid_OnRowSelected is not defined

I am a bit confused why the event handler is not binded to the grid in this scenario. Should this function be placed in some other part of the ascx control?

Thanks,
Andrei
Vasil
Telerik team
 answered on 24 Feb 2011
1 answer
151 views
Hi,

In treeview i need contextmenus option for that i was refering to this url :
http://demos.telerik.com/aspnet-ajax/treeview/examples/functionality/contextmenu/defaultcs.aspx

what i need is when i right click on treenode i should get contextmenus with option New
so when i select new node that node should get added in treeview as well as in database.
what is heppening now is when i say new it is creating new node with text as new and it is keeping this text is edit mode so that user can change that name. for that they are using one javascript function to set editable , now after user enters node name then i want to insert this data in database. on which event of treeview can i do this.

Thanks.
Shinu
Top achievements
Rank 2
 answered on 24 Feb 2011
6 answers
341 views
Hallo!
We have a RadGrid which displays several columns of type checkbox, bound and template columns. The header filter context menu displays two checkboxes which are present in the filter template for the checkbox column also for the columns which are not a checkbox column. (See attchment). Another problem with the header filter context menu is that for a checkbox column, the first condition filter checkbox is disabled und cannot be used as a filter. The second condition is not necessary for a checkbox column but is the only one which can be used. How can this be changed?
Solutions I am looking for:
1. Checkboxes in the filter context menu for non checkbox columns should not be shown.
2. There should be only one checkbox in the filter contet menu for a checkbox column.
warm regards
Georgi Tunev
Telerik team
 answered on 24 Feb 2011
7 answers
208 views
Hi,
  I noticed there is a client side event called OnClientTimeSlotClick and there are few posts about how to get the time when somebody click on an empty slot on the schedule.  But I really don't want to use client side event.

  Is there a similar event for server side?  I assume it's called OnTimeSlotClick, but I couldn't find it.

Thanks,
Dom
Peter
Telerik team
 answered on 24 Feb 2011
5 answers
371 views
Hello,

Based on the sample available in the demo, I implemented a tooltip manager in my simple scheduler web page. The datas are loaded "manually" in a List and assign to RadScheduler.DataSource each time a OnNavigationCommand event occurs. The first page is loaded in Page_Load.

At the first load of the page, eveythings work fine and Tooltip load correctly through ajaxupdate. But when I use NavigationCommand, Tooltips become crazy. This is wrong Appointment Id which is return and some appointments don"t even load the tooltip.

I use the same event and same code as the example. The only difference is in NavigationCommand which loads Appointment from my Database.
here is the code after a switch which determine first and last appointment datetime:

in the class:

Dictionary<int, AppointmentInfo> m_lstAppointment;

in OnNavigationCommand event:

Session.Remove("Appointments");
SchedulerRadToolTipManager.TargetControls.Clear();
RadScheduler1.Appointments.Clear();
m_lstAppointment = m_oDataAccess.SearchAppointment(dteStart, dteEnd);
RadScheduler1.DataSource = m_lstAppointment.Values;

Yes, I tried to clean-up everything before load new appointments but with no success.
The aspx file is not far from the one provided by the telerik wizard in VS 2010, the one with AdvancedForm.

Thanks in advance for your help.
regards
Eric
Eric
Top achievements
Rank 1
 answered on 24 Feb 2011
1 answer
96 views
HI,
I am using Stacked Bar Chart Type. My requirement is to give space between two bars(as bars are coming side by side and there are total 96 bars and altogether it is looking clumpsy).Kindly help me out
Regards,
Manushi.
Vladimir Milev
Telerik team
 answered on 24 Feb 2011
1 answer
140 views

Hi everyone,

I've lots of pages. All my components use radskinmanager's skin in masterpage so
when I chance the skin from the masterpage everywhere changes..

But I want to use same skin in all raddock controls and the other skin in other controls.

So it possible to use more than one RadSkinManager in Project ??
If it is, how can I group them?

PS: I don't want to give embedded skin name from desiner in every page on every raddock.


Thanks.

Sincerely.
Tsvetoslav
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?