Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
128 views

I want to dyanmically populate the Resource types. Meaning, I have three resource type on my schudeler. I want to populate the Second resource type based on the selected value of the First Resource type. And I want to populate the Thrid Resource Type based on the second resource type selection. How we can achieve this using the telerik Scheduler. Present Scheduler developed in plain Telerik Scheduler not by AdvancedScheduler. Please let me know if any one knows how to implement this.

One More thing I have to mention here. We are using VB.Net for Developement. Please provide the suggestions on VB.Net.

thanks,
KG

Peter
Telerik team
 answered on 07 Aug 2009
1 answer
89 views
Hello,

I've a problem when I selectid rows on my radgrid.
If the rows height doesn't exceed the height of radgrid, it works fine.
But if there are too many rows, a big blank will displayed!

There's no problem when I select single row.
It only occured on IE7.0, works fine on IE6.0 and IE8.0.
The trouble is most of users are using IE7.0...

Could you please help me? Thanks ahead.

Best regards
Chenghan

Screen shot:
Daniel
Telerik team
 answered on 07 Aug 2009
3 answers
170 views
Dear Sir/Madam,


I have a grid. and I am binding this grid clientside from an javascript Array.
but when i bind this grid again with an empty array then grid is showing records correctly but
items are not being clear.
Rad Grid binding code that i have written is as follows:

var seltestRows = new Array();
seltestRows[0] = result.rows[0];
seltestRows[1] = result.rows[1];

 

var tableView = $find("<%=gvTest.ClientID %>").get_masterTableView();

 

tableView.set_dataSource(seltestRows);

tableView.dataBind();



Does anyone knows please tell me.

Thanks & Regards
Brijendra Pandey


Pavlina
Telerik team
 answered on 07 Aug 2009
1 answer
86 views

In a popup window using RadWindowManager I have a RadAjaxPane and a RadTreeView containing a RadTreeViewContextMenu.
When i click any RadMenuItem nothing happens - no post back.

Click any RadMenuItem a second or more times post back occurs.
What could be causing the first postback not to work.

Take away ajax panel and no problems with postback

Pavlina
Telerik team
 answered on 07 Aug 2009
2 answers
155 views
Hi,
I trying to let users to delete files from subfolders but Only root level files are deletable. This is my code,


**********
string p1 = "~/Reports";
string p2 = p1 + "/Images";
string p3 = p1 + "/Documents";
var PathsRoot = new[] {p1};
var PathsAll = new[] { p1,p2,p3 };
RadFileExplorer1.Configuration.ViewPaths = PathsRoot;
RadFileExplorer1.Configuration.UploadPaths = PathsAll;
RadFileExplorer1.Configuration.DeletePaths = PathsAll;
***************

if i use "PathsAll" for ViewPaths the RadFile Explorer shows 2 Images folder and 2 Documents folder.
How can i let users to delete files from subfolders ?

 

 

 

 

onur
Top achievements
Rank 1
 answered on 07 Aug 2009
2 answers
192 views
hi...
i  have a problem with Rad rotator (image gallery).
When i click an image, at first the page post back and then the image is seen above.
But in your example when i click the image, image is seen above without page doesn't  post back.

the same thing happens when i click "ok" button for update the image's detail.

the client side code: 
<%@ Page Title="" Language="C#" MasterPageFile="homepage.master" AutoEventWireup="true" CodeFile="photo.aspx.cs" Inherits="pages_photo" %> 
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
 
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">  
 
<link type="text/css" rel="Stylesheet" href="../ClientFiles/css/gallery.css" /> 
 
<style type="text/css">  
 
.itemTemplate  
 
{  
 
text-align:center;  
 
padding:20px;  
 
border: solid 1px #dddddd !important;  
 
}  
 
</style> 
 
 
</asp:Content> 
 
 
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">  
<table width="100%" cellpadding="0" cellspacing="0">  
<tr> 
            <td> 
                <table width="100%">  
                    <tr> 
                        <td> 
                            <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="LoadingPanel1">  
                                <AjaxSettings> 
                                    <telerik:AjaxSetting AjaxControlID="thumbRotator">  
                                        <UpdatedControls> 
                                            <telerik:AjaxUpdatedControl ControlID="imagePreview" /> 
                                            <telerik:AjaxUpdatedControl ControlID="detailsPanel" /> 
                                        </UpdatedControls> 
                                    </telerik:AjaxSetting> 
                                    <telerik:AjaxSetting AjaxControlID="UpdateButton">  
                                        <UpdatedControls> 
                                            <telerik:AjaxUpdatedControl ControlID="detailsPanel" /> 
                                        </UpdatedControls> 
                                    </telerik:AjaxSetting> 
                                </AjaxSettings> 
                            </telerik:RadAjaxManager> 
                            <telerik:RadAjaxLoadingPanel ID="LoadingPanel1" runat="server" Skin="Default" Transparency="30" 
                                BackColor="#E0E0E0">  
                                <img src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>' 
                                alt="Loading..." style="border: 0;" /> 
                            </telerik:RadAjaxLoadingPanel> 
                            <table id="tblGallery" width="683" cellpadding="0" cellspacing="0" border="0" runat="server" > 
                                <tr> 
                                    <%--<td style="height: 22px">  
                                        <img src="../ClientFiles/resimler/imagegallery/White.gif" height="22" width="60" alt="" style="float: left;" /> 
                                    </td>--%> 
                                    <td style="height: 22px">  
                                        <img src="../ClientFiles/resimler/imagegallery/cornerLeftTop.gif" height="22" width="50" alt="" style="float: left;" /> 
                                    </td> 
                                    <td style="height: 22px">  
                                        <img src="../ClientFiles/resimler/imagegallery/topLeft.gif" height="22" width="292" alt="" style="float: left;" /> 
                                    </td> 
                                    <td style="height: 22px">  
                                        <img src="../ClientFiles/resimler/imagegallery/topRight.gif" height="22" width="280" alt="" style="float: left;" /> 
                                    </td> 
                                    <td style="height: 22px">  
                                        <img src="../ClientFiles/resimler/imagegallery/cornerRightTop.gif" height="22" width="62" alt="" style="float: left;" /> 
                                    </td> 
                                </tr> 
                                <tr style="vertical-align:middle;">  
                                    <%--<td> 
                                        <img src="../ClientFiles/resimler/imagegallery/whiteMiddle.gif" height="243" width="60" alt="" style="float: left;" /> 
                                    </td>--%> 
                                    <td> 
                                        <img src="../ClientFiles/resimler/imagegallery/leftFrame.gif" height="243" width="50" alt="" style="float: left;" /> 
                                    </td> 
                                    <td class="previewPane" style="vertical-align:top;">  
                                        <div style="margin-top: 20px">  
                                            <%--<asp:Image ID="imagePreview2" runat="server" ImageUrl="../ClientFiles/resimler/imagegallery/spacer.gif" Height="192px" 
                                                Width="272px" AlternateText="preview" BorderWidth="0">  
                                            </asp:Image>--%> 
                                            <img id="imagePreview" name="imagePreview" runat="server" onclick="window.open(imagePreview.src);" src="../ClientFiles/resimler/imagegallery/spacer.gif" height="192" 
                                                width="272" title="preview" style="border-width:0"/>  
                                        </div> 
                                    </td> 
                                    <td class="infoPane" style="vertical-align:top;">  
                                        <div class="infoPaneBg" runat="server" id="detailsPanel">  
                                            <div class="imageDetailsHeader">  
                                                Resim detayları: </div> 
                                            <div id="viewPanel">  
                                                <div class="details">  
                                                    <input type="hidden" ID='hdnImageID' runat="server" /> 
                                                </div> 
                                                <div class="details">  
                                                    <strong>İsim:</strong>&nbsp;  
                                                    <asp:Label ID="labelImageName" runat="server"></asp:Label> 
                                                </div> 
                                                <div class="details">  
                                                    <strong>Resim Adı:</strong>&nbsp;  
                                                    <asp:Label ID="labelImageKeywords" runat="server"></asp:Label> 
                                                </div> 
                                                <div class="details">  
                                                    <strong>Açıklama:</strong>&nbsp;  
                                                    <asp:Label ID="labelImageComments" runat="server"></asp:Label> 
                                                </div> 
                                                <div id="divUpdateButton" class="details" style="margin-top: 5px; margin-left: 28px" runat="server">  
                                                    <a href="javascript:buttonEditClicked();">  
                                                        <img style="border-top-style: none; border-right-style: none; border-left-style: none;  
                                                            border-bottom-style: none" height="21" alt="" src="../ClientFiles/resimler/imagegallery/editBtn.gif" width="60" /></a>  
                                                </div> 
                                            </div> 
                                            <div style="display: none" id="editPanel">  
                                                <div class="details">  
                                                    <strong>İsim:</strong>&nbsp;  
                                                    <asp:TextBox ID="textImageName" runat="server" CssClass="detailsTxtBox"></asp:TextBox> 
                                                </div> 
                                                <div class="details">  
                                                    <strong>Resim Adı:</strong>&nbsp;  
                                                    <asp:TextBox ID="textImageKeywords" runat="server" CssClass="detailsTxtBox"></asp:TextBox> 
                                                </div> 
                                                <div class="details">  
                                                    <strong>Açıklama:</strong>&nbsp;  
                                                    <asp:TextBox ID="textImageComments" runat="server" CssClass="detailsTxtBox"></asp:TextBox> 
                                                </div> 
                                                <div class="details">  
                                                    &nbsp;<asp:LinkButton CssClass="editBtns" ID="UpdateButton" runat="Server" OnClick="UpdateButton_Click">OK</asp:LinkButton> <a class="editBtns" 
                                                        href="javascript:buttonCancelClicked();">Cancel</a> 
                                                </div> 
                                            </div> 
                                        </div> 
                                    </td> 
                                    <td> 
                                        <img src="../ClientFiles/resimler/imagegallery/rightFrame.gif" height="243" width="62" alt="" style="float: left;" /> 
                                    </td> 
                                </tr> 
                                <tr> 
                                    <%--<td> 
                                        <img src="../ClientFiles/resimler/imagegallery/whiteShadow.gif" height="117" width="60" alt="" /> 
                                    </td>--%> 
                                    <td> 
                                        <img src="../ClientFiles/resimler/imagegallery/left.gif" id="img_left" height="117" width="50" alt="" style="cursor: pointer" /> 
                                    </td> 
                                    <td colspan="2" class="thumbsViewer">  
                                        <telerik:RadRotator ID="thumbRotator" runat="server" RotatorType="ButtonsOver" Width="572" 
                                            Height="118px" ItemHeight="118" ItemWidth="145" FrameDuration="1"   
                                            ScrollDirection="Left,Right" OnItemClick="ShowImage">  
                                            <ItemTemplate> 
                                                <div class="itemTemplate">  
                                                    <img src='<%# DataBinder.Eval(Container.DataItem, "Image") %>' width='90px' alt='gallery image' 
                                                        class="RotatorImage" /><br /> 
                                                    <%# DataBinder.Eval(Container.DataItem, "Name")%> 
                                                </div> 
                                            </ItemTemplate> 
                                            <ControlButtons  LeftButtonID="img_left" RightButtonID="img_right" /> 
                                        </telerik:RadRotator> 
                                    </td> 
                                    <td> 
                                        <img src="../ClientFiles/resimler/imagegallery/right.gif" id="img_right" height="117" width="62" alt="" style="cursor: pointer" /> 
                                    </td> 
                                </tr> 
                            </table> 
                            <telerik:RadCodeBlock ID="rcb1" runat="Server">  
                                <script type="text/javascript">  
                                    function buttonEditClicked()  
                                    {  
                                        var panelViewImage = $get("viewPanel");  
                                        panelViewImage.style.display = "none";  
                                        var panelEditImage = $get("editPanel");  
                                        panelEditImage.style.display = "block";  
                                    }  
                                    function buttonCancelClicked()  
                                    {  
                                        var panelViewImage = $get("viewPanel");  
                                        panelViewImage.style.display = "block";  
                                        var panelEditImage = $get("editPanel");  
                                        panelEditImage.style.display = "none";  
                                    }  
                                </script> 
                            </telerik:RadCodeBlock> 
                            <%--<div id="divPagePhoto" runat="server"></div>--%> 
                        </td> 
                    </tr> 
                </table> 
            </td> 
        </tr> 
</table> 
</asp:Content> 
 
Fiko
Telerik team
 answered on 07 Aug 2009
1 answer
76 views
Can anyone tell me how can I select multiple slots in RadScheduler?

Thank you.
Peter
Telerik team
 answered on 07 Aug 2009
2 answers
112 views
I used your TabStrip > Application Scenarios > LoadOnDemand example. I have a grid with an item_command that is being fired by a button in a user control, but the item command is never firing. How do I fix this?

User Control:

            <telerik:RadGrid ID="RadGrid1" GridLines="None" runat="server" AllowSorting="true" 
                ShowStatusBar="true" PageSize="25" AllowPaging="True" AutoGenerateColumns="False" 
                AllowMultiRowSelection="false" OnPreRender="RadGrid1_PreRender" OnItemCommand="RadGrid1_ItemCommand">  
                <PagerStyle Mode="NextPrevAndNumeric" /> 
                <MasterTableView Width="100%" HorizontalAlign="NotSet" AutoGenerateColumns="False" DataKeyNames="ID">  
                    <Columns> 
                        <telerik:GridBoundColumn DataField="ID" UniqueName="ID" Visible="false" /> 
                        <telerik:GridButtonColumn ButtonType="ImageButton" ImageUrl="~/images/icon_page_magnify.gif" HeaderText="Select" UniqueName="Select" CommandName="Select" ItemStyle-Width="18px" ItemStyle-CssClass="cursorPointer" /> 
 
        protected void RadGrid1_ItemCommand(object source, GridCommandEventArgs e)  
        {  
            if (e.CommandName.ToUpper() == "SELECT")  
            {  
                int iID = Convert.ToInt32(e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["ID"]);  
                DisplayDetails(iID);  
            }  
        }  
 
Sebastian
Telerik team
 answered on 07 Aug 2009
3 answers
178 views
Hi,

I have a Grid on a page in which i have done grouping on two columns.

On each row i open a context menu (rad Menu) containing 4 items.

My issue is that when a grouping in the grid have less than 4 Rows, then the RadMenu doesnt render properly.

It shows only 1 or 2 items and rest arent shown.

please let me know if you have a solution.

My RadMenu markup is as follows:

<

 

rad:RadMenu ID="RadMenu1" IsContext="True" runat="server" Skin="Outlook" ContextMenuElementID="none"

 

 

CausesValidation="False" OnClientItemClicking="OnClientItemClicking" OnItemClick="RadMenu1_ItemClick">

 

 

<Items>

 

 

<rad:RadMenuItem ID="RadMenuItem1" Text="View User" Value="UserStatus" runat="server" />

 

 

<rad:RadMenuItem ID="RadMenuItem2" Text="Change Asset Status" Value="ChangeAssetStatus"

 

 

runat="server" />

 

 

<rad:RadMenuItem ID="RadMenuItem8" Text="View System" Value="ViewSystem" runat="server" />

 

 

<rad:RadMenuItem ID="RadMenuItem3" runat="server" Text="Change This Asset Status To"

 

 

Value="ChangeThisStatus">

 

 

<Items>

 

 

<rad:RadMenuItem ID="RadMenuItem4" runat="server" Text="Available">

 

 

</rad:RadMenuItem>

 

 

<rad:RadMenuItem ID="RadMenuItem5" runat="server" Text="Occupied">

 

 

</rad:RadMenuItem>

 

 

<rad:RadMenuItem ID="RadMenuItem6" runat="server" Text="To be Available">

 

 

</rad:RadMenuItem>

 

 

<rad:RadMenuItem ID="RadMenuItem7" runat="server" Text="Not Working">

 

 

</rad:RadMenuItem>

 

 

</Items>

 

 

</rad:RadMenuItem>

 

 

</Items>

 

 

</rad:RadMenu>

 



Thanks in advance.
Schlurk
Top achievements
Rank 2
 answered on 07 Aug 2009
6 answers
210 views
Hello,

Problem
I'm having problems with embedding .SWF files into the RadEditor (version 5.4.1.0).

Situation
I'm able to pick a flash object and insert it into the Fieldcontrol. But the .SWF doesn't render in DISPLAY mode. When I go back into EDIT mode - the .SWF is being rendered correctly.

When I take a look with the IE developer toolbar I noticed that the OBJECT is encoded in a PRE element with RadEditorEncodedTag and "display:none".

What I've already tried?
- Added <property name="AllowScripts">True</property> in the ConfigFile.xml
- Added AllowSpecialTags attribute to the RadHtmlField like this...

<Telerik:RadHtmlField id="BasicContentNL" FieldName="BasicContentNL" DisplayWidth="100%" ConfigFile="/_layouts/FostPlusCW/RadEditor/ConfigFile.xml" ToolsFile="/_layouts/FostPlusCW/RadEditor/ToolsFile.xml" AllowSpecialTags="true" runat="server"></Telerik:RadHtmlField>

Information
- I'm using the RadHtml publishing Fieldcontrol
- MOSS Publishing environment
- IE7
Gil Canare
Top achievements
Rank 1
 answered on 07 Aug 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?