Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
153 views
I am using your 'rating & comment' example as the starting blocks for a ratings system I am building but I have hit a snag when using inside a repeater.

Line 13:        function OnClientRated(controlRating, args) {
Line 14:             var tooltip = $find("<%= RadToolTip1.ClientID %>");
Line 15:             tooltip.show();
Line 16:         }

My browser is telling me it cant find 'RadToolTip1' as it is within a repeater. How do I fix this? What do I need to change on the JS so it can see the radtooltip?

Also, how do I get the values of the RadRating control (RadRating1) from within a repeater? Can I use OnItemCommand and pass in arguments and commnds???

Many thanks
Simon
Slav
Telerik team
 answered on 15 Nov 2011
10 answers
172 views
Hello,

Is there a clientside event where I can iterate through rows or a single row cells and collect all controls from row? Problem is that their ClientIDs may vary depending on where the grid is located and I may not now their names at the moment. I tried to do the following:
function getRowControls(row, controlName) {
    var result = Array();
    var grid = $find(gridID);
    var master = grid.get_masterTableView();
    var columns = master.get_columns();
    for (var i = 0; i < columns.length; i++) {
        var control = getControlFromCell(row.get_cell(columns[i].get_uniqueName()), controlName);
        if (control)
            result.push(control);
    }
    return result;
}
function getControlFromCell(cell, ctlName) {
    if (cell == nullreturn null;
    var cellControls = cell.getElementsByTagName("*");
    for (var a = 0, b = cellControls.length; a < b; a++) {
        var f = cellControls[a].id;
        if (f && f.endsWith(ctlName)) {
            return $find(f);
        }
    }
    return null;
}

"controlName" here is only control name suffix which the same through all my controls. In my case it's "_templateEditControl". I tried OnRowCreated, OnMasterTableViewCreated, OnGridCreated but there are still no controls by the time they fire.
Is there an event which would fire when grid enters edit or insert mode? Or any, where I can iterate through row controls and do something with them.
Thank you.

Mira
Telerik team
 answered on 15 Nov 2011
3 answers
203 views
Hello Telerik!

I am currently experiencing a Mozilla FireFox exclusive issue involving the Z-Index of the mouse cursor while Dragging and Dropping from a TreeView to a RadEditor within a Modal Popup Panel. Earlier, I was experiencing this issue in both IE8 and FireFox, however, after applying this CSS property:

.TelerikModalOverlay
{
     z-index: 100000 !important;
}

This solved the issue in IE8, but the problem persists in FireFox. I have a sample application in .zip format ready to send, however I can not attach a .zip file.

the Page structure is like this:

Page with an Ajax modalpopup control containing a user control
User Control contains a RadPanelBar, with 2 RadPanelItems, each RadPanelItem contains a RadTreeView
Each RadTreeView contains several RadTreeNodes
Drag And Drop on the RadTreeViews are active.
Next to the RadPanelBar is a RadEditor with standard toolbar controls.

What you should see is if you are in FireFox, you will notice that if move the cursor off the modal while dragging, that you will see the item appear behind the popup panel. Conversely, if you are in IE8, you will notice the intended functionality; the item correctly drops to the cursor position on the RadEditor.

I have tried increasing and decreasing the z-index value of the TelerikModalOverlay property, and it does not appear to have any positive results in FireFox. Also, I am currently using FireFox 5.0, and I can also reproduce this issue on previous versions of FireFox.

Attached, you will see a screenshot of the issue. To the left of the Modal Panel, you can see half of the cursor, depicting the text "Rule..." which actually says "Rule: 5" but I was attempting to capture the fact that half of the text is behind the popup.

Please let me know if I am doing something wrong, or if I need to implement an exclusive fix for FireFox browsers. I would be more than happy to send over a .zip file of a sample application which consistently reproduces the issue that I am experiencing.

Thanks in advance!

-Andrew

Code Here:
Peter
Telerik team
 answered on 15 Nov 2011
2 answers
513 views
hi all :)

I open some video at a radwindow, but after closing, the video still working

how can I close the window and all controls inside it ?

if I can to have another question, can I show radwindow without any border ?

just like popup one



thank you all :)
Marin Bratanov
Telerik team
 answered on 15 Nov 2011
4 answers
335 views
Hi,

With client side button click event, I want to open a Radwindow with ContentTemplate . My code looks fine and works perfectly  if I remove the contentment template with navigate url.. Can someone tell me whats wrong in the code given below.

  <telerik:RadWindowManager id="RadWindowManager1" runat="server">
            <Windows >
                    <telerik:RadWindow ID="RadWindow1" runat="server" Behaviors="Close,Move" Modal="false" Skin="Office2007" Title="Select User" Width="350"
                        Height="140"    OpenerElementId = "<%# UserBtn.ClientID %>" >
                            <ContentTemplate >
                
                                 <telerik:RadComboBox ID="ComboBox1" runat="server" Width="130px"   AutoPostBack="True"   >
                                </telerik:RadComboBox>

                             </ContentTemplate>
                    </telerik:RadWindow>
                </Windows>
        </telerik:RadWindowManager>
         

 <telerik:RadButton ID="UserBtn" runat="server" Text="Search"     > </telerik:RadButton>


Thanks
Prava
Marin Bratanov
Telerik team
 answered on 15 Nov 2011
1 answer
335 views
I have a page 'Page1.aspx' with RadTabStrip. Each tab points to diffrent aspx pages.I have a button on one of the pages 'Page2.aspx'. On the click of this button, I want to redirect the parent page 'Page1.aspx' to some other page 'Dummy.aspx'. I don't want to redirect 'Page2.aspx' to 'Dummy.aspx'.

Here is the my code :
<div>
                    <telerik:RadTabStrip ID="rdtabCSD" runat="server" Skin="CustomSkin" EnableEmbeddedSkins="false"
                        SelectedIndex="0" MultiPageID="rdMultiPageId" AutoPostBack="true">
                        <Tabs>
                            <telerik:RadTab Text="Page2">
                            </telerik:RadTab>
                            <telerik:RadTab Text="Page3">
                            </telerik:RadTab>
                            <telerik:RadTab Text="Page4">
                            </telerik:RadTab>
                            <telerik:RadTab Text="Page5">
                            </telerik:RadTab>
                            <telerik:RadTab Text="Page6">
                            </telerik:RadTab>
                            <telerik:RadTab Text="Page7">
                            </telerik:RadTab>
                        </Tabs>
                    </telerik:RadTabStrip>
                    <telerik:RadMultiPage CssClass="radmultipageIframe" ID="rdMultiPageId" runat="server"
                        SelectedIndex="0">
                        <telerik:RadPageView ID="rdPVGeneralInfo" runat="server" ContentUrl="Page2.aspx">
                        </telerik:RadPageView>
                        <telerik:RadPageView ID="rdPVInventory" runat="server" ContentUrl="Page3.aspx">
                        </telerik:RadPageView>
                        <telerik:RadPageView ID="rdPVCost" runat="server" ContentUrl="Page4.aspx">
                        </telerik:RadPageView>
                        <telerik:RadPageView ID="rdPVPricing" runat="server" ContentUrl="Page5.aspx">
                        </telerik:RadPageView>
                        <telerik:RadPageView ID="rdPVFreight" runat="server" ContentUrl="Page6.aspx">
                        </telerik:RadPageView>
                        <telerik:RadPageView ID="rdPVMaintenance" runat="server" ContentUrl="Page7.aspx">
                        </telerik:RadPageView>
                    </telerik:RadMultiPage>
    </div>


Kate
Telerik team
 answered on 15 Nov 2011
1 answer
67 views
I'd like to add a custom form to show some read-only details about an appointment as a modal popup, sort of like the Advanced Form but simpler and without the ability to change any values. Is this possible?
I have a rt-click context menu set up already to trigger this form, but I can't figure out a way within Scheduler. I can do it with a standard modal popup from my page, but would prefer to use something that comes from Scheduler if possible. Thanks!
Stuart Hemming
Top achievements
Rank 2
 answered on 15 Nov 2011
7 answers
204 views
I am using Telerik Controls 2011.1.315.35

We have a load on demand RadMultiPage linked with a RadToolBar

There are several pages and it successfully loads only the page I require when it first loads.

The problem occurs when I click on the tool bar to open another page, the page loads correctly but at the same time it will load the original page again as well, losing any of the values that have been changed in that page.

If I click back to the original page and change a value and then click back to the 2nd page I opened then all is well and the 1st page will not reload. 

The tool bar click is controlled by a JavaScript function

 function onButtonClicked(sender, args)
 {
var multipage=$find("MultpageView");
        var ajaxManager = $find('<%= RadAjaxManager1.ClientID %>');
        var pageView = multipage.findPageViewByID(args.get_item().get_value())
                
        if(pageView ==null)
        {
                    ajaxManager.ajaxRequest(args.get_item().get_value());  
         }
         else
         {
                    pageView.set_selected(true);
                    ResizeFrame();
         }
}

This is working and the new page will only be added to the MultiPage if it hasn't already been added. What I need to do is prevent the Pages that have been added from reloading and losing any values that have been changed.

Each page is contained in its own control that is added to the new page


Ajax Call on Server side is as follows
 Protected Sub RadAjaxManager1_AjaxRequest(ByVal sender As Object, ByVal e As AjaxRequestEventArgs) Handles  RadAjaxManager1.AjaxRequest
        AddPageView(e.Argument)
End Sub

Private Sub AddPageView(ByVal pageViewID As String)
        Dim pageView As New RadPageView()
        pageView.ID = pageViewID
        If MultpageView.FindPageViewByID(pageViewID) Is Nothing Then
            MultpageView.PageViews.Add(pageView)
        End If
End Sub

When the new Page View is created the control is added using the PageVIewCreated event

Protected Sub MultpageView_PageViewCreated(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadMultiPageEventArgs) Handles MultpageView.PageViewCreated
        Dim UserControlName As String = e.PageView.ID + ".ascx"
        Dim userControl As Control = Page.LoadControl("PageControls/" & UserControlName)
        userControl.ID = e.PageView.ID + "_userControl"
        e.PageView.Controls.Add(userControl)
        MultpageView.FindPageViewByID(e.PageView.ID).Selected = True
End Sub



Dimitar Terziev
Telerik team
 answered on 15 Nov 2011
4 answers
88 views

I am trying to add an Append option to the context menu utilizing an Edit Form Template pop-up. The Insert option was easy since you had many examples. I tried, client side, to change the command to InitInsert with a currentIndex of -1 to indicate an Append operation, see below. When it runs, I do not get the Edit Form Template pop-up. I am also trying to incorporate the same functionality into Insert and Append buttons, separate from the Tree List control.

function CM_onClientItemClicked(sender, args) {

       var commandName = args.get_item().get_value();

       if (commandName == 'Append')

              _tlConfig.fireCommand('InitInsert', -1);

                else

              _tlConfig.fireCommand(commandName, currentIndex);

}
Mira
Telerik team
 answered on 15 Nov 2011
3 answers
328 views
hi,

I have attached pdf file into database. if i click link i want to dispaly pdf file into radwindow.

Please give me a idea for this one.


Thanks,
Dhamu.
Shinu
Top achievements
Rank 2
 answered on 15 Nov 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
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
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?