Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
104 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
497 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
56 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
471 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
62 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
159 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
266 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
68 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
8 answers
371 views
I'm having problems altering the z-index for my tooltip. IE is shoving the tooltip below our header. I tried adding a cssclass to the tooltip control, but using the ie web developer toolbar, its getting a z-index and other css values from I dont know where.

<span id="spnPers" class="mouse-pointer learn-more">learn more</span>
<rad:RadToolTip ID="RadToolTip1" runat="server" TargetControlID="spnPers" IsClientID="true" Sticky="false" AutoCloseDelay="10000" Animation="none" Position="TopLeft" RelativeTo="Element" OffsetY="2" Height="100px" Width="300px" Skin="Default" Title="Personalize" CssClass="ontop">
<p>
Jazz up your folder presentation by personalizing your folders with a stock graphic and/or text. Choose from 4 different foil colors, 28 stock graphics and 11 font styles that are sure to add impact.
</p>
<br />
<p>
Additional $50 setup and $0.50 per folder foil fees apply. Personalized folders require a minimum purchase of 100 and then increments of 25.
</p>
<br />
<p>
Check on the Personalize box and click on the "Personalize and Add to Cart" button
to get started building your personalized folders.
</p>
</rad:RadToolTip>

.ontop
{
    z-index:10000;
}
Svetlina Anati
Telerik team
 answered on 11 Dec 2010
2 answers
208 views
I have a RadWindow that has a custom button that performs a save and close. This works fine. Now, what I am trying to do is display a javascript close confirm dialog when the user selects the top right close X button. I saw the article about the radConfirm method and adding add_beforeClose(onBeforeClose) techniques. In my case I have had no luck with either. Can you recommend a way to do this?

Thanks,


Steve Holdorf
Georgi Tunev
Telerik team
 answered on 11 Dec 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?