This is a migrated thread and some comments may be shown as answers.

no images displayed

12 Answers 127 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Joachim
Top achievements
Rank 1
Joachim asked on 10 Jul 2008, 09:11 PM
Hi

I use the radgrid with the built-in skins. In the Visual Studio I can see the images for the two command items "add new record" and "refresh". If I view the page in a brwoser the images are not displayed.

The pages are located below the root in a folder. If I move the pages up into the root everthing works fine.

Any suggestion?

Thanks
Joachim

12 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 11 Jul 2008, 06:12 AM
Hello Joachim,

Can you post the grid declaration?

Best wishes,
Vlad
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Joachim
Top achievements
Rank 1
answered on 11 Jul 2008, 08:38 PM
Hi

thanks for the fast reply. Here is the code

<telerik:RadGrid ID="gruser" runat="server" AllowFilteringByColumn="True"

AllowPaging="True" AllowSorting="True" DataSourceID="dsUser" GridLines="None"

ShowGroupPanel="True" Skin="Hay" AutoGenerateColumns="False"

meta:resourcekey="gruserResource1" ShowFooter="True"

AllowAutomaticDeletes="True" AllowAutomaticInserts="True"

AllowAutomaticUpdates="True" PageSize="50" ShowStatusBar="True">

<

MasterTableView DataSourceID="dsUser" AllowMultiColumnSorting="True"

DataKeyNames="id" showfooter="False" CommandItemDisplay="Top">

<

RowIndicatorColumn Visible="False">

<

HeaderStyle Width="20px"></HeaderStyle>

</

RowIndicatorColumn>

<

ExpandCollapseColumn Visible="False" Resizable="False">

<

HeaderStyle Width="20px"></HeaderStyle>

</

ExpandCollapseColumn>

<Columns>

<telerik:GridBoundColumn DataField="id" DataType="System.Int32" HeaderText="id"

meta:resourcekey="GridBoundColumnResource1" ReadOnly="True" SortExpression="id"

UniqueName="id">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="username" HeaderText="username"

meta:resourcekey="GridBoundColumnResource2" SortExpression="username"

UniqueName="username">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="password" HeaderText="password"

meta:resourcekey="GridBoundColumnResource3" SortExpression="password"

UniqueName="password">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="firstname" HeaderText="firstname"

meta:resourcekey="GridBoundColumnResource4" SortExpression="firstname"

UniqueName="firstname">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="middlename" HeaderText="middlename"

meta:resourcekey="GridBoundColumnResource5" SortExpression="middlename"

UniqueName="middlename">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="lastname" HeaderText="lastname"

meta:resourcekey="GridBoundColumnResource6" SortExpression="lastname"

UniqueName="lastname">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="phone" HeaderText="phone"

meta:resourcekey="GridBoundColumnResource7" SortExpression="phone"

UniqueName="phone">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="email" HeaderText="email"

meta:resourcekey="GridBoundColumnResource8" SortExpression="email"

UniqueName="email">

</telerik:GridBoundColumn>

<telerik:GridEditCommandColumn meta:resourcekey="GridEditCommandColumnResource1">

</telerik:GridEditCommandColumn>

<telerik:GridButtonColumn CommandName="Delete"

meta:resourcekey="GridButtonColumnResource1" Text="Delete" UniqueName="column">

</telerik:GridButtonColumn>

</Columns>

<

EditFormSettings>

<

EditColumn UniqueName="EditCommandColumn1"></EditColumn>

<

PopUpSettings ScrollBars="None"></PopUpSettings>

</

EditFormSettings>

</

MasterTableView>

<ClientSettings AllowDragToGroup="True" AllowColumnsReorder="True"

ReorderColumnsOnClient="True">

<Selecting AllowRowSelect="True" />

<Scrolling AllowScroll="True" UseStaticHeaders="True" />

</ClientSettings>

</telerik:RadGrid>



Best Regards
Joachim

0
Daniel
Telerik team
answered on 15 Jul 2008, 09:59 AM
Hello Joachim,

This would happen if you are using FormDecorator and you use older version of our controls. If you experience this issue please either update to the latest version or make sure RadGrid is not decorated by FormDecorator.
I've created a sample project using the code you provided. You can find it attached to this post.

Kind regards,
Daniel
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Joachim
Top achievements
Rank 1
answered on 15 Jul 2008, 08:50 PM
Hi Daniel

It must be something different. After deleting all resource files the images are displayed. I re-created the resource files via Tools>Generate Local Resource and the images are not displayed.

A metakey is added for the grid

<

telerik:RadGrid ID="gruser" runat="server" AllowFilteringByColumn="True"

AllowPaging="True" AllowSorting="True" DataSourceID="dsUser" GridLines="None"

ShowGroupPanel="True" Skin="Hay" AutoGenerateColumns="False"

ShowFooter="True"

AllowAutomaticDeletes="True" AllowAutomaticInserts="True"

AllowAutomaticUpdates="True" PageSize="50" ShowStatusBar="True"

meta:resourcekey="gruserResource2">

This resource is defined in the resource file:

KEY: gruserResource1.MasterTableView.CommandItemSettings.AddNewRecordImageUrl
VALUE:mvwres://Telerik.Web.UI, Version=2008.1.415.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4/Telerik.Web.UI.Skins.Hay.Grid.AddRecord.gif

If I delete the meta key it works!

Regards
Joachim

0
Daniel
Telerik team
answered on 17 Jul 2008, 06:13 AM
Hi Joachim,

Could you please send us your project via regular support ticket in order to try finding the root of the issue?

Kind Regards,
Daniel
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Joachim
Top achievements
Rank 1
answered on 17 Jul 2008, 08:45 PM
Hi

I use a trial version. Not sure why but I was unable to submit a support ticket. Will try again

Regards
Joachim
0
Joachim
Top achievements
Rank 1
answered on 21 Jul 2008, 12:56 PM
Hi

I uploaded the file via a bug report. Not sure if anybody can follow -up on this.

Regards
Joachim
0
Daniel
Telerik team
answered on 21 Jul 2008, 01:26 PM
Hi Joachim,

Can you please tell me the number of that ticket? Did you use the same account (Joachim Hans) to submit it?

Regards,
Daniel
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Joachim
Top achievements
Rank 1
answered on 25 Jul 2008, 11:47 AM
Hi

I didn't get a ticket number. It can be that this mail if one is send out was in my spam folder an I deleted it. The subject is identical to my forum subject "no images disp"

Thanks
Joachim
0
Daniel
Telerik team
answered on 28 Jul 2008, 01:21 PM
Hello Joachim,

There are no tickets submitted via your account - this is your only support communication until now. I realize that you have many colleagues from your company which are our customers/evaluators. Are you sure that you use your account in this case?

Once you have downloaded a trial version of our controls you automatically receive one month free support. I saw you already downloaded our Q2 release on 25th of July so you should experience no problems with that.

Kind regards,
Daniel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Joachim
Top achievements
Rank 1
answered on 30 Jul 2008, 04:34 PM
Hi

i used the newest controls and the problem is still there. I can't believe it that I am the only one outside who has this problem.

It only happens for resource files located in a sub-folder. I also tried to create a new project. Same problem.

Regards
Joachim
0
Joachim
Top achievements
Rank 1
answered on 30 Jul 2008, 08:37 PM
Hi

I think I solved it.

If you generate a local resource file the resource file has name/value pair for the image to display.

NAME
RadGrid1Resource1.MasterTableView.CommandItemSettings.AddNewRecordImageUrl

VALUE
mvwres://Telerik.Web.UI, Version=2008.2.723.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4/Telerik.Web.UI.Skins.Hay.Grid.AddRecord.gif

I removed that entry and the images are displayed correctly so the reference is wrong in case web page is located in a sub directory. Does this make sense?

Regards
Joachim
Tags
Grid
Asked by
Joachim
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Joachim
Top achievements
Rank 1
Daniel
Telerik team
Share this question
or