Telerik Forums
UI for ASP.NET AJAX Forum
9 answers
188 views
Hi,

I want to make use of the RAD Window control just to open up my different forms where all the functionality will be on my various forms and i can show them in RAD Window control rather than in a normal popup window. This approach will help me get rid of the popup blocker problem which falls in with the normal popup window approach. Also i want to have the looks of these RAD Windows on my popup screens.

Kindly assist ASAP.

Thanks, 
Sunil Nahar.
Marin Bratanov
Telerik team
 answered on 14 Dec 2018
11 answers
604 views
Hi,

We have a very tall form with a href links throughout. If a  user scrolls down, and clicks a link, this opens a radwindow. We are getting the current x and y pos of the mouse so that we set the radwindow position to something relative to where the mouse is - the goal being to just have the window appear wherever you are at in the position of the screen. However, when the radwindow opens, the browser resets the scroll position so we are looking at the top of the page - with our radwindow way down and invisible.

How can we open a rad window, and set its position but not have the browser scroll back to the top (we are using Firefox 3.5.3 in tests) ? Here is our code. Thanks in advance!

 function openRadWindow(ESID) {
            var oWnd = radopen("ViewFaculty.aspx?ESID=" + ESID, null);
            oWnd.SetSize(600, 550);
           // tempX and tempY are the current mouse x and y positions
            oWnd.moveTo(tempX, tempY);
            return false;


        }
Marin Bratanov
Telerik team
 answered on 14 Dec 2018
5 answers
269 views

Hello, how can I find a textbox control using the event OnBatchEditOpening?

I have created a column template.

 

<telerik:GridTemplateColumn HeaderText="Target" UniqueName="target" HeaderStyle-Width="360px">
<HeaderStyle Width="360px" />
<ItemTemplate>
<asp:Literal Text='<%# (Eval("target").ToString()) %>' runat="server" ID="literal_target"></asp:Literal>
</ItemTemplate>
<EditItemTemplate>
<telerik:RadTextBox runat="server" ID="txt_target" TextMode="MultiLine" Width="100%"  />          
</EditItemTemplate>

</telerik:GridTemplateColumn>​

 

Thank you.

Eyup
Telerik team
 answered on 14 Dec 2018
12 answers
413 views

I'm running into an issue while exporting in BIFF format, the column headers aren't correct on any of my grids that use multicolumn headers.  This is on dynamically created columns and multicolumn headers.  Anything that does not use multicolumn headers is good.

In the attached screenshot it shows that the second row in excel is not shifting the column headers to the right like it should, it is just cutting them off.  When I dig into the GridBiffExportingEventArgs table it is completely missing those cells that are cut off.  I tried changing lots of export settings before the export happens and nothing seemed to help.  Has anyone else run into this same issue?

Eyup
Telerik team
 answered on 14 Dec 2018
3 answers
107 views

I am injecting some HTML into the RadEditor's content window using the pasteHtml method in JavaScript.  The HTML I am pasting includes a <span> element, like this:

editor.pasteHtml("<span class='text-highlight'>@MyText</span>");

 

In all browsers, in Design view, after the text is pasted, the cursor appears after the span contents ("@MyText" in the example above).  In Chrome, the cursor is actually positioned inside the <span> tag (which is what I want).  In IE and Edge, however, the cursor position appears after the closing <span> tag.

Is there any way to get the cursor inside the <span> tag after the paste occurs?  I tried using variations of the range.collapse() methods (which have major limitations in IE anyway), but it had the adverse effect of taking the focus away from the RadEditor control.

 

Rumen
Telerik team
 answered on 14 Dec 2018
1 answer
76 views

 

When the editor is opened in Microsoft Edge, <br /> is present in the html, with or without taking focus in the content area.

Does appear to do this in Chrome.

 

Rumen
Telerik team
 answered on 14 Dec 2018
17 answers
766 views
Hello Everyone,

i want to close Menu-items after clicked on any MenuItems using javscript  OnClientItemClicked.

and my RadMenuItems are under

<telerik:GridTemplateColumn >
                        <ItemTemplate>
                     <telerik:RadMenu ID="RadMenuClient" runat="server" EnableRoundedCorners="true" EnableShadows="true"
                            OnClientItemClicked="OnClientItemClicked" ExpandAnimation-Type="None" CollapseAnimation-Type="None"
                            ExpandDelay="0" CollapseDelay="0" Selected="false" ClickToOpen="true">
                            <Items>
                              <telerik:RadMenuItem ImageUrl="../images/1.jpg" Selected="false">
                                <GroupSettings ExpandDirection="Down" OffsetX="20" OffsetY="-20" />
                                <Items>
                                  <telerik:RadMenuItem Text="Add" Value="Add">
                                  </telerik:RadMenuItem>
                                  <telerik:RadMenuItem Text="Edit" Value="EditI">
                                  </telerik:RadMenuItem>
                                  <telerik:RadMenuItem Text="Delete" Value="Delete">
                                  </telerik:RadMenuItem>
                               </Items>
                              </telerik:RadMenuItem>
                            </Items>
                          </telerik:RadMenu>
                        </ItemTemplate>
                      </telerik:GridTemplateColumn>


can anyone help me ?

Thanks,
Peter Milchev
Telerik team
 answered on 14 Dec 2018
10 answers
1.0K+ views
Hi all,

I have a RadWindow which is popped up and centered. When the user decides to resize the browser window (e.g. changing it from maximized to partial-screen) the RadWindow does not re-center. I thought the easiest way to do this would be a bit of jQuery, but it doesn't seem to be firing?

$(window).resize(function () {
    var oWindow = GetRadWindow();
    if (oWindow.isVisible()) {
        oWindow.center();
    }
});

Is there anything wrong with this? I just have it floating inside of a RadCodeBlock/javascript block.

Thanks

Sean
Dave
Top achievements
Rank 1
 answered on 13 Dec 2018
1 answer
791 views

Subresource Integrity is a fairly new security scheme for protecting against malicious script obtained from third-party source (CDNs). It requires that the script tag include a hash of the script content so the browser can verify that it has not been altered.

Telerik controls generate a bunch of script tags for cloudfront.net. It would be swell if the script tags would include the extra attributes necessary to implement subresource integrity. Is this in the roadmap? 

Mozilla provides a security analysis tool which highlights this issue. Look at the results for telerik.com here

More info available here and here.

Rumen
Telerik team
 answered on 13 Dec 2018
5 answers
477 views

I added an editable grid on my page, based on forum posts I found on this site (see attached images). The grid works as expected; however, the filtering & sorting do not.

In edit mode, the grid has a few drop-down lists using <EditItemTemplate>. Unfortunately, the default filter for these columns ends up being a textbox instead of a drop-down list. How can I change them? Also, these fields lose their sorting capability - the column headers can't be clicked, like the other columns in the grid.

If I change the tag from <EditItemTemplate> to <FilterTemplate> the filter becomes a drop-down list; but, then the fields are no longer listed on the edit screen (see attached image). 

How can I implement a grid that has both capabilities - a drop-down for editing & for filtering?

 

This is how I've implemented things...

ASPX page

<telerik:RadGrid ID="RadGrid2" RenderMode="Lightweight" runat="server" AutoGenerateColumns="false" AllowSorting="True" AllowPaging="True" ShowStatusBar="true" OnItemDataBound="RadGrid2_ItemDataBound" AllowFilteringByColumn="True" >

    <MasterTableView Name="PlantTypeGrid" DataKeyNames="ID" CommandItemDisplay="Top" ShowFooter="false" >
        <HeaderStyle Font-Bold="true"/>
        <Columns>
            <telerik:GridEditCommandColumn ButtonType="FontIconButton" />
            <telerik:GridCheckBoxColumn DataField="Active" HeaderText="Active" />
            <telerik:GridBoundColumn DataField="Description" HeaderText="Description" AllowFiltering="false" />
            <telerik:GridTemplateColumn HeaderText="Process Unit Category" UniqueName="ProcessUnitCategoryID" AllowFiltering="true" >
                <EditItemTemplate>
                    <telerik:RadDropDownList runat="server" ID="ddlProcessUnitCatTelerik" AppendDataBoundItems="true" >
                    </telerik:RadDropDownList>
                </EditItemTemplate>
            </telerik:GridTemplateColumn>
            <telerik:GridButtonColumn ConfirmText="Delete this Plant Type?" ConfirmDialogType="RadWindow" ConfirmTitle="Delete" CommandName="Delete" ButtonType="FontIconButton" />
        </Columns>
    </MasterTableView>
    <PagerStyle Mode="NextPrevAndNumeric" />
  </telerik:RadGrid>

VB Page

Private Sub BuildPlantTypeGrid()
    Dim myCollection As EMSLookupItems = Nothing
    myCollection = _lookupMgr.GetPlantTypes(-1, -1)
    If Not myCollection.Count = 0 Then
        RadGrid2.DataSource = myCollection.Items
    Else
        RadGrid2.DataSource = ""
    End If
End Sub

Protected Sub RadGrid2_ItemDataBound(ByVal sender As Object, ByVal e As GridItemEventArgs)

    If TypeOf e.Item Is GridEditableItem Then
        If e.Item.IsInEditMode Then
            Dim item As GridEditableItem = CType(e.Item, GridEditableItem)
            Dim mySubCollection As EMSLookupItems = Nothing
            Dim ddlProcessUnitCatTelerik As RadDropDownList = CType(item.FindControl("ddlProcessUnitCatTelerik"), RadDropDownList)
            ddlProcessUnitCatTelerik.Width = Unit.Pixel(300)

            If Not ddlProcessUnitCatTelerik Is Nothing Then
                mySubCollection = _lookupMgr.GetLookupValues("PROCESS_UNIT_CATEGORIES")
                If Not mySubCollection.Count = 0 Then
                    ddlProcessUnitCatTelerik.DataSource = mySubCollection.Items
                    ddlProcessUnitCatTelerik.DataValueField = "ID"
                    ddlProcessUnitCatTelerik.DataTextField = "Description"
                Else
                    ddlProcessUnitCatTelerik.DataSource = ""
                End If
                ddlProcessUnitCatTelerik.DataBind()
                ddlProcessUnitCatTelerik.Items.Insert(0, "Please Select...")
            End If
        End If
    End If
End Sub

 

Attila Antal
Telerik team
 answered on 13 Dec 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?