Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
186 views
My contextmenu icons are missing or distorted somehow, I use the same icon set for my custom toolbar with out any problems.  I believe the url to the icons to be correct since it works for the custom tool bar.  See attached image for example of appearance, also embedded is c# to create and css "toolfile".  I am using version 2010.3.1109.40 of Telerik.Web.UI.  Thanks in advance for any thoughts on the issue.

Create instance in code behind;
...
                    /*
                     * Standard users have no need of context menus
                     */
                    RadEditor1.ContextMenus.Clear();
 
                    /*
                     * Add the edit personal note
                     */
                    EditorContextMenu ecm = new EditorContextMenu();
                    ecm.TagName = "IMG";
                    //add specific tools to the context menu
                    EditorTool et = new EditorTool("Edit_Personal_Note");
                    ecm.Tools.Add(et);
                    //add the newly created context menu to the context menu collection
                    RadEditor1.ContextMenus.Add(ecm);
 
                    /*
                     * Add the delete personal note
                     */
                    et = new EditorTool("Delete_Personal_Note");
                    ecm.Tools.Add(et);
                    //add the newly created context menu to the context menu collection
                    RadEditor1.ContextMenus.Add(ecm);
...

/*
 * Editor Tool Bar
 */
.reTool .Personal_Notes
{
    background-image: url(../../images/PersonalNotes.gif);
    background-position: center !important;
    background-repeat: no-repeat !important;
}
.reTool .Edit_Personal_Note
{
    background-image: url(../../images/Edit_Personal_Note.gif);
    background-position: center !important;
    background-repeat: no-repeat !important;
}
.reTool .Delete_Personal_Note
{
    background-image: url(../../images/DeletePersonalNote.gif);
    background-position: center !important;
    background-repeat: no-repeat !important;
}
.reTool .Public_Notes
{
    background-image: url(../../images/PublicNotes.gif);
    background-position: center !important;
    background-repeat: no-repeat !important;
}
/*
 * Context Menu Tool bar (Note that path is same as for toolbar above and the toolbar works
 */
.Edit_Personal_Note
{
    background-image: url(../../images/Edit_Personal_Note.gif);
    background-position: center !important;
    background-repeat: no-repeat !important;
}
.Delete_Personal_Note
{
    background-image: url(../../images/DeletePersonalNote.gif);
    background-position: center !important;
    background-repeat: no-repeat !important;
}
John
Top achievements
Rank 1
 answered on 30 Dec 2010
4 answers
154 views

I have been unable to successfully override the Times New Roman font in my PDF.
A screen shot of the PDF is attached.

Here is my raw HTML showing the newly applied styles but the font family, arial, is not getting applied to the PDF!

<table cellspacing="0" border="0" id="RadGridSearchResults_ctl00" style="width:100%;table-layout:auto;empty-cells:show;">
    <colgroup>
        <col style="width:75px" />
        <col style="width:75px" />
        <col style="width:150px" />
        <col style="width:75px" />
        <col style="width:100px" />
        <col  />
    </colgroup>
<thead>
        <tr style="background-color:WhiteSmoke;border-bottom-style:solid;border-bottom-width:1.5px;border-bottom-color:LightGrey;height:50px;">
            <th scope="col" style="font-weight:bold;font-family:arial;">Title Nbr</th><th scope="col" style="font-weight:bold;font-family:arial;">Reg Date</th><th scope="col" style="font-weight:bold;font-family:arial;">Type</th><th scope="col" style="font-weight:bold;font-family:arial;">Linc Nbr</th><th scope="col" style="font-weight:bold;font-family:arial;">Short Legal</th><th scope="col" style="font-weight:bold;font-family:arial;">Owner</th>
        </tr>
    </thead><tbody>
    <tr style="background-color:White;">
        <td style="text-align:left;vertical-align:middle;font-size:8pt;font-family:arial;">001013760</td><td style="text-align:left;vertical-align:middle;font-size:8pt;font-family:arial;">
                    2000-01-14
                </td><td style="text-align:left;vertical-align:middle;font-size:8pt;font-family:arial;">
                    NOTIFICATION (RD ABAND=CREATE TITLE)
                </td><td style="text-align:left;vertical-align:middle;font-size:8pt;font-family:arial;">
                    0028274538
                </td><td style="text-align:left;vertical-align:middle;font-size:8pt;font-family:arial;">
                    0010083;A
                </td><td style="text-align:left;vertical-align:middle;font-size:8pt;font-family:arial;">
                    THE TOWN OF REDCLIFF.
                </td>
    </tr><tr style="background-color:WhiteSmoke;">
        <td style="text-align:left;vertical-align:middle;font-size:8pt;font-family:arial;">001083587</td><td style="text-align:left;vertical-align:middle;font-size:8pt;font-family:arial;">
                    2000-03-31
                </td><td style="text-align:left;vertical-align:middle;font-size:8pt;font-family:arial;">
                    SUBDIVISION PLAN
                </td><td style="text-align:left;vertical-align:middle;font-size:8pt;font-family:arial;">
                    0028344687
                </td><td style="text-align:left;vertical-align:middle;font-size:8pt;font-family:arial;">
                    0010742;1;11
                </td><td style="text-align:left;vertical-align:middle;font-size:8pt;font-family:arial;">
                    THE TOWN OF REDCLIFF.
                </td>
    </tr><tr style="background-color:White;">
        <td style="text-align:left;vertical-align:middle;font-size:8pt;font-family:arial;">001083587001</td><td style="text-align:left;vertical-align:middle;font-size:8pt;font-family:arial;">
                    2000-03-31
                </td><td style="text-align:left;vertical-align:middle;font-size:8pt;font-family:arial;">
                    SUBDIVISION PLAN
                </td><td style="text-align:left;vertical-align:middle;font-size:8pt;font-family:arial;">
                    0028344695
                </td><td style="text-align:left;vertical-align:middle;font-size:8pt;font-family:arial;">
                    0010742;1;14MR
                </td><td style="text-align:left;vertical-align:middle;font-size:8pt;font-family:arial;">
                    THE TOWN OF REDCLIFF.
                </td>
    </tr><tr style="background-color:WhiteSmoke;">
        <td style="text-align:left;vertical-align:middle;font-size:8pt;font-family:arial;">001083587002</td><td style="text-align:left;vertical-align:middle;font-size:8pt;font-family:arial;">
                    2000-03-31
                </td><td style="text-align:left;vertical-align:middle;font-size:8pt;font-family:arial;">
                    SUBDIVISION PLAN
                </td><td style="text-align:left;vertical-align:middle;font-size:8pt;font-family:arial;">
                    0028344703
                </td><td style="text-align:left;vertical-align:middle;font-size:8pt;font-family:arial;">
                    0010742;1;12
                </td><td style="text-align:left;vertical-align:middle;font-size:8pt;font-family:arial;">
                    THE TOWN OF REDCLIFF.
                </td>
    </tr><tr style="background-color:White;">
        <td style="text-align:left;vertical-align:middle;font-size:8pt;font-family:arial;">001083587003</td><td style="text-align:left;vertical-align:middle;font-size:8pt;font-family:arial;">
                    2000-03-31
                </td><td style="text-align:left;vertical-align:middle;font-size:8pt;font-family:arial;">
                    SUBDIVISION PLAN
                </td><td style="text-align:left;vertical-align:middle;font-size:8pt;font-family:arial;">
                    0028344711
                </td><td style="text-align:left;vertical-align:middle;font-size:8pt;font-family:arial;">
                    0010742;1;13
                </td><td style="text-align:left;vertical-align:middle;font-size:8pt;font-family:arial;">
                    THE TOWN OF REDCLIFF.
                </td>
    </tr><tr style="background-color:WhiteSmoke;">
        <td style="text-align:left;vertical-align:middle;font-size:8pt;font-family:arial;">041236280010</td><td style="text-align:left;vertical-align:middle;font-size:8pt;font-family:arial;">
                    2004-06-23
                </td><td style="text-align:left;vertical-align:middle;font-size:8pt;font-family:arial;">
                    SUBDIVISION PLAN
                </td><td style="text-align:left;vertical-align:middle;font-size:8pt;font-family:arial;">
                    0030537865
                </td><td style="text-align:left;vertical-align:middle;font-size:8pt;font-family:arial;">
                    0412179;10;1
                </td><td style="text-align:left;vertical-align:middle;font-size:8pt;font-family:arial;">
                    THE TOWN OF REDCLIFF.
                </td>
    </tr>
    </tbody>
  
</table>


Here is my code that is applying the styles. All of the styles work EXCEPT for the font-family style. How to fix?

protected void RadGridSearchResults_ItemCreated(object sender, GridItemEventArgs e)
{
    if (isPdfExport)
    {
        if (e.Item != null)
        {
            if (e.Item.ItemType == GridItemType.AlternatingItem)
            {
                e.Item.Style["background-color"] = "WhiteSmoke";
            }
            else
            {
                e.Item.Style["background-color"] = "White";
            }
            if (e.Item is GridHeaderItem)
            {
                var headerItem = (GridHeaderItem)e.Item;
                headerItem.Style["background-color"] = "WhiteSmoke";
                headerItem.Style["border-bottom-style"] = "solid";
                headerItem.Style["border-bottom-width"] = "1.5px";
                headerItem.Style["border-bottom-color"] = "LightGrey";
                headerItem.Style["height"] = "50px";
                foreach (TableCell cell in headerItem.Cells)
                {
                    cell.Style["font-weight"] = "bold";
                    cell.Style["font-family"] = "arial";
                }
            }
            if (e.Item is GridDataItem)
            {
                var item = (GridDataItem)e.Item;
                foreach (TableCell cell in item.Cells)
                {
                    cell.Style["text-align"] = "left";
                    cell.Style["vertical-align"] = "middle";
                    cell.Style["font-size"] = "8pt";
                    cell.Style["font-family"] = "arial";
                }
            }
        }
    }
}

Daniel
Telerik team
 answered on 30 Dec 2010
7 answers
137 views
Hi,
I was wondering if there is a way to apply a global skin for shared calendars, eg the popup calendar on the DatePicker in the grid filtering column. I currently have the following in my skin file which is working for all Calendars of DatePickers, but the calendar in the grid filtering column appears to be of type SharedCalendar and  is not rendering the same. I can do it with code in the OnItemDataBoundEvent for the grid, but I have a lot of grids as well as some that are generated at runtime..

Any help would be most appreciated..

Thanks.

Matt.

<telerik:RadDatePicker runat="server" skin="Vista">
    <DateInput runat="server"
        onkeydown="return datePickerToday(this, event);"
        IncrementSettings-InterceptArrowKeys="false"
        IncrementSettings-InterceptMouseWheel="false"
        DateFormat="MM/dd/yyyy"
        ToolTip="Shortcut Keys:  Press 'T' for today. Use up and down arrows to change day/month/year based on cursor location." />
        <Calendar ShowRowHeaders="false" >
            <SpecialDays>
             <telerik:RadCalendarDay Repeatable="Today" Date="" IsToday="true">
               <ItemStyle CssClass="rcToday" />
             </telerik:RadCalendarDay>
            </SpecialDays>
        </Calendar>
</telerik:RadDatePicker>
Matthew
Top achievements
Rank 2
 answered on 30 Dec 2010
4 answers
81 views
I'm trying to run some code in the RadGrid1_ItemDataBound and RadGrid1_UpdateCommand events and am running into problems now that I have added a detail grid to the equation. I am using sqlDataSource for both grids, not using NeedDataSource. What is the best way to determine which grid raised the events? Should I be using NeedDatasource with the sqlDataSource as well? Thanks for any help.
AkAlan
Top achievements
Rank 2
 answered on 30 Dec 2010
5 answers
137 views
Is it possible to have a tooltip with multiple HideEvents? For example, to have ManualClose and FromCode specified so that the tooltip can either be closed by the user or closed from server-side?
Clayton
Top achievements
Rank 1
 answered on 30 Dec 2010
5 answers
356 views
If possible, how can I set the viewpaths property for the imagemanager in the Radeditor dynamically? I need to set this based on something like a TempData variable. I tried ...

 RadEditor_HTMLSource.ImageManager.ViewPaths = (String[])TempData["mykey"];

But it's not set.

Thanks
Matt
Matt
Top achievements
Rank 1
 answered on 30 Dec 2010
4 answers
157 views
Hello - I have a scenario where a random number of .jpg files get placed in a folder and my web page's responsibility is to simply display, in slide-show format, those images. Having not used either the RadRotator or RadSlider controls, I'm a bit confused about which direction to take. The demo's I've seen for the Slider control seem to be geared around those scenarios where the number of images to be displayed is fixed, whereas the Rotator is better suited for a situation like mine, where the images can be changed frequently.

Ideally, I'd like to be able to simply "point" the control at the directory that contains the images and it would automatically display everything in that path as a slideshow. I'm able to accomplish this with the Ajax Control toolkit. Is this possible with either the RadSlider or RadRotator? Thanks.

Matt
Matt Low
Top achievements
Rank 1
 answered on 30 Dec 2010
4 answers
175 views
I have a page with a RadGrid (auto generated columns). I want to store how the user is setting their column sizes in Personalization so that it automatically reloads the column sizes each time they load the page/grid.

In order to do this I need to be able to (after a postback of some sort) retrieve the size (pixels) of the columns, but whenever I loop through the GridBoundColumns ItemStyle widths to get the value it is always blank.

How would I be able to get the width of the columns after a postback or partial postback?
Raddy Rad
Top achievements
Rank 1
 answered on 30 Dec 2010
2 answers
115 views
Telerik Devs and Experts,

I have 2 RadMenus on one page and both are wrapped in a usercontrols and for some reason for menu #2 the submenu items will not display... don't really know where to start with this one.  Please help.
Kevon Hayes
Top achievements
Rank 1
 answered on 30 Dec 2010
1 answer
51 views
We have a very strange problem, with sorting not working in  RadGrid. The problem is, it should work!

We have two very similar web applications, both set up in the same way getting data via an Object Data Source (an Extended Object Data Source to be exact). In one of the application, setting the AllowSorting=true works perfectly fine without any problems at all, in the other application, it seem to work, even the RadGrid itself seem to think it is working (processing, taking some time, showing the loading panel etc. etc. etc.) but it doesn't! The order or the rows never change. Everything else like filtering, even custom filtering, works 100%. Sorting expressions etc are in both applications generated by the RadGrid itself from the Data Source, and should be correct.

We have done exactly as described here:
http://www.telerik.com/help/aspnet-ajax/grdbasicsorting.html

If nothing had happended, that would have been one thing, but now it seems like the RadGrid is actually doing some kind of sorting, just that we never get to see the results. We really need some ideas here on what could be wrong, because as we see it, the way we are doing it should be correct, and it works fine in one application, but not the other.

Please advice :)
Marin
Telerik team
 answered on 30 Dec 2010
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?