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,
Have it working now. The standard MVC css and themes were causing issues
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(
.Theme(
)
.Render()
="javascript">
$.ig.loader(
() {
$(
).bind({
iguploadonerror:
(e, args) {
).fadeIn(500).delay(3000).fadeOut(500);
}
});
cssSnail, cssCheetah, cssRocket;
cssSnail = [
[
],
]
];
cssCheetah = [
cssRocket = [
).live({
igratingvaluechange:
(evt, ui) {
style;
(parseInt(ui.value, 10)) {
;
, style);
="sampleContents">
="sample-container">
@(
Html.Infragistics().Rating()
.ID(
.VoteCount(3)
.Value(0)
.ValueAsPercent(
.Precision(
.Whole)
.VoteItemWidth(64)
.VoteItemHeight(38)
.CssVotes(c =>
{
c.AddVoteCSS().ItemIndex(0).EmptyCss(
);
c.AddVoteCSS().ItemIndex(1).EmptyCss(
c.AddVoteCSS().ItemIndex(2).EmptyCss(
})
<!--#END SNIPPET#-->
Html.Infragistics().Upload()
.Mode(
.Multiple)
.MaxUploadedFiles(5)
.AllowedExtensions(
.MaxSimultaneousFilesUploads(2)
.ProgressUrl(Url.Content(
.ControlId(