Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
128 views
Hi,

I have a need to plot movement against time from a number of different sensors (5-7)

I am holding the sensor type and time of activation in a SQL database.

Is it possible to have a multiple charts that share a common x axis(time in minutes) so that I can have one chart per sensor? Where the y axis shows a single sensor activation. Basically a series of bar charts.

Ideally I would like to be able to zoom on one chart and have all charts zoom to the same level and also be able to use the graph in a report.

Does any one have any idea if this is even remotely possible?

All and any help greatly appreciated.

Thanks

Chris
Giuseppe
Telerik team
 answered on 26 May 2011
5 answers
149 views
Hi

We've written a user control that has a RadComboBox using LoadOnDemand.  It works fine when placed directly on the page, however, we run into problems with it inside a RadGrid that uses Ajax.

Although it renders ok, the problem is it does not populate the RadComboBox with data.  Currently it displays 'Loading' and then fails.

I suspect the ajax in the RadGrid isn't playing nicely with the ajax in the RadComboBox.  The RadGrid's ajax is managed by a RadAjaxManager.  My thought was to include the RadComboBox as an AjaxUpdatedControl in the RadAjaxManager but I'm not sure how to do that.  Firstly the RadComboBox is inside a user control, secondly it is created dynamically by the RadGrid, of which multiple may be opened at the same time (seeing as a RadComboBox is on each RadGrid row).

I'm using RadControls_for_ASP.NET_AJAX_2010_1_415_dev_hotfix.zip.

An additional issue is that we want the RadComboBox to preload the first X items (i.e. fire OnItemsRequested) on page load or preferably when the RadComboBox is initialised.  The problem this causes is that it complicates when we can set the SelectedValue.  It would also irritate the user if they have to wait for this when he/she opens the ComboBox list.  Our work around is using OnClientLoad = "RadComboBoxLoad", and in the javascript we call: combo.requestItems('', false);.   Is there a better way to do this?

Thanks
Helen
Telerik team
 answered on 26 May 2011
7 answers
142 views
Hi,

Can you point me in the right direction on how to save state for rad grid. I have a grid in edit mode and when i create a new row because of the post back the values in edit mode are lost when row is created. I attached a screen of the grid in edit mode to give you an idea. 

Thanks,
Ron.
Ron
Top achievements
Rank 1
 answered on 26 May 2011
3 answers
214 views
Hi,
I am using a List of "RadComboBoxItemData" objects to load data into RadComboBox using the LoadOnDemand functionality. My Question is,
I have set few attributes on the server side and I want to access them on the client side. let me know how to do that.

For example:
ServerSide(Web Service):
List<RadComboBoxItemData> result = new List<RadComboBoxItemData>(context.NumberOfItems);
foreach(row in rows)
{
RadComboBoxItemData itemData = new RadComboBoxItemData();
itemData.Attributes.Add("HostName", row["HostName"].ToString());
itemData.Value = row["ID"].ToString();
result.Add(itemData);
}
return result;

ClientSide:
function onItemDataBound(sender, eventArgs) {//the combo item
 var item = eventArgs.get_item();
var dataItem = eventArgs.get_dataItem();
............AND THEN................??

Any Help will be appreciated. Secondly, I want to implement CheckBoxes so that I can add Multi-Select Functionality to it. Please suggest me a work around on this one.

Thanks in Advance. Appreciate your help.
Kalina
Telerik team
 answered on 26 May 2011
1 answer
246 views
Is there any way to control where the label is placed relative to the combo box?  It seems to always appear to the immediate left and I would like for it to be above it.

Kalina
Telerik team
 answered on 26 May 2011
1 answer
172 views
Hi,

I am currently creating timetable using Radscheduler.
I have the data where start date is "2011-01-24" and end date "2011-12-16". The timetable working as expected however, since within start date and end date the following dates that the data is not to be display.

  ("2011-04-04"),("2011-04-05"), 
            ("2011-04-06"),("2011-04-07"), 
            ("2011-04-08")

          ("2011-06-26"),("2011-06-27"), 
            ("2011-06-28"),("2011-06-29"), 
            ("2011-06-30"),("2011-07-01"),
            ("2011-07-04"),("2011-07-05"),
            ("2011-07-06"),("2011-07-07"),
            ("2011-07-08"),("2011-07-11"),
            ("2011-07-12"),("2011-07-13"),
            ("2011-07-14"),("2011-07-15"),
            ("2011-07-18"),("2011-07-19"),
            ("2011-07-20"),("2011-07-21"),
            ("2011-07-22"),("2011-07-25"),
            ("2011-07-26"),("2011-07-27")

How i can handle it using radscheduler. Please advise
Peter
Telerik team
 answered on 26 May 2011
1 answer
61 views
Can I use the Telerik.Web.UI.dll, to have it parse the RECURRENCE_RULES to find the occurrences ? Any constraints involved there?

Sanjeev
Peter
Telerik team
 answered on 26 May 2011
1 answer
127 views

I'me tring to use the Combobox with Treeview functionality.

The first time I choose an item from the tree everything goes smoothly. But if I open again the combox to select the tree I get an javascript error: Message: 'null' is null or not an object. Thus the issue happens only if I choose a node and  after I try to open again the combobox

I've checked the javascript and the error is in the follwoing code:
function OnClientDropDownOpenedHandler(sender, eventArgs) {
            var tree = sender.get_items().getItem(0).findControl("rvt1");
            var selectedNode = tree.get_selectedNode();
            if (selectedNode) {
                selectedNode.scrollIntoView();
            }
        }
The findControl returns a null and when we call the get_selectedNode() we got the exception.
What may be causing this behaviour?

Here is our code:

<script type="text/javascript">
 
        function nodeClicking(sender, args) {
            var comboBox = $find("<%= combo1.ClientID %>");
  
            var node = args.get_node()
            comboBox.set_text(node.get_text());
  
            comboBox.trackChanges();
            comboBox.get_items().getItem(0).set_text(node.get_text());
            comboBox.get_items().getItem(0).set_value(node.get_value());
  
            comboBox.commitChanges();
  
            comboBox.hideDropDown();
  
            // Call comboBox.attachDropDown if:
            // 1) The RadComboBox is inside an AJAX panel.
            // 2) The RadTreeView has a server-side event handler for the NodeClick event, i.e. it initiates a postback when clicking on a Node.
            // Otherwise the AJAX postback becomes a normal postback regardless of the outer AJAX panel.
  
            //comboBox.attachDropDown();
        }
  
        function StopPropagation(e) {
            if (!e) {
                e = window.event;
            }
  
            e.cancelBubble = true;
        }
  
        function OnClientDropDownOpenedHandler(sender, eventArgs) {
            var tree = sender.get_items().getItem(0).findControl("rvt1");
            var selectedNode = tree.get_selectedNode();
            if (selectedNode) {
                selectedNode.scrollIntoView();
            }
        }
    </script>
  
  
<telerik:RadComboBox ID="combo1" runat="server" CausesValidation="false"
    EnableEmbeddedSkins="false" OnClientDropDownOpened="OnClientDropDownOpenedHandler"
    EmptyMessage="select please" MaxHeight="200px"  ShowToggleImage="True"
  
    Width="50%" AllowCustomText="True">
    <ItemTemplate>
        <div id="div1">
            <telerik:RadTreeView ID="rvt1" runat="server" Width="100%" Height="250px"
                DataSourceID="ds1" DataFieldID="ID" DataValueField="ID"
                DataFieldParentID="ParentID" DataTextField="Name" OnClientNodeClicking="nodeClicking" >
                <DataBindings>
                    <telerik:RadTreeNodeBinding Expanded="true" />
                </DataBindings>
            </telerik:RadTreeView>
        </div>
    </ItemTemplate>
    <Items>
        <telerik:RadComboBoxItem Text="" />
    </Items>
</telerik:RadComboBox>
<asp:ObjectDataSource ID="ds2" runat="server"
    EnablePaging="True" OnSelecting="dds2_Selecting"
    SelectMethod="GetList" TypeName="BLL">
    <SelectParameters>
        <asp:Parameter Name="p1" Type="Int32" />
        <asp:Parameter Name="p2" Type="Int32" />
        <asp:Parameter Name="p3" Type="Boolean"  DefaultValue="True" />
    </SelectParameters>
</asp:ObjectDataSource>
Helen
Telerik team
 answered on 26 May 2011
6 answers
131 views
Hi all,

I am trying to load a content file into the menu using  LoadContentFile but keep getting an error. I downloaded the latest exe on the 19/032008 with the TelerikWeb.UI.dll version beeing 2007.3.1425.35.

I have succesfully got this working with the old controls so I know the method works but just cant get it to work with the new Prometheus menu control.

My code is as follows:

Menu Control:
<telerik:RadMenu ID="rmTopMenu" runat="server" Skin="Outlook"></telerik:RadMenu>

Code behind:
rmTopMenu.LoadContentFile("~/Auth/Common/Controls/Menus/Contents/DefaultMenu.xml");

XML Structure:
<?xml version="1.0" encoding="utf-8" ?>
<
Menu>
    <
Group Flow="Horizontal">
        <
Item Text="Item 1"></Item>
        <
Item Text="Item 2"></Item>
        <
Item Text="Item 3"></Item>
   </
Group>
</
Menu>


Error Message:
System.InvalidOperationException: <Group xmlns=''> was not expected.

Any ideas on this would be much appreciated.

Thanks

Craig
Helen
Telerik team
 answered on 26 May 2011
1 answer
85 views
In the following  I'm selecting the third page and saving the state for user1 and then selecting the fifth page and saving the state for user 2. Now if I load the user1 settings the page is not showing as 3 but the same 5 which was saved for user2.
http://demos.telerik.com/aspnet-ajax/grid/examples/programming/savinggridsettingsonperuserbasis/defaultcs.aspx

Is there any work around for this?
Tsvetoslav
Telerik team
 answered on 26 May 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?