Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
83 views
Hello again,

Please can someone give some examples of how to make modifications to the following using OnClientPasteHTML:

1) How to add a <DIV> tag wrapper around an image before it is pasted from ImageManager?
   - I have been trying to do this for weeks now and I know that it can't be that hard, well at least for someone well versed in advanced JS.
2) How to add a unique ID to an image being inserted?
    - I believe this would entail gathering all the current images in the HTML and assigning the image with a unique ID. How to do this, I have no idea.

I have read the the article at http://demos.telerik.com/aspnet-ajax/editor/examples/onclientpastehtml/defaultcs.aspx but it fails to show these examples or anything like it.

Any help with this would be greatly appreciated.

Thank you,
Grant
Tervel
Telerik team
 answered on 06 Apr 2009
1 answer
77 views
  • Very basic grid setup. Binding to database. Have a string type coming in with potential values
          000111
          003434
          NULL (displays as blank)
          000233
          ect.

  • Problem: When providing a filter of "00" of type 'Contains' it works fine and only returns rows that contain '00'
However, upon changing the filter to 'Does not Contain' the grid doesn't return the rows that have the NULL value, which is odd, because they certainly don't contain '00'...

  • Column code:
<telerik:GridBoundColumn DataField="ApplicationNumber" HeaderText="App ID" UniqueName="ApplicationNumber"  AutoPostBackOnFilter="true" FilterListOptions="VaryByDataType" ReadOnly="true">
  <HeaderStyle HorizontalAlign="Center" />
  <ItemStyle HorizontalAlign="Left" />
</telerik:GridBoundColumn>

Telerik Version: 2008.2.723.35
Nikolay Rusev
Telerik team
 answered on 06 Apr 2009
3 answers
107 views
Greetings,

I'm using the scheduler to display many concurrent events and am running into a problem with the week and day views.  By default it displays the concurrent appointments side by side, and if there are more than 2 or 3 at the same time, they divide the horizontal space equally between them and become impossible to read (in week view that is).

Is it possible to stack concurrent appointments vertically (like in the month view) in the week and day views?

Thanks!
Kamen Bundev
Telerik team
 answered on 06 Apr 2009
1 answer
97 views
Is there anyway to generate physical link for each tab?
Paul
Telerik team
 answered on 06 Apr 2009
1 answer
74 views
hi team telerik

i have a one doubt,i have a web application in moss 2007, but in one client with ie the rad  controls dont work, i check the internet options, but the javascript is enabled.

Is a bug of ie6 ? or Is the windows 2000 with ie?

greetings.
Paul
Telerik team
 answered on 06 Apr 2009
1 answer
97 views
I downloaded the latest version of the ASP.Net AJAX controls and also the RadControls AJAX Courseware pdf to work through some of the samples. The control that we would use the most is the Grid, so I started working through the sample on Page 455 of the document. However, after starting to code, I am getting the error "headerItem is a variable but is used like a method". With a little digging, apparently this code is for the non-AJAX version of the ASP.Net controls.  The problem is that is in the Rad Contols AJAX courseware.


Can someone point me to the correct courseware or recommend what I should do at this point.


thanks.

Greg
Ivo
Telerik team
 answered on 06 Apr 2009
3 answers
202 views

Hi Telerik.

I have added a RadComboBox to a sharepoint editorpart. The combobox is rendered correctly but when clicking the arrow image or text nothing happens the list of items is not rolling down. !! i can't even select the first item in the list. its like the combox is disabled!!

the combox is added at runtime and so are the items. !!

Ajax is enabled on the sharepoint site

it looks something like this:

 

 

 

combo.EnableViewState =

true;

 

combo.ShowDropDownOnTextboxClick =

true;

 

 


foreach
(SPListItem item in locationList.Items)

 

    {

    Telerik.Web.UI.

RadComboBoxItem comboItem = new Telerik.Web.UI.RadComboBoxItem();

 

    comboItem.BackColor = System.Drawing.

Color.Gold;

 

 

        foreach (SPListItem webpartLocation in webPartLocationItems)

 

        {

 

            if (webpartLocation["LocationsID"].ToString().ToUpper().Equals(item.UniqueId.ToString().ToUpper()))

 

            {

                comboItem.BackColor = System.Drawing.

Color.Green;

 

            }

        }

 

        
        comboItem.Value = item.UniqueId.ToString();

        comboItem.Text = item[

"Title"].ToString();

 

 

        
        combo.Items.Add(comboItem);

 

    }

 

 

 

 

Controls.Add(

new LiteralControl("Combo:<br/>"));

 

Controls.Add(combo);

Do you have any idea on whate im doing wrong?

 

Simon
Telerik team
 answered on 06 Apr 2009
1 answer
139 views

I have split my pages using split bar . I need to expand and collopse in button click event

In my code i have four links in the left pane when clcik the first link the right side first spilter become expand

how to i expand and collopse using button click event

By

Friend











<
telerik:RadSplitter id="RadSplitter1" runat="server" height="300" width="700">

 

 

<telerik:RadPane id="navigationPane" runat="server" width="150">

 

 

<a href="#" >Personnel Info</a> <br />

 

 

<a href="#" > Project Info </a><br />

 

 

<a href="#" > Joining Info </a><br />

 

 

<a href="#" > Emergency Info </a><br />

 

 

 

</telerik:RadPane>

 

 

<telerik:RadSplitBar id="RadSplitbar1" runat="server" CollapseMode="Forward"></telerik:RadSplitBar>

 

 

<telerik:RadPane id="contentPane" runat="server" scrolling="none">

 

 

<telerik:RadSplitter id="RadSplitter2" runat="server" orientation="Horizontal">

 

 

<telerik:RadPane id="topPane" runat="server">

 

Nested Splitter Top Pane

 

</telerik:RadPane>

 

 

<telerik:RadSplitBar id="RadSplitbar2" runat="server" CollapseMode="Forward">

 

 

</telerik:RadSplitBar>

 

 

<telerik:RadPane id="bottomPane" runat="server">

 

Nested Splitter Bottom Content

 

</telerik:RadPane>

 

 

</telerik:RadSplitter>

 

 

</telerik:RadPane>

 

 

</telerik:RadSplitter>

 

Svetlina Anati
Telerik team
 answered on 06 Apr 2009
1 answer
253 views
Hi -

I am dragging a node from RadTreeView and dropping in a div. I am having 2 problems:-

1. The RadWindow is loading 2 times. The RadWindowManager Code snippet is below :-
<telerik:RadWindowManager ID="RadWindowManager1" runat="server" VisibleOnPageLoad="false"
                    VisibleTitlebar="true" VisibleStatusbar="false"
                    ReloadOnShow ="true" ShowContentDuringLoad="true" RestrictionZoneID="myDiv" Skin="Telerik"
                    OnClientCommand="oCCWindow">
 </telerik:RadWindowManager>

2. Whenever I am clicking the reload event of RadWindow, I am getting all alerts, but I am not able to redirect it to www.google.com on reload. The openDashboards function is getting called when I am dragging a node from RadTreeView i.e. OnClientNodeDragging and whenever I am clicking the reload button of RadWindow, function oCCWindow is called.

Please find below the code snippet :-




<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
    <script type="text/javascript">
        function oCCWindow(sender, eventArgs)  
        {  
            if (eventArgs.get_commandName() == "Reload")
            {
                var oManager = GetRadWindowManager();
                alert(oManager);
                var oWnd = oManager.GetWindowByName(sender.get_id());
                alert(oWnd);
                oWnd.SetUrl('http://www.google.com');
                oWnd.Show();
            }
            //window.alert("1");
            //alert("Window with ID " + sender.get_id() + ". Command is " + eventArgs.get_commandName());   
        }
         
        function openDashboards(sender, eventArgs)
        {
                //get the clicked node
                var title = eventArgs.get_node(sender, eventArgs).get_text();
                var link = eventArgs.get_node(sender, eventArgs).get_value();
                var oWnd = radopen(link,null);
                //oWnd.OnClientCommand = 'oCCWindow';
                oWnd.set_title(title);
           }
        </script>
    </telerik:RadCodeBlock>

Please help me where I am going worng.

Thanks in advance.
Happy Coding!!!
Arindam
Georgi Tunev
Telerik team
 answered on 06 Apr 2009
1 answer
150 views

I am trying to get the selected item of the PanelBar but I always get null. Can any one help me? Greatly appreciated.

 

--------------My Code-------------------------------------------
//Getting PanelBar1 inside custom control called "folderExplorer"

 

var panelbar1 = <%=((RadPanelBar)folderExplorer.FindControl("PanelBar1")).ClientID %>;

 

 

//panelbar1 object is okay but I am not able to get any selected items

 

 

var myitem = panelbar1.get_selectedItem();

 

Paul
Telerik team
 answered on 06 Apr 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?