possible to load context menu base entries with ajax?
hi thomas luck, - - the example i've sent you is not initializing the value from the web service result. you should do this by code like this: - - for (var i = 0; i - { -        var item = new telerik.web.ui.radmenuitem(); -        item.set\_text(result[i].text); -        item.set\_value(result[i].value); -        item.set\_expandmode(result[i].expandmode); -        menu.get\_items().add(item); - } - - regards, - albert - the telerik team - - - check out - telerik trainer - , the state of the art learning tool for telerik products. - -
[this example](https://github.com/bpmn-io/bpmn-js-disable-collapsed-subprocess/blob/master/src/disabledcollapsedsubprocesspopupprovider.js#l33) is related to the replace menu, but it can easily mapped to the context pad provider.

so your getcontextpadentries can return a function like this

getcontextpadentries(element) {

/* ... */

return function(entries) {

// entries includes all already registered context pad entr… hi [@prepetti](/u/prepetti),

try the send hotkey . it showing the context menu,

[image]

file : [excel.zip](https://aws1.discourse-cdn.com/uipath/original/3x/6/b/6b8e341a2c0952e41bb5c6738e513b77072e2268.zip) (1.7 kb)

regards

balamurugan. Hi Chris, Thanks for reaching out. You can achieve this using an anchor link, for more information please refer to this article: <https://helpx.adobe.com/ca/xd/user-guide.html/ca/xd/help/use-anchor-links-to-create-navigation-link-XD.ug.html> Let us know if this helps or if you need any further assistance. Regards Rishabh You would be better to turn off lazy loading by default and instead specify when you want to load the extra data in the first place. EF is set up to allow Eager loading by using the .Include() function on your query, with lazy loading it can get messy if you start turning it on/off for various functions, you're better to just turn it off and manage what/when you want data loaded if you're feeling a need to turn it off.


See <https://msdn.microsoft.com/en-nz/data/jj574232.aspx> for specific examples and a breakdown of the different ways you can eager/lazy load data. The first example shows how you could pull through posts off a blog, which is similar to what you are wanting to acheive.



```
var topics = context.Topics 
                      .Include(t => t.Posts) 
                      .ToList(); 

``` Let's say in your `settings.py` file you have:



```
SITE_URL='www.mydomain.tld/somewhere/'
SITE_NAME='My site'

```

**If you need that in just one or two views:**



```
from django.shortcuts import render_to_response
from django.conf import settings

def my_view(request, ...):
    response_dict = {
        'site_name': settings.SITE_NAME,
        'site_url': settings.SITE_URL,
    }
    ...
    return render_to_response('my_template_dir/my_template.html', response_dict)

```

**If you need to access these across a lot of apps and/or views, you can write a context processor to save code:**


James has a tutorial on this 
[online](http://www.b-list.org/weblog/2006/jun/14/django-tips-template-context-processors/).


Some useful information on the when and if of context processors is available on this very site 
[here](https://stackoverflow.com/questions/831301/when-is-it-appropriate-to-use-django-context-processors).


Inside your `my_context_processors.py` file you would:



```
from django.conf import settings

def some_context_processor(request):
    my_dict = {
        'site_url': settings.SITE_URL,
        'site_name': settings.SITE_NAME,
    }

    return my_dict

```

Back in your `settings.py`, activate it by doing:



```
TEMPLATE_CONTEXT_PROCESSORS = (
    ...

    # yours
    'my_context_processors.some_context_processor',
)

```

In your `views.py`, make a view use it like so:



```
from django.shortcuts import render_to_response
from django.template import RequestContext

def my_view(request, ...):  
    response_dict = RequestContext(request)
    ...
    # you can still still add variables that specific only to this view
    response_dict['some_var_only_in_this_view'] = 42
    ...
    return render_to_response('my_template_dir/my_template.html', response_dict)

``` You can call `context.Database.Migrate()`in your `Startup.cs`


eg:



```
using (var context = new MyContext(...))
{
    context.Database.Migrate();
}

``` for example, you can disable right click on images at your page:

```

$(document).ready(function() {
    $("img").on("contextmenu",function(){
       return false;
    }); 
}); 

``` Entity Framework Core does not have lazy loading implemented at this time (RTM Build).


It is recommended that you do eager loading by using an .Include extension method. It is also a good idea to use a repository to do the eager loading for you.


Reference: <https://github.com/aspnet/EntityFramework/issues/3797> The problem is the response from the server, not your JavaScript. I ran the following code in the console on your page:



```
$.getJSON('data.json', function(data) { 
    console.log(data); 
});

        

        
        
        
 (adsbygoogle = window.adsbygoogle || []).push({});
 
        

    
```

The result looks like this:



  




 (adsbygoogle = window.adsbygoogle || []).push({});
 
  

 ![enter image description here](https://fooobar.com//img/b0b4666ec951695a00da8c82eb85e737.jpg)


As you can see, there is only one property in the returned object ( `mesta`
  




 (adsbygoogle = window.adsbygoogle || []).push({});
 
  

, an array with three elements).


You can confirm this by [visiting the file directly`data.json`
  




 (adsbygoogle = window.adsbygoogle || []).push({});](https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=) . You want something similar to this :



```
using (var context = new BloggingContext())
{
    var blogs = context.Blogs.SqlQuery("SELECT * FROM dbo.Blogs").ToList();
}

```

You can find tutorial for that here :
<http://msdn.microsoft.com/en-us/data/jj592907.aspx>