Telerik Forums
UI for ASP.NET MVC Forum
3 answers
257 views
hi, these are  my codes for infinite scrolling but its not working .
i posted the code please check and i also debug the code but my action also  not running ..

i provided the code below please check...



@(Html.Kendo().MobileView()
       .Title("Scroll down to load")       
       .Content(obj =>          
            Html.Kendo().MobileListView<TelerikMvcApp5.ShoppingModel.PRODUCT_IMAGE>()
                .Name("endless-scrolling")
                .TemplateId("template")
                .EndlessScroll(true)                    
                .ScrollTreshold(30)
                .DataSource(dataSource =>
                    dataSource
                        .Read("Scroll", "Image")
                        .PageSize(20)                            
                )
        )   
)

<script type="text/x-kendo-tmpl" id="template">
    <div class="product">
        <img src="#=IMAGENAME#" alt="image" class="pullImage"/>
   
    </div>
</script>

<style scoped>
    .product h3 {
        font-size: 1.3em;
        font-weight: normal;
        line-height: 1.4em;
        margin: 0;
        padding: .5em 0 0;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
    .product p {
        font-size: 1em;
        margin: 0;
        padding: .3em 0 0;
    }
    .pullImage {
        width: 64px;
        height: 64px;
        border-radius: 3px;
        float: left;
        margin-right: 1em;
    }
</style>


This is my action with controller

public class ImageController : Controller
    {
        ShoppingEntities db = new ShoppingEntities();
        //
        // GET: /Image/
        public ActionResult Index()
        {
            return View();
        }


[AcceptVerbs(HttpVerbs.Post)]

    public ActionResultScroll([DataSourceRequest] DataSourceRequest request)
        {

            var list = db.PRODUCT_IMAGE.ToList();
            return Json(list.ToDataSourceResult(request));

        }
    }
Petyo
Telerik team
 answered on 03 Jan 2015
0 answers
61 views
Hello,
         I want to add a control in telerik control so please give a proper solution. 
         This is my code

         @(Html.Kendo().Window()
    .Name("window")
    .Draggable()
    .Title("Window Popup")
    .Width(600)
    .Height(200)
    .Visible(false)
    .Content(@<text>
        @Html.Label("Select Image")
        @Html.Kendo().Upload();
        </text>)

I used this code to add control but its showing error message.
)
Shakil
Top achievements
Rank 1
 asked on 03 Jan 2015
3 answers
153 views
Hi,

We are planning to start a new project in ASP.Net MVC and are planning to use telerik controls for ASP.Net MVC. We were thinking about using some client side MV* framework for better organization of client side code. Can you please guide on:

1. Which client side framework/library is more compatible with telerik's ASP.Net MVC controls e.g. Knockout JS or Angular JS or ?
2. Telerik recommends using such frameworks with already existing client side API of controls or not? 

Any recommendations?

Thanks
Petyo
Telerik team
 answered on 02 Jan 2015
1 answer
325 views
Hi,

I'm trying to implement the persist state methods set/getOptions() for the new release. But when calling those methods I am getting the undefined error message. I've installed the new release and updated my kendo.all.min.js file within my scripts.

Anything that I am missing out? 

Thanks!
Dimo
Telerik team
 answered on 01 Jan 2015
5 answers
194 views
We have a application built using Kendo ASPNET MVC5 and it works
correctly (i.e. UI rendering is perfect) on local host. The kendo
controls are shown "Correctly" on local host and no issues are seen
locally.

However when the same codebase is published on Azure website then kendo controls do NOT render correctly.
Sample layout and index page of schedular (calendar) is given.

The URL for accessing the Azure hosted site is: http://shrirangtest3.azurewebsites.net/
login: peter
pwd: erp

Please let us know what are we missing when it is deployed on azure.

(Note: The rendering of UI happens perfectly on Azure site when MVC4 is used but NOT with MVC5)
Shreesh
Top achievements
Rank 1
 answered on 01 Jan 2015
4 answers
102 views
Hi, I'm having issues getting OutputCache to work with the remoteDatasource dropdown demo.  Whenever I run through Fiddler, I get this message "HTTP/1.1 Vary Header is present: *
*: The server MUST be contacted to verify the freshness of this resource."

I can put the outputcache on actions not called through the kendo datasource and they are cached as exptected.  Any ideas?

http://demos.telerik.com/aspnet-mvc/dropdownlist/remotedatasource
@(Html.Kendo().DropDownListFor(m => m.PasswordExpireOptionSelectedID)
    .DataTextField("Text")
    .DataValueField("Value")
    .DataSource(source =>
    {
        source.Read(read =>
        {
            read.Action(ListController.ActionGetPasswordExpireOptions, ListController.ControllerName);
        });
    })
)
// Action snippet
private const int CacheDurationDefault = 86400;

public JsonResult GetPasswordExpireOptions()
{
      // some code here....
     return Json(returnValue, JsonRequestBehavior.AllowGet);
}

Bob
Top achievements
Rank 1
 answered on 31 Dec 2014
5 answers
183 views
It is found that some parts of the controls in grid are not visible in High contrast mode - please find attached the difference :
especially the filter and paging links (next / previous)
Madzie
Top achievements
Rank 1
 answered on 30 Dec 2014
3 answers
120 views
Sometimes it is consistently observed with Telerik grid that the paging dropdown on click opens at the top of grid or somewhere outside the immediate accessibility of the dropdown - it should ideally open it like a dropdown, just beneath the icon
Attaching the screenshot taken at the behavior.
Please suggest the fix !!!
Alexander Popov
Telerik team
 answered on 30 Dec 2014
1 answer
227 views
Is there a way to set cursor focus on any tab item ?

SelectedIndex() is to select but I need to make sure when user hits <tab> key after TabStrip load, the next tabItem is ready to be selected.

Is there a method similar to SelectedIndex() or needs to be custome script code to set focus on ?

Html.Telerik().TabStrip()
.Name("TabStripDynamicSearchCriteria")
.Items(tabstrip =>
{
....
}
.SelectedIndex(selectedIndex).Render();
Dimo
Telerik team
 answered on 30 Dec 2014
6 answers
782 views
I am using Razor to define the Telerik grid.
By default one of the color is 'transparent' and the other can be defined as I understand. Is there a way to define two custom colors like - instead of transparent - it is white and the other color gray ?

Thanks in advance
Dimo
Telerik team
 answered on 29 Dec 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?