Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
145 views
Let me start by saying that I'm using a custom Skin based on the 2008 Q3 (I believe) Sunset skin.

I want to change the font of the inline editing and also the size of the field in my grid. Currently the inline editing font doesn't match the font I am using in my custom skin if the field is numeric, if the field is text it matches.

Pointing me to the right CSS that manages the inline editing would be greatly appreciated.

Thanks
Dimo
Telerik team
 answered on 24 Jun 2010
2 answers
86 views
Hi,

I have an issue with the Radslider control into a RadGrid.

When I scroll the page, the RadGrid is well displayed, but the sliders stay in place.

I noticed that this issue happened only with IE7. In Firefox, sliders move with the scroll and in IE6, sometimes sliders disappear.

Please check the screens in attachment.

Thanks





TANSERI
Top achievements
Rank 1
 answered on 24 Jun 2010
1 answer
77 views
Hi,

We had installed Rad controls from the link (http://www.telerik.com/products/aspnet-ajax/whats-new/release-history/q1-2010-version-2010-1-309.aspx) and started working on the rad scheduler. Now we have upgraded it to the new version (http://www.telerik.com/products/aspnet-ajax/whats-new/release-history/q1-2010-sp2-version-2010-1-519.aspx).

When opening an appointment for the first time, we are getting  an alert message(attached with this thread). This happens only when opening the popup for the first time. Please help us resolve this issue.

Thanks,
Vasanthi
T. Tsonev
Telerik team
 answered on 24 Jun 2010
1 answer
117 views
Hi,

I am grouping the Grid as shown in the attached image, i need assistance to resolve couple of issues,

The scenario here is that i have RADGrid with 9 columns and 4 Group Expressions in Sharepoint Environment,

1. I need to remove/hide the blank Grid header cells that are formed as a result of grouping. I understand that the first Grid Header cell is of the ExpandCollapse column which is ok, but want to remove or hide the blank Grid Header Cells. I tried looping through the GridHeaderItem.Cells collection and hiding the cells with text   but this causes the grid columns width go haywire and also when expand collapse is done the column width is even worse. If hiding or removing is not possible i would like to merge the cells with the first grid column header.

2. As shown in the screenshot, some group headers are blank i.e the group field has null value, in this case i want the grouping to be collapsed i.e the GridRow to be moved up to the previous group header, up until where the GroupField is not blank. As in the screen shot, i would like to have the row moved up 3 places to be shown under GroupField 1 as the other 3 GroupFields are blank

i hope the issue is clear.

Please advice.

Thanks.
Pavlina
Telerik team
 answered on 24 Jun 2010
1 answer
185 views
I followed the example to create row-spanning column headers as shown here: Telerik Example, which works great until I add EnableRowHoverStyle="true" to the declaration.  The hover bar only works correctly on the non-Template columns.  On the Template columns, the rows contain an underline and some extra space... if you hover below that space the hover bar appears, but nowhere else on those columns. 

Is there a workaround or fix for this?  I've tried the latest version of the DLLs, but still have the problem.

Here's the code:

 

 

        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">  
        </telerik:RadScriptManager> 
        <cc1:CslaDataSource ID="cdsMain" runat="server" TypeAssemblyName="" TypeName="" 
            TypeSupportsPaging="False" TypeSupportsSorting="False">  
        </cc1:CslaDataSource> 
        <telerik:RadGrid ID="RadGrid1" runat="server" AllowSorting="True" AutoGenerateColumns="False" 
            DataSourceID="cdsMain" GridLines="None">  
            <ClientSettings EnableRowHoverStyle="true">  
            </ClientSettings> 
            <MasterTableView DataSourceID="cdsMain">  
                <RowIndicatorColumn> 
                    <HeaderStyle Width="20px"></HeaderStyle> 
                </RowIndicatorColumn> 
                <ExpandCollapseColumn> 
                    <HeaderStyle Width="20px"></HeaderStyle> 
                </ExpandCollapseColumn> 
                <Columns> 
                    <telerik:GridTemplateColumn UniqueName="TemplateColumn">  
                        <HeaderTemplate> 
                            <table id="Table1" width="100%">  
                                <tr> 
                                    <td colspan="2" align="center">  
                                        <b>Two-Column Header</b> 
                                    </td> 
                                </tr> 
                                <tr> 
                                    <td width="50%">  
                                        <b>Cust Code</b> 
                                    </td> 
                                    <td width="50%">  
                                        <b>Cust Name</b> 
                                    </td> 
                                </tr> 
                            </table> 
                        </HeaderTemplate> 
                        <ItemTemplate> 
                            <table id="Table2" width="100%">  
                                <tr> 
                                    <td width="50%">  
                                        <%# DataBinder.Eval(Container.DataItem, "CUSTCODE")%> 
                                    </td> 
                                    <td width="50%">  
                                        <%# DataBinder.Eval(Container.DataItem, "CUSTNAME")%> 
                                    </td> 
                                </tr> 
                            </table> 
                        </ItemTemplate> 
                    </telerik:GridTemplateColumn> 
                    <telerik:GridBoundColumn DataField="CUSTCODE" HeaderText="Cust Code" SortExpression="CUSTCODE" 
                        UniqueName="CUSTCODE">  
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="CUSTNAME" HeaderText="Cust Name" SortExpression="CUSTNAME" 
                        UniqueName="CUSTNAME">  
                    </telerik:GridBoundColumn> 
                </Columns> 
            </MasterTableView> 
        </telerik:RadGrid> 

 

Dimo
Telerik team
 answered on 24 Jun 2010
2 answers
97 views
OK, I prepared to accept that I'm doing this wrong but...

I have a grid that includes the following column definition ...
<telerik:GridBoundColumn  
  HeaderText="Name"  
  SortExpression="Name"  
  UniqueName="Name"
</telerik:GridBoundColumn> 

My code behind reads something like this ...

var l = from contact in contacts 
        select new 
        { 
           ContactID = contact.ContactID, 
           Name = contact.LastName + ", " + contact.FirstName, 
        }; 
gdContacts.MasterTableView.DataSource = l; 

When I run this, rather than a value of "Hemming, Stuart" the "Name" column contains a ".ToString()"-like value that reads "{ContactID=1, Name="Hemming, Stuart"}.

Things work as expected if I change my column definition to a template column like this...
<telerik:GridTemplateColumn 
  HeaderText="Name" 
  SortExpression="Name"  
  UniqueName="Name"
  <ItemTemplate> 
    <asp:Label runat="server" ID="lblName" Text='<%# DataBinder.Eval(Container, "DataItem.Name") %>' /> 
  </ItemTemplate>                     
</telerik:GridTemplateColumn> 

So, why is that?

Enquiring minds, and all that.

-- 
Stuart

Stuart Hemming
Top achievements
Rank 2
 answered on 24 Jun 2010
1 answer
139 views
Good Morning.

I'm having a problem with web apps telerik based and internet explorer 8.

On page load, the internet explorer hangs for a few seconds and after,  it loads fine.

I have applied  all best practices recommended for you but not works.

The problem occurs on your website too, bellow a URL where the problem occurs.
http://demos.telerik.com/aspnet-ajax/grid/examples/programming/webmailgrid/defaultcs.aspx


Regards,
Fabio.
Radoslav
Telerik team
 answered on 24 Jun 2010
2 answers
188 views
hi telerik,

i have a grid with one row and one column. this column has a html data.. tables, images and etc..
but one of the image comes from database ( for security reasons )
when i open grid, i can see image in grid but when i want to pdf export there is an error about this image path..
System.Web.HttpException: '/async/display.ashx?id=1043' is not a valid virtual path.

as you can see '/async/display.ashx?id=1043'  streams image from db.

sample code;

<telerik:RadGrid ID="grvSchedules" runat="server" Width="100%" CssClass="GridVClass" 
        AutoGenerateColumns="False" AllowPaging="True" GridLines="None" PagerStyle-AlwaysVisible="false" 
        OnItemCommand="grvSchedule_ItemCommand" OnItemDataBound="grvSchedule_ItemDataBound" 
        OnNeedDataSource="grvSchedule_NeedDataSource" OnItemCreated="grvSchedule_ItemCreated" 
        HorizontalAlign="Left">  
        <ExportSettings IgnorePaging="true" ExportOnlyData="true">  
            <Pdf PageHeight="297mm" PageWidth="210mm" PageTitle="Client Schedule" /> 
        </ExportSettings> 
        <PagerStyle Mode="NumericPages" AlwaysVisible="False"></PagerStyle> 
        <MasterTableView Width="100%" DataKeyNames="RecId" CellSpacing="1" PageSize="20">  
            <Columns> 
                <telerik:GridTemplateColumn> 
                    <ItemTemplate> 
                                    <table width="800px">  
                                        <colgroup> 
                                            <col /> 
                                            <col /> 
                                        </colgroup> 
                                        <tr> 
                                            <td style="color: White;">  
                                                [Fax]<br /> 
                                            </td> 
                                            <td> 
                                            </td> 
                                        </tr> 
                                        <tr> 
                                            <td> 
                                                <img alt="" src="/Images/abc.png" /> 
                                            </td> 
                                            <td> 
                                                </td> 
                                        </tr> 
                                        <tr> 
                                            <td> 
                                                [DateToday]  
                                            </td> 
                                            <td> 
                                            </td> 
                                        </tr> 
                                        <tr> 
                                            <td> 
                                                [COMPANY]  
                                            </td> 
                                            <td>ClientName]                                            </td> 
                                        </tr> 
                                        <tr> 
                                            <td> 
                                                <img alt="" src="/Images/abc_sign.png" /> 
                                            </td> 
                                            <td> 
                                                <img alt="" src="/display.ashx?id=1043" /> 
                                            </td> 
                                        </tr> 
                                        <tr> 
                                            <td> 
                                                [Name]  
                                                <br /> 
                                                Executive Vice President  
                                            </td> 
                                            <td>[Principal]<br />[Title]  
                                            </td> 
                                        </tr> 
                                        <tr> 
                                            <td style="font-size: smaller;" colspan="2">  
                                                <br /> 
                                                [Descriptions]  
                                            </td> 
                                        </tr> 
                                        <tr> 
                                            <td colspan="2" style="color: White;">  
                                                @#  
                                            </td> 
                                        </tr> 
                                    </table> 
                                </td> 
                            </tr> 
                        </table> 
                    </ItemTemplate> 
                </telerik:GridTemplateColumn> 
            </Columns> 
        </MasterTableView> 
        <ClientSettings> 
            <Selecting AllowRowSelect="True" /> 
        </ClientSettings> 
        <AlternatingItemStyle Font-Size="X-Small"></AlternatingItemStyle> 
        <ItemStyle Font-Size="X-Small"></ItemStyle> 
    </telerik:RadGrid> 

Error ;

System.Web.HttpException: '/async/display.ashx?id=1043' is not a valid virtual path.
  at System.Web.VirtualPath.Create(String virtualPath, VirtualPathOptions options)
  at System.Web.HttpServerUtility.MapPath(String path)
  at Telerik.Web.Apoc.Image.ApocImageFactory.Make(String href)
  at Telerik.Web.Apoc.Fo.Flow.ExternalGraphic.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.Block.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.TableCell.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.TableRow.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.AbstractTableBody.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.Table.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.Block.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.TableCell.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.TableRow.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.AbstractTableBody.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.Table.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.Block.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.TableCell.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.TableRow.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.AbstractTableBody.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.Table.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.Block.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.Flow.Layout(Area area, Region region)
  at Telerik.Web.Apoc.Fo.Flow.Flow.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Pagination.PageSequence.Format(AreaTree areaTree)
  at Telerik.Web.Apoc.StreamRenderer.Render(PageSequence pageSequence)
  at Telerik.Web.Apoc.Fo.FOTreeBuilder.EndElement()
  at Telerik.Web.Apoc.Fo.FOTreeBuilder.Parse(XmlReader reader)


thanks for your help..
Daniel
Telerik team
 answered on 24 Jun 2010
2 answers
143 views

After deleting items from grid, paging doesn't get refreshed.
After deleting all items from last page grid disappears as Pager Index doesn't get updated to previous page.

I tried updating PagingIndex manually but it didnt work.

Found a similar thread open on this issue...Is it a bug with telerik?

http://www.telerik.com/community/forums/aspnet-ajax/docking/radgrid-pager-does-not-getting-refreshed-on-item-deletion.aspx
spt3210
Top achievements
Rank 1
 answered on 24 Jun 2010
2 answers
802 views
I would like to make a suggestion/observation about the use of the JQuery library in the Telerik controls.  First of all, let me say that I am extremely appreciative of your use of it - I love JQuery and think it makes my development life easier.

That being said, I noticed that, in Telerik's implementation of JQuery, you have the following lines at the end of your jQuery library:

// Move jQuery to $telerik 
$telerik.$ = jQuery.noConflict(true); 
 

What I wonder is, why are you passing true to noConflict?  In the JQuery docs, it says this:

If necessary, we can free up the jQuery name as well by passing true as an argument to the method. This is rarely necessary, and if we must do this (for example, if we need to use multiple versions of the jQuery library on the same page), we need to consider that most plug-ins rely on the presence of the jQuery variable and may not operate correctly in this situation.

This is indeed the problem I am seeing when trying to use jQuery plugins with my installation.  I am having to modify every single plugin, so instead of it passing the jQuery object to the plugin, it passes $telerik.$.  I don't see the need to "hide" the jQuery object in this way.  Why can't we have access to the jQuery object just as it should be, through jQuery and through $?  Currently, to make my coding shorter, I am calling this line after the telerik scripts are loaded:

window.$ = $telerik.$; 

This is just so I can use typical jQuery shorthand, like $(document).ready().  What was the need for obscuring the JQuery object in $telerik.$?  Wouldn't it be better to keep it the way it was intended, and allow the developers using your framework to decide whether to call noConflict if they are using other frameworks in addition to yours?

Thanks,
Gene






Gene
Top achievements
Rank 1
 answered on 24 Jun 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?