Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
190 views
Hi,

I get the below error if I try to save my Radmenu to a Viewstate . Can you let me know how to make it serializable ?

Type 'Telerik.Web.UI.RadMenu' in Assembly 'Telerik.Web.UI, Version=2010.1.519.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4' is not marked as serializable

Thanks
Bino
Simon
Telerik team
 answered on 12 Dec 2010
1 answer
154 views
Due to client request...
We are using the AutomaticLoadOnDemand with an XML datasource so that only 4 options show at anytime. This works great.
What they have asked for is that the dropdown starts one line or so above the textbox control used to type the initial entry.
User types in the field, clicks the down arrow and we can shift the dropdown to an absolute position of "x" pixels above or at the exact position of the top/left corner of the dropdown.

I have not seen anywhere in the documentation where I can adjust the start position of the dropdown to an absolute position or a relative position based on the x/y of the textbox - any suggestions?
Simon
Telerik team
 answered on 12 Dec 2010
3 answers
153 views
Hello,

I have two Questions:

1. I have a TreeView in Combobox.
    Each node in the treeview contain checkbox.
    The treeview has footer that has a button named "OK".
    I would like to check some nodes and only when i click on the "OK" button,
    all the node's text that i have checked will show on the input field of the combo box with the ";" seperator.

    I succeeded to get the combobox instance from the javascript function when i click on the "OK" button, but
    i don't know how to get the treeview instance or the nodes that have checked, before the clicking.

    Here is the js function:

    
function approveClick(comboBox)
{
  //Here i would like to get the checked nodes,
  //from the treeview and then to concatenate the nodes text value,
  //to the input field like:
  
    comboBox.set_text("node1;node2;node3");
  
    comboBox.hideDropDown();
}

    Any suggestions?

2. How can i paint the combobox's dropdown area background (By default its white).

Thanks,

Oren
Udi
Top achievements
Rank 1
 answered on 12 Dec 2010
5 answers
571 views
Hello,
I have faced some problem to get the number of filtered results Auto-fetched by Radgrid, here is my scenario:

I have a radgrid, on its clientRowselected event, the row details will be copied to a text area; it is a control outside the grid, but when i want to filter the results by any criteria, The text area should be cleared, i tried to get the number of filtered results but I couldn't, and RadGrid.Items.Count has a value of the same umber of records without filteration even VirtualItemCount didn't work for me..

Any Idea !
HananJ
Top achievements
Rank 1
 answered on 12 Dec 2010
0 answers
79 views
Cannot allowed to enter or key press a char in Asp.net text box in asp.net MVC 2 application. It raises the following error when we press a key on the textbox every time.

Microsoft JScript runtime error: 'undefined' is null or not an object

Please give your suggestion if anybody face same issue. The textbox is placed inside the Telerik MVC grid control for filtering.


Thanks.
hasan
Top achievements
Rank 1
 asked on 12 Dec 2010
4 answers
545 views
Hi all,

     I want to develop a webpart based on RadGrid in order to improve list view and add/modify/delete items in a SharePoint list, just like the below demo:

     http://sharepoint.telerik.com/Products/RadControlsAjax/Pages/RadGrid.aspx

     How to accomplish this functionality?


Thank you in advance

Jerry
Vishwajit
Top achievements
Rank 1
 answered on 11 Dec 2010
2 answers
83 views
Dear Sir/Madam, I 'm experiencing the following problem

I have an XmlHttpPanel with a radrotator (and an asp:repeater just for test purposes).
<telerik:RadXmlHttpPanel runat="server" ID="xmlPanel"  onservicerequest="Panel_ServiceRequest" Width="100%" Height="100%" Skin="Black">
               
                <telerik:RadRotator ID="ItemRotator" RotatorType="CoverFlowButtons" runat="server"  Height="200px" Width="400px" ItemWidth="100" ItemHeight="100">
                <ItemTemplate>
                    <div style="width:96px; height:96px; margin:2px; background-color: black; border:2px solid white;">
                        <asp:label ID="Label1" runat="server"><%#Eval("Caption")%> </asp:label>
                    </div>
                </ItemTemplate>
                </telerik:RadRotator>
               
 
              <hr />
 
               
              <asp:Repeater runat="server" ID="ItemRepeater">
                  <ItemTemplate>
                    <div style="width:400px; height: 100px; background-color:Black;border:2px solid white; float:left; margin: 2px;">
                       <asp:Label runat="server"> <%#Eval("Caption") %></asp:Label>
                    </div>
                  </ItemTemplate>
              </asp:Repeater>
               
          </telerik:RadXmlHttpPanel>

When i load the data on the Page_load everything seems to work ok. (I am using this:)

protected void Page_Load(object sender, EventArgs e)
   {       
        
       String AbsoluteURL = "";
       AbsoluteURL = "xmldata.aspx";
 
       Data = DataFetcher.URLtoDataset(AbsoluteURL, DataFetcher.DataKind.RecordSet);
 
       ItemRotator.DataSource = Data;
       ItemRotator.DataBind();
       ItemRepeater.DataSource = Data;
       ItemRepeater.DataBind();
 
 
   }

Where the DataFetcher.URLtoDAtaset returns a dataset from a web page.

I have a RadTreeView on my page and i want to select a subset of data by click a node, so i use the client-side item click event of the treeview to trigger the XmlHttpPanel's ServiceRequest function - this works ok

Then in the ServiceRequestFunction I change the datasource for both the RadRotator and asp:Repeater, the place where the radrotator was, now appear empty, but the asp:repeater shows the propert data.

This is my ServiceRequest Function: 
protected void Panel_ServiceRequest(object sender, RadXmlHttpPanelEventArgs e) {
 
    SelectedData = GetSelectedData();
    ItemRotator.DataSource = SelectedData;
    ItemRotator.DataBind();
  
    ItemRepeater.DataSource = SelectedData;
    ItemRepeater.DataBind();
 
 }

The GetSelectedDataFunction Works fine, because the asp:repeater shows the correct data - what am I missing here ?

Thank you for your time...
Thomas Sarmis
Thomas
Top achievements
Rank 1
 answered on 11 Dec 2010
3 answers
186 views
Hello,

We are currently in the process of upgrading the RadControls from a (very) old version (6.1) to the current version.  The upgrade is complete and working with no problems, however, I'd like to cleanly remove any remnants of the old version.

Is there any list or resource available to let me know what is safe to remove and what needs to stay.

Thanks in advance,


Glenn
Sebastian
Telerik team
 answered on 11 Dec 2010
5 answers
318 views
When I clicked an appointment in RADScheduler, the AppointmentClick() event was fired.

I was trying to execute a javascript inside as described by the function below.


protected
void rsRadScheduler_AppointmentClick(object sender, Telerik.Web.UI.SchedulerEventArgs e)
{
    _EventID = Convert.ToInt32(e.Appointment.ID);

    String strJScript = "<script type=\"text/javascript\">alert('hello');</script>";
    this.Page.RegisterClientScriptBlock("EditEvent",strJScript);
}

But then the AppointmentCreated() event was also fired where I added some code to customize the event tooltip.

protected void rsRadScheduler_AppointmentCreated(object sender, Telerik.Web.UI.AppointmentCreatedEventArgs e)
{
    e.Appointment.ToolTip = GetTooltip(
Convert.ToInt32(e.Appointment.ID));
    _EventID =
Convert.ToInt32(e.Appointment.ID);
}

Thing is the javascript was registered without errors but it did not execute. It was as good as nothing happened when I clicked on the appointment. Only that the tooltip was displayed...

In place of the alert method, I was originally trying to open a RADWindow (javascript) inside the AppointmentClick method. But since that didn't work when I tried it, I wanted to test if any javascript will be executed inside the method. Unfortunately, nothing happened.

How will I be able to open a RADWindow on AppointmentClick()? Do you have other suggestions or approach that could help me do this?

Thank you...

Neerav
Top achievements
Rank 1
 answered on 11 Dec 2010
1 answer
96 views
I'm having a problem with the alignment of the add record button in my Listview.  For some reason it is cut off on the bottom and is not lineing up properly.  Please see image attached. I'm using the default skin.  Could anyone help me with this?

Paula
Radoslav
Telerik team
 answered on 11 Dec 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?