Categories
Mastering Development

retriving data from Content control using Word Api

I’m developing a Word Add-in (Word API + Office.js) where i am working with content controls, i am try to check whether control is blank i am using the below code for this functionality function callPromise() { return new Promise(function (resolve, reject) { var MadatoryFieldsList = [“Control1”, “Control2”, “Control3”]; $.each(MadatoryFieldsList, function (index, element) { Word.run(function […]

Categories
Development

C# Asp.net Cascading drop-down select lists using Searchable Options List plugin

Started a new question as the problem has moved. You can read how we came to this in this post. stackoverflow.com/questions/60379943 I now have working code but for some reason the script formatting is interfering with the population of the drop-down select list. I can get the list to populate on the view by removing […]

Categories
Development

How do I access the value of a td (x3) of the same tr (x1), if I click on the tr (x1 of td (x2))?

How do I access the value of a td (x3) of the same tr (x1), if I click on the tr (x1 of td (x2))? $(document).ready(function () { $.ajax({ url: ‘/api/Usuario/GetPermisosRolPorUsuario’, method: ‘GET’, dataType:’JSON’, data: { NitEmpresa,NombreUsuario }, headers: { ‘Authorization’: ‘Bearer ‘ + sessionStorage.getItem(“accessToken”) }, success: function (data) { debugger $(‘#tblBody’).empty(); $.each(data, function (index, […]

Categories
Development

How to use button within autocomplete dropdown to further filter the already-displayed results

I implemented an autocomplete search box on my asp.net mvc4 site. I am currently able to have the box return results that update as i type in the search box. I also am dynamically generating “category” buttons based on the result “type IDs” and inserting them in a header that appears when the autocomplete produces […]

Categories
Development

Client side pagination for custom rows

I am currently populating an html table with json from a .net core web api as follows: <div class=”container” style=”margin-top:150px”> <table class=”table table-bordered” id=”eventTable” width=”100%” cellspacing=”0″> <thead class=”thead-light”> <tr><th></th></tr> </thead> <tbody id=”event”></tbody> </table> @section Scripts { <script type=”text/javascript”> $(document).ready(function () { getEvents(); }); function getEvents() { var json_url = ‘https://localhost:44331/api/event/’; $.ajax({ url: json_url, type: ‘GET’, […]

Categories
Development

Cascade dropdown list MVC 5 Razor

I am attempting to implement Drop Down Cascading in the C#.NET MVC5 project. I am unable to populate the list of intakes though I can see in the debugger the list of intakes is returning. Please help! Controller: public JsonResult GetIntakeList(int ProgramId) { _context.Configuration.ProxyCreationEnabled = false; var programs = _context .Programs .Include(a => a.Intakes) .Where(p […]

Categories
Development

JQUERY UI-AUTOCOMPLETE not working in ASP.NET core 2.2 MVC

I have controller action returning a JSON object of bank branches linked to a selected bank from the UI and its returning the banks and i can see them when i do a “console log(cache)” in the js file, but the ui-autocomplete is not displaying the bank branches linked to the bank for me to […]

Categories
Development

wrong saving with one to many relationship .net mvc

I have one to many relationships between Appointments(Services_Id FK) and Services tables, When I Post new appointment it is supposed to insert Services_Id in appointment table but it creates a new record in Services table Controller: // GET public ActionResult Create() { AspNetUser aspNetUser = new AspNetUser(); ConfigureViewModel(aspNetUser.ToString()); List<Services> servicelist = db.Services.ToList(); ViewBag.servicelist = new […]

Categories
Development

How to make this slider automatic

I’ve created a manual slider, but i want to make the sliders autoplay. I use the data position to make each slide come to the front when you press the slider / buttons. How can i do that without modify all the js? Or if you can help me with a same slider, but just […]

Categories
AJAX Development jQuery

jQuery Autocomplete can not append dropdown from ajax result

I am using craftyclicks postcode lookup API which return result via ajax and append them. I have checked all library files as well,but there is no issue with that. It returns response in JSON which is okay but can’t append to my textbox. I checked all possible ways still it is not woking Below is […]