Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
113 views
hi i have been studying this example of dynamic raddock with usercontrols.
What i found is that after you play almost 30 seconds creating and closing docks the html Dom is a complete dissaster, full of divs left by the raddock windows.

there is a way to clean this dom, for example using a server side event for the close command to unload the control and have a clean DOM?
i found a little bit complicated because there should be only one close event function for all raddocks so posible you should pass the control loaded in any way to this event handler to know which control you should unload, and in that case i have not clear that could be keep clean.

Thanks a lot.
Slav
Telerik team
 answered on 31 Aug 2011
7 answers
228 views
Problem:
I have right to left page and an editor in a dock. when i toggle fullscreen mode it dont work corrent.
i take a screencast from the problem
http://www.screencast.com/users/AmirMirkamali/folders/Jing/media/965bd81f-a4d1-45c1-a4b5-3c398539d95c

also some part of toolbars hide behind the page. such as toggle full screen and i cant return to normal screen (I know the shortcut is F11 but many users does not)

Rumen
Telerik team
 answered on 31 Aug 2011
4 answers
150 views
Radeditor clear class dont work in hyperlink manager. when select an style for a link and apply it, you cant remove it !!!

hyperlink manager -> Hyperlink  ->  CSS Class -> clear class

(I have ie 9.0)

I got disappointed with RadEditor, there are some basic tools and functions that are not in RadEditor, such as
  1. Direction
  2. Line Height
  3. Custom css class edit for object (only selective class availble)

RadEditor didnt switch to rtl when add rtl style to it (tools are stil ltr) and i must add too many styles!

I have posted another bug in the forum
http://www.telerik.com/community/forums/aspnet-ajax/editor/radeditor-fullscreen-bug-when-placed-in-raddock.aspx
the editor full screen not work correct in raddock.

please help !


Rumen
Telerik team
 answered on 31 Aug 2011
2 answers
163 views
Hi,

I'm trying to use radwindow in site that will be used from mobile devices (also from PCs, that is already working and using radwindows). To maximize space, I want to remove the frame from the rad window, and only preset the closing X button, using all the size for the content.

Is this possible? examples?

Thanks

Javier Rodríguez 
Marin Bratanov
Telerik team
 answered on 31 Aug 2011
1 answer
94 views
I have a postion table that I drag and drop personnel to positions, however they want the ability to lock out positions.  So what I do is put a number in a field in the db that pulls into the grid.  I turn this number invisible for the column but now how can I lock out the row from being dropped to in the drag and drop event.  Only using code behind so i am using the rowDrop event.
Protected Sub myGridSoldier_RowDrop(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridDragDropEventArgs) Handles myGridSoldier.RowDrop
  
        If e.DestDataItem.OwnerTableView.ClientID = myGridPositions.MasterTableView.ClientID Then
            For i As Integer = 0 To e.DraggedItems.Count - 1
                Dim SSN As String = e.DraggedItems(i).GetDataKeyValue("SSN")
                Dim PositionId As Integer = e.DestDataItem.GetDataKeyValue("intPositionId")
  
                HFSSN.Value = SSN
                HFPosition.Value = PositionId
  
                FillInfo(SSN, PositionId)
  
                pnlSoldierInfo_POP.Show()
            Next
        End If
    End Sub
Mira
Telerik team
 answered on 31 Aug 2011
3 answers
134 views

Goodafternoon,

I’ve got a problem with a AjaxLoadingPanel display on the iPad (latest version -> safari browser)
 
What happens:
 
The page is divided in to two Panels:
* oPanelTop (containing information)
* oPanelAll (containing the listview)

A RadListView is being populated from serverside.
A listview item contains 1 image, inputfield, and one button

On the ItemCreated, listviewitem, event I’m linking the button, from listviewitem,  with the AjaxLoadingPanel and the oPanelTop.

code: RadAjaxManager2.AjaxSettings.AddAjaxSetting(oLinkButton, oPanelTop, oRadAjaxLoadingPanel);

Client side the oRadAjaxLoadingPanel is defined as follows:

<telerik:RadAjaxLoadingPanel runat="server" ID="oRadAjaxLoadingPanel" Transparency="30" Skin="" MinDisplayTime="2000">

    <div style="height: 70px; background-color: #EEEEEE;">

        <asp:Label ID="Label1" runat="server" Text="Adding…" />

    </div>

</telerik:RadAjaxLoadingPanel>

The page works well, as it supposed to be, on the following browsers:

IE8, IE9, FireFox, Chrome, Safari (desktop)

The page fails on Safari(iPad).
I get the feeling that on the ipad the button action is triggered twice, or something like that, because:

1st time clicked on a button from listview => site response normaly (hiding AjaxLoadingPanel)
2nd time clicked on a  button from (random) listviewitem =>

The page shows the transparent box over the oTopPanel (like first time). But then The transparent box darkens (2nd AjaxLoadingPanel? Overlaying the existing visible ajaxloadingpanel) and after 2 seconds it lightens (disposing 1st ajaxloadingpanel?), but then remains visible, making it unable to click the controls underneath it.

I Have already tried the following:

Serverside => create an AjaxSetting object with various options
ClientSite => Create the AjaxSetting separate from existing AjaxSetting (so things won’t mix up)

Non has the result I suspected.

The Problem is : AjaxLoadingPanel stays visible even after Displaytime has elapsed.
(only on iPad Safari)

Is there a way to solve this problem.

Thanks in advance.
Marin
Telerik team
 answered on 31 Aug 2011
1 answer
120 views
In my share point application user control, I have a RadEditor and a hyper link. clicking on the hyperlink would open a modaldialog. when user select some data and click on apply button in the modaldialog, the data should automatically insert into the RadEditor. How to achieve this?
Rumen
Telerik team
 answered on 31 Aug 2011
1 answer
90 views
Hi,
I am selecting particular row using linkbutton client side click event .for that i am using following code
 function Edit(control, rowIndex,reportName) {
            var grid = $find("ctl00_ContentPlaceHolder1_rgReportList");
            grid.MasterTableView.selectItem(rowIndex);
        }

This is working fine .
There are buttons in command template which are enables when checkbox of select column is checked ,
but while selecting row using javascript it is not happening.
Kindly suggest for the above.

I am using following markup for commadtemplate and columns.
 <CommandItemTemplate>
                            <telerik:RadToolBar ID="rtbReports" runat="server" OnClientButtonClicked="onToolBarClientButtonClicking"
                                Height="26px" Skin="Office2007" Width="100%">
                                <Items>
                                    <telerik:RadToolBarButton Text="<%$ Resources:New %>" CommandName="<%$ Resources:New %>"
                                        ImageUrl="~/Images/NewEnable2.png" Enabled='<%# rgReportList.EditIndexes.Count == 0 %>'>
                                    </telerik:RadToolBarButton>
                                    <telerik:RadToolBarButton Text="<%$ Resources:Delete %>" CommandName="<%$ Resources:Delete %>"
                                        ImageUrl="~/Images/imgDelBtnEnable.png" Enabled='<%# rgReportList.EditIndexes.Count > 0 %>'>
                                    </telerik:RadToolBarButton>
                                    <telerik:RadToolBarButton Text="<%$ Resources:Edit %>" CommandName="<%$ Resources:Edit %>"
                                        ImageUrl="~/Images/imgEditBtnEnable.png" Enabled='<%# rgReportList.EditIndexes.Count > 0 && rgReportList.EditIndexes.Count == 1%>'>
                                    </telerik:RadToolBarButton>
                                    <telerik:RadToolBarButton Text="<%$ Resources:Copy %>" CommandName="<%$ Resources:Copy %>"
                                        ImageUrl="~/Images/imgCopyBtnEnable.png" Enabled='<%# rgReportList.EditIndexes.Count > 0 && rgReportList.EditIndexes.Count == 1%>'>
                                    </telerik:RadToolBarButton>
                                    <telerik:RadToolBarButton CssClass="rightAligned">
                                        <ItemTemplate>
                                            <table style="background-color: White;" cellpadding="0" cellspacing="0">
                                                <tr>
                                                    <td valign="middle" style="width: 20px;" align="center">
                                                        <asp:Image ID="imgSearch" runat="server" ImageUrl="~/Images/Search-icon3.png" />
                                                    </td>
                                                    <td valign="middle">
                                                        <telerik:RadTextBox ID="txtsearchreports" runat="server" AutoPostBack="True" MaxLength="20"
                                                            OnTextChanged="txtsearchreports_TextChanged" EmptyMessage="<%$ Resources:EnterToSearch %>"
                                                            Width="200px" EnableViewState="true" CssClass="txtSearch">
                                                        </telerik:RadTextBox>
                                                    </td>
                                                </tr>
                                            </table>
                                        </ItemTemplate>
                                    </telerik:RadToolBarButton>
                                </Items>
                            </telerik:RadToolBar>
                        </CommandItemTemplate>

<Columns>
                            <telerik:GridClientSelectColumn  HeaderStyle-Width="35px"
                                ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center" Resizable="false">
                            </telerik:GridClientSelectColumn>
                            <telerik:GridTemplateColumn UniqueName="ReportName" HeaderText="<%$ Resources:ReportName %>"
                                HeaderStyle-Width="30%" SortExpression="ReportName" ShowSortIcon="true">
                                <ItemTemplate>
                                    <asp:LinkButton ID="lnkReportName" runat="server" Text='<%#Eval("ReportName")%>'
                                        Font-Underline="true"></asp:LinkButton><%--OnClientClick="Edit(this);"--%>
                                    <asp:HiddenField ID="hdnReportName" runat="server" Value='<%#Eval("ReportName")%>' />
                                </ItemTemplate>
                                  <ItemStyle Wrap="false" />
                                  <HeaderStyle Wrap ="false" />
                            </telerik:GridTemplateColumn>
 </Columns>
Veli
Telerik team
 answered on 31 Aug 2011
1 answer
195 views
Hi
I have the following telerik:RadTreeList 

<telerik:RadTreeList ID="RadTreeListFacility" runat="server" DataKeyNames="Key" ParentDataKeyNames="SuperiorFacilityID"
        AutoGenerateColumns="False" Width="100%" AllowMultiItemEdit="False" Culture="(Default)"
        OnNeedDataSource="RadTreeListFacility_NeedDataSource">
        <Columns>
            <telerik:TreeListSelectColumn UniqueName="SelectColumn" Visible="false" />
            <telerik:TreeListBoundColumn DataField="Name" UniqueName="Name" HeaderText="Display Name" />
            <telerik:TreeListBoundColumn DataField="Key" UniqueName="Key" HeaderText="Unique ID" />
            <telerik:TreeListBoundColumn DataField="FacilityType" UniqueName="FacilityType" HeaderText="Type" />
            <telerik:TreeListBoundColumn DataField="SuperiorFacilityID" UniqueName="SuperiorFacilityID"
                HeaderText="Parent ID" Visible="false" />
            <telerik:TreeListTemplateColumn ItemStyle-Width="100px" HeaderStyle-Width="100px">
                <HeaderTemplate>
                </HeaderTemplate>
                <ItemTemplate>
                    <span onclick="Edit_OnClick({Key:'<%# Eval("Key") %>',Name:'<%# Eval("Name")%>',SID:'<%# Eval("SuperiorFacilityID")%>',Type:'<%# Eval("FacilityType")%>'});">
                        <img src="../../images/DataEditing/Edit.gif" title="Update Selected Clinic" alt="Update Selected Clinic" />
                    </span>
                    <span onclick="AddSubFacility_OnClick({SID:'<%# Eval("Key")%>'});">
                        <img src="../../images/DataEditing/AddRecord.gif" title="Add Below Selected Clinic"
                            alt="Add Below Selected Clinic" />
                    </span>
                    <span onclick="Delete_OnClick({Key:'<%# Eval("Key") %>',Name:'<%# Eval("Name")%>'});">
                        <img src="../../images/DataEditing/Delete.gif" title="Delete Selected Clinic" alt="Delete Selected Clinic" />
                    </span>
                </ItemTemplate>
            </telerik:TreeListTemplateColumn>
        </Columns>
        <ClientSettings AllowPostBackOnItemClick="false">
            <Selecting AllowItemSelection="true" AllowToggleSelection="true" />
        </ClientSettings>
    </telerik:RadTreeList>


This tree has only one root node element.
Using Javascript I want to get hold of the Root element.
I have tried
var tree = $find("<%= RadTreeListFacility.ClientID %>");
var node0 = tree.get_nodes().getNode(0);


This dose not work


Also I would like to know how to get values the Key and the Name DataField values of the root node client side. Thanks in advance. Tejas
Tsvetina
Telerik team
 answered on 31 Aug 2011
1 answer
120 views
Hello,

I need help to retrieve and save into DB through grid.

Scenario:
I have one main grid , and this grid Contain three column , Menu name , Assigned school, and Select school ....

When User create a New menu and save, then Immediately Menu name Displayed in the grid , now The select school Column contain the Drop down for each grid row contain the School name with the Check box.

I want to implement feature here is "

When User check the check box of any school /s from this drop down , after out of focus from this Drop down , checked value (School) stored in to DB, and Refresh my grid / page , and Immediately shows the selected school in my "Assigned School" column of the Grid..

How can i do this, ?  Possible send me the example , that would great great help...

REgards
Samir
Veli
Telerik team
 answered on 31 Aug 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?