Hi ,I am new to the controls and MVC. I am trying to use the CustomItems sample in a MVC 4 application. I am copying the code as is in the sample but every time my control displays it does not pick up the custom images. It renders like this, any ideas what I am doing wrong?
Hi Georgi,
Yes that is the sample. Herewith code. This code also has an upload control on it. The only thing I did try was moving the styles eg "selected0" to the style.css but this did not change anything if I left it in the page or moved it. Am I correct in saying I only need to reference Infragistics.Web.Mvc
I copied the entire SamplesCommon folder into the root of my project.
@using Infragistics.Web.Mvc;
<link type="text/css" href="@Url.Content("~/SamplesCommon/jQuery/Rating/Common/style.css")" rel="stylesheet" />
<!--#BEGIN SNIPPET#-->
>
@(Html.Infragistics()
.Loader()
.ScriptPath(Url.Content(
)) .CssPath(Url.Content(
.CssPath(Url.Content(
)) .Theme(
.Theme(
) .Render() )
.Render()
)
="javascript">
$.ig.loader(
() { $(
$(
).bind({ iguploadonerror:
iguploadonerror:
(e, args) { $(
).fadeIn(500).delay(3000).fadeOut(500); } }); });
}
});
() {
cssSnail, cssCheetah, cssRocket; cssSnail = [ [
cssSnail = [
[
], [
] ]; cssCheetah = [ [
];
cssCheetah = [
] ]; cssRocket = [ [
cssRocket = [
] ]; $(
).live({ igratingvaluechange:
igratingvaluechange:
(evt, ui) {
style;
(parseInt(ui.value, 10)) {
;
; } $(
, style); } }); });
="sampleContents">
="sample-container">
@(
Html.Infragistics().Rating()
.ID(
) .VoteCount(3) .Value(0) .ValueAsPercent(
.VoteCount(3)
.Value(0)
.ValueAsPercent(
) .Precision(
.Precision(
.Whole) .VoteItemWidth(64) .VoteItemHeight(38) .CssVotes(c => { c.AddVoteCSS().ItemIndex(0).EmptyCss(
.VoteItemWidth(64)
.VoteItemHeight(38)
.CssVotes(c =>
{
c.AddVoteCSS().ItemIndex(0).EmptyCss(
); c.AddVoteCSS().ItemIndex(1).EmptyCss(
c.AddVoteCSS().ItemIndex(1).EmptyCss(
); c.AddVoteCSS().ItemIndex(2).EmptyCss(
c.AddVoteCSS().ItemIndex(2).EmptyCss(
); }) .Render() )
})
<!--#END SNIPPET#-->
Html.Infragistics().Upload()
) .Mode(
.Mode(
.Multiple) .MaxUploadedFiles(5) .AllowedExtensions(
.MaxUploadedFiles(5)
.AllowedExtensions(
}) .MaxSimultaneousFilesUploads(2) .ProgressUrl(Url.Content(
.MaxSimultaneousFilesUploads(2)
.ProgressUrl(Url.Content(
)) .ControlId(
.ControlId(
Hi,
Have it working now. The standard MVC css and themes were causing issues