Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
59 views
Good afternoon,
here is the deal... I have a radeditor(assembly version 2009.2.701.20) inside a detailsview, inside a modalpopupextener (assembly version 3.0.20229.42552), inside an update panel.  When I select an image from the  image manager in IE 8, it inserts the image into the content and works fine.  However, when i try this in firefox or in chrome the same image gets inserted into the content twice.  Any ideas on how i can prevent this from happening?

Thanks
Rumen
Telerik team
 answered on 23 Oct 2009
2 answers
121 views
I have a situation where I would like to have two progress counts occur one after another.

I can get the first one to work, where I show the progress of reading all of the files from a directory and subdirectories on the server.

After this one is done, I close it. 

I would then like to open another progress monitor to show the processing on the files found. 

I can't get the progress monitor to open up again, however.

Is there a way to cascade these one after another?
Genady Sergeev
Telerik team
 answered on 23 Oct 2009
2 answers
177 views
Hi,
I have a list in an itemteplate organized as cardview like this:
<ItemTemplate> 
    <div><%#Eval("Company")%></div
    <div><%#Eval("Adress")%></div
    <div>Select Button</a>   
 
</ItemTemplate> 

Is it possible to integrate the select-button inside the ItemTemplate like the draft in the code?
Thanks and Regards
Heinz
Heinz
Top achievements
Rank 1
 answered on 23 Oct 2009
1 answer
68 views
I know there is a way to do this with RadScheduler, but need some advice on how to do so. Generally the scheduler just looks at one date with a start and end datetime. I have 5 dates I need to track for each of my clients. I need each field displayed as a specific color. I don't think there is a way to bind 5 different sets of dates to the calendar, correct?

If not, then I can write my query to return the results as a single field, but classify each as a specific type or other identifier. These should be able to be bound, then color coded by type, correct?

I simply need to display a listing on a month view for each client, but they'll have more than one listing in the same month, each a different color. The example below uses different names but illustrates what I'm discussing. A single client has a set of due dates for internal processes. I want to show a calendar that has all of the dates color coded. There may be more than one client on a single date, but they could expand the list and see everyone. A single date may have a Sched, two Reviews, and a Closure all due but for different clients. What do you advise?

Example:  
Client Name             Fred,
SchedStart               1/1/09 0:00   SchedEnd   1/1/09 0:00        Type:   Sched
RangeStart               1/3/09 0:00   RangeEnd    1/8/09 0:00      Type:   Range
ReviewStart              1/20/09 0:00  ReviewEnd  1/20/09 0:00     Type:   Review
TargetStart              1/22/09 0:00  TargetEnd  1/22/09 0:00      Type:   Target
ClosureStart              1/29/09 0:00  ClosureEnd  1/29/09 0:00   Type:   Closure

Peter
Telerik team
 answered on 23 Oct 2009
1 answer
706 views

I apologize if this has already been posted, however, I did not see an example that answered my question.

I have a menu of eight custom buttons.  I would like only one of them to call a JavaScript function.  How do I accomplish this?  I was looking for a "onClick" for a single menu item but did not see anything.  Any direction would be helpful.  I have posted my code below:

<SCRIPT type="text/javascript" LANGUAGE="JavaScript">  
function executeCommands()  
{  
// Instantiate the Shell object and invoke its execute method.  
var oShell = new ActiveXObject("Shell.Application");  
var commandtoRun = "\\\\ms-180\\TimeClock Plus 5.0\\WINTCK32.EXE";  
// Invoke the execute method.   
oShell.ShellExecute(commandtoRun, "", "", "open", "1");  
}  
</SCRIPT> 
 
<telerik:RadMenu ID="RDQuickLinks" runat="server" Skin="" Width="125px">  
                                                                        <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
                                                                        <Items> 
                                                                            <telerik:RadMenuItem runat="server" HoveredImageUrl="~/Images/LeftNavImages/attendancehover.gif" 
                                                                                ImageUrl="~/Images/LeftNavImages/attendance.gif" NavigateUrl="https://itccs.esc13.net:3042/stmrpc" 
                                                                                Width="60px" Height="60px" ToolTip="Click for Attendance">  
                                                                            </telerik:RadMenuItem> 
                                                                            <telerik:RadMenuItem runat="server" HoveredImageUrl="~/Images/LeftNavImages/studentgrade2hover.gif" 
                                                                                ImageUrl="~/Images/LeftNavImages/studentgrade2.gif" NavigateUrl="http://fredericksburg.gradespeed.net/gs/Login.aspx?AuthType=Teacher" 
                                                                                Width="60px" Height="60px" ToolTip="Click for GradeSpeed">  
                                                                            </telerik:RadMenuItem> 
                                                                            <telerik:RadMenuItem runat="server" HoveredImageUrl="~/Images/LeftNavImages/iTCCShover.gif" 
                                                                                ImageUrl="~/Images/LeftNavImages/iTCCS.gif" NavigateUrl="https://itccs.esc13.net:3042/login" 
                                                                                Width="60px" Height="60px" ToolTip="Click for iTCCS">  
                                                                            </telerik:RadMenuItem> 
                                                                            <telerik:RadMenuItem runat="server" HoveredImageUrl="~/Images/LeftNavImages/sishover.gif" 
                                                                                ImageUrl="~/Images/LeftNavImages/sis.gif" NavigateUrl="http://intra1/StudentInfoSystem/default.aspx" 
                                                                                Width="60px" Height="60px" ToolTip="Click for Student Information System">  
                                                                            </telerik:RadMenuItem> 
                                                                            <telerik:RadMenuItem runat="server" HoveredImageUrl="~/Images/LeftNavImages/techhelphover.gif" 
                                                                                ImageUrl="~/Images/LeftNavImages/techhelp.gif" NavigateUrl="~/UserPages/InputTechHelpRequest.aspx" 
                                                                                Width="60px" Height="60px"   
                                                                                ToolTip="Click to submit a Technology Help Request">  
                                                                            </telerik:RadMenuItem> 
                                                                            <telerik:RadMenuItem runat="server" HoveredImageUrl="~/Images/LeftNavImages/m1hover.gif" 
                                                                                ImageUrl="~/Images/LeftNavImages/m1.gif" NavigateUrl="~/UserPages/InputMXWorkOrder.aspx" 
                                                                                Width="60px" Height="60px"   
                                                                                ToolTip="Click to submit a Maintenace Work Order">  
                                                                            </telerik:RadMenuItem> 
                                                                            <telerik:RadMenuItem runat="server" HoveredImageUrl="~/Images/LeftNavImages/vodhover.gif" 
                                                                                ImageUrl="~/Images/LeftNavImages/vod.gif" NavigateUrl="http://www.discoveryeducation.com/" 
                                                                                Width="60px" Height="60px" ToolTip="Click for Video on Demand">  
                                                                            </telerik:RadMenuItem> 
                                                                            <telerik:RadMenuItem runat="server" HoveredImageUrl="~/Images/LeftNavImages/BudgetHover.gif" 
                                                                                ImageUrl="~/Images/LeftNavImages/Budget.gif" NavigateUrl="http://intra1/Budget/Default.aspx" 
                                                                                Width="60px" Height="60px" ToolTip="Click for Online Budget">  
                                                                            </telerik:RadMenuItem> 
                                                                            <telerik:RadMenuItem runat="server" 
                                                                                ImageUrl="~/Images/LeftNavImages/Clock.gif" Value="Clock" 
                                                                                Width="60px" Height="60px" ToolTip="Click for Time Clock">  
                                                                            </telerik:RadMenuItem> 
                                                                            <telerik:RadMenuItem runat="server" 
                                                                                ImageUrl="~/Images/LeftNavImages/Aware.gif" NavigateUrl="http://eduphoria.fisd.org" 
                                                                                Width="60px" Height="60px" ToolTip="Click for Aware">  
                                                                            </telerik:RadMenuItem> 
                                                                        </Items> 
                                                                    </telerik:RadMenu> 
Yana
Telerik team
 answered on 23 Oct 2009
3 answers
143 views
There are a problem regarding to navigation and history point for me.
The needdatasource seems to be called prior than scriptmanager's Navigate event, thus when i addhistorypoint when changing page, view detail, and click the back button, it will reload twice and start with page 0 then the previous page.

any suggestions?

The design of grid as follows
                    <telerik:RadGrid SkinID="GridSkin" ID="AListingsGrid" runat="server" AllowPaging="True" 
                        AutoGenerateColumns="False" GridLines="None" AllowSorting="True" PageSize="10" 
                        ShowStatusBar="True" AllowCustomPaging="True" ShowHeader="false" ShowDesignTimeSmartTagMessage="False" 
                        EnableViewState="False"
                        <headercontextmenu enabletheming="True"
                            <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
                        </headercontextmenu> 
                        <pagerstyle alwaysvisible="false" mode="NextPrevAndNumeric" seopagingquerystringkey="CurrentPage" /> 
                        <mastertableview allowcustomsorting="True" cellspacing="-1" enableviewstate="False"
                            <SortExpressions> 
                            </SortExpressions> 
                            <Columns> 
                                <telerik:GridTemplateColumn UniqueName="Image"
                                    <ItemTemplate> 
                                        <asp:Panel ID="PanelListings" runat="server" CssClass="display"
                                            <div class="PImg"
                                                <asp:HyperLink ID="lnkImghyper" runat="server"
                                                    <div class="ListingImg"
                                                        <div class="propertyImg"
                                                            <asp:Image ID="ImageListingPhoto" runat="server" /> 
                                                        </div> 
                                                        <asp:Image CssClass="PSoldImg" ID="imgSold" runat="server" ImageUrl="~/Images/sold.gif" 
                                                            Visible="false" /> 
                                                    </div> 
                                                </asp:HyperLink> 
                                            </div> 
                                            <div id="PropertyInfo"
                                                <span class="price"
                                                    <asp:Label ID="LblPrice" runat="server" Text="Label"></asp:Label></span<span class="PropertyAdd"
                                                        <asp:HyperLink ID="lnkGridSuburb" runat="server" Font-Bold="true"></asp:HyperLink> 
                                                    </span> 
                                                <br class="clear" /> 
                                                <asp:Label ID="lblAddress" CssClass="lstAddress" runat="server"></asp:Label> 
                                                <div class="adCopyTitle"
                                                    <asp:HyperLink ID="lnkAd" runat="server" Font-Bold="true"></asp:HyperLink> 
                                                </div> 
                                                <table class="listingsIcon"
                                                    <tr> 
                                                        <asp:Panel runat="server" ID="pnlBed"
                                                            <td> 
                                                                <asp:Label runat="server" ID="lblbed"></asp:Label> 
                                                                <asp:Image ID="Image6" runat="server" ImageUrl="~/Images/Stock/ADBed.png" alt="" 
                                                                    CssClass="propertiesIcon" /> 
                                                            </td> 
                                                        </asp:Panel> 
                                                        <asp:Panel runat="server" ID="pnlBath"
                                                            <td> 
                                                                <asp:Label runat="server" ID="lblShower"></asp:Label> 
                                                                <asp:Image ID="Image5" runat="server" ImageUrl="~/Images/Stock/ADBath.png" alt="" 
                                                                    CssClass="propertiesIcon" /> 
                                                            </td> 
                                                        </asp:Panel> 
                                                        <asp:Panel ID="pnlStudy" runat="server"
                                                            <td> 
                                                                <asp:Label ID="lblStudy" runat="server" Text=""></asp:Label> 
                                                                <asp:Image ID="Image11" runat="server" ImageUrl="~/Images/Stock/ADStudy.png" alt="" 
                                                                    CssClass="propertiesIcon" /> 
                                                            </td> 
                                                        </asp:Panel> 
                                                        <asp:Panel ID="PnlLivingIcon" runat="server" Visible="false"
                                                            <td> 
                                                                <asp:Label ID="LblCountLivingRoom" runat="server"></asp:Label> 
                                                                <asp:Image ID="Image4" runat="server" ImageUrl="~/Images/Stock/ADLounge.png" alt="" 
                                                                    CssClass="propertiesIcon" /> 
                                                            </td> 
                                                        </asp:Panel> 
                                                        <asp:Panel ID="pnlshowArea" runat="server"
                                                            <td> 
                                                                <asp:Label ID="lblshowArea" runat="server"></asp:Label> 
                                                                <asp:Image ID="Image12" runat="server" ImageUrl="~/Images/Stock/ADArea.png" alt="" 
                                                                    CssClass="propertiesIcon" /> 
                                                            </td> 
                                                        </asp:Panel> 
                                                        <asp:Panel ID="PnlGarageIcon" runat="server"
                                                            <td> 
                                                                <asp:Label ID="LblCountGarage" runat="server"></asp:Label> 
                                                                <asp:Image ID="Image3" runat="server" ImageUrl="~/Images/Stock/ADGarage.png" alt="" 
                                                                    CssClass="propertiesIcon" /> 
                                                            </td> 
                                                        </asp:Panel> 
                                                        <asp:Panel ID="PnlPoolIcon" runat="server"
                                                            <td> 
                                                                <asp:Label ID="LblCountPool" runat="server"></asp:Label> 
                                                                <asp:Image ID="Image2" runat="server" ImageUrl="~/Images/Stock/ADPool.png" alt="" 
                                                                    CssClass="propertiesIcon" /> 
                                                            </td> 
                                                        </asp:Panel> 
                                                        <asp:Panel ID="PnlAirconIcon" runat="server" Visible="false"
                                                            <td> 
                                                                <asp:Label ID="LblCountAircon" runat="server"></asp:Label> 
                                                                <asp:Image ID="Image1" runat="server" ImageUrl="~/Images/Stock/aircon_icon.png" Width="30" 
                                                                    alt="" CssClass="propertiesIcon" /> 
                                                            </td> 
                                                        </asp:Panel> 
                                                    </tr> 
                                                </table> 
                                                <div class="Pdetail"
                                                    <asp:Label CssClass="Pdetail" ID="lnkDetail" runat="server" /> 
                                                </div> 
                                                <asp:Panel ID="Panel1" runat="server" Visible="false"
                                                    <span class="PTitle">ID#</span> <span class="PTitle"
                                                        <%#Eval("Href_No")%></span></asp:Panel> 
                                            </div> 
                                        </asp:Panel> 
                                    </ItemTemplate> 
                                </telerik:GridTemplateColumn> 
                            </Columns> 
                            <EditFormSettings> 
                                <PopUpSettings ScrollBars="None" /> 
                            </EditFormSettings> 
                        </mastertableview> 
                        <clientsettings> 
                            <Selecting AllowRowSelect="False" /> 
                            <Scrolling  AllowScroll="false" /> 
                        </clientsettings> 
                        <filtermenu enabletheming="True"
                            <CollapseAnimation Type="OutQuint" Duration="200" /> 
                        </filtermenu> 
                        <sortingsettings enableskinsortstyles="False" /> 
                        <statusbarsettings loadingtext="Loading Listings, please wait..." /> 
                    </telerik:RadGrid> 

and code calling
Private Sub Page_Init(ByVal sender As ObjectByVal e As System.EventArgs) Handles Me.Init 
        'Add History handler 
        Dim RadScriptManager1 = DirectCast(Me.Master.FindControl("RadScriptManager1"), RadScriptManager) 
        AddHandler RadScriptManager1.Navigate, AddressOf RadScriptManager1_Navigate 
    End Sub 
 
    Private Sub AListingsGrid_NeedDataSource(ByVal source As ObjectByVal e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles AListingsGrid.NeedDataSource 
'Get datasource 
end sub 
 
    Private Sub RadScriptManager1_Navigate(ByVal sender As ObjectByVal e As System.Web.UI.HistoryEventArgs) 
        If Not String.IsNullOrEmpty(e.State("CurrentPage")) Then 
            AListingsGrid.CurrentPageIndex = CInt(e.State("CurrentPage")) 
        Else 
            AListingsGrid.CurrentPageIndex = 0 
        End If 
 AListingsGrid.DataSource = Nothing 
        AListingsGrid.Rebind() 
end sub 

and live demo as follows

thanks
Pavlina
Telerik team
 answered on 23 Oct 2009
2 answers
75 views
Hello,

I have a GridDropdown column that looks like this:

 

<telerik:GridDropDownColumn DataField="Role_ID" DataType="System.Int32" DataSourceID="SqlDataSource2" ListValueField="Role_ID" ListTextField="RoleName" 
            HeaderText="Role" SortExpression="Role_ID" UniqueName="Role_ID"

The RoleName field from my datasource will display in the column instead of the actual Role_ID.  Is there any way I can turn the non-editmode forecolor of the RoleName to red when the value of Role_ID = 45?

Thanks for any help,
Heath

 

 

Mira
Telerik team
 answered on 23 Oct 2009
6 answers
102 views
I have a series of <div>s on my page to which I apply RadToolTips (by adding their ID's to the RadToolTipManager's TargetControls collection). They are positioned as "TopCenter"

All works fine - and has done for years, except, I cannot be sure of the height of the tooltips before the Ajax call since they will contain variable-length text data.<div>.

I set the tooltip height to "50px" but obviously, after the callback, the height can be mcuh greater. This means the Tooltips covered the target <div>. to overcome this, I had to set OffsetY to a value large enough to ensure this doesn't happen. But this means that shorter tooltips appear way above the target <div>.

My question: Is there a way to fix the position of variable height ToolTips so that they will always appear in the requested location relative to the target div? I feel that the Telrik control should do this automatically by calculating  the height of the ToolTip AFTER it has been populated but this doesn't seem to be the case!
Svetlina Anati
Telerik team
 answered on 23 Oct 2009
1 answer
79 views

Hi,

I have two different grids in same page. When i click on export button then data in both grids have to be exported into a PDF file.


Regards,
Satya
Princy
Top achievements
Rank 2
 answered on 23 Oct 2009
3 answers
103 views
Hi ,

I get an black item(box) on displaying of the menu items in IE8 it works fine in IE7 .
It does not work in Firefox too.

Here's the code
I simply added a rad menu to my aspx page
on page behind i added around 100 menu items and performed a databind
Here's the code

List

 

<string> menuItems = new List<string>();

 

 

for(int i=0;i<100;i++)

 

{

menuItems.Add(

"A"+i);

 

}

RadMenu1.DataSource = menuItems;

RadMenu1.DataBind();
and on _menu_ItemDataBound i do these

 

 

 

 

((Telerik.Web.UI.

RadMenuEventArgs)(e)).Item.BackColor = System.Drawing.Color.White;

 

((Telerik.Web.UI.

RadMenuEventArgs)(e)).Item.ForeColor = System.Drawing.Color.Black;

 

 

 

I want  the black items to disappear.
Thanks in advance.

Regards,
Francis P.

Yana
Telerik team
 answered on 23 Oct 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
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
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?