Questions




Answers
2
Dynamic Menu Tree View from Database

This is the sample link from here also.

Sample Tree View

I've just wanted to know what is the best approach to render it fast.

On the link I provided you will see a tree view coming out from database.

What should I do to render it fast. Here's what I think please guide for better approache(s).

1) Load only parent, then load children when the parent was clicked. (What I think was, why should I fetch all data if I am not using it. That's why I only load parent then the children when the parent is clicked. Is right or not).

2) Build the tree view in api/controller before sending it back to frontview so when the loading was complete all data was already built. (but it takes to fetch coming out from api, the user will see broken menu tree view. Lets say I have e-commerce site like this. below image). How to build menu like this in fastest way without seeing broken tree. (The image is sample to see expected result.)

Happy Coding!

...
Read More
Answers
2
Error : Operator '-' cannot be applied to operands of type 'int[]' and 'int[]'

Hi,I am using C# 3-D arrays program and getting error "Operator '-' cannot be applied to operands of type 'int[]' and 'int[]'", how I can resolve this error my current code is as below :

...
Read More
Answers
2
How to remove square brackets from string using javascript?

Hello, I am working a javascript function, in which I want to remove square brackets from string suppose if string it "[test]", then after removing square brackets I should get "test" only.

How can I do this using Javascript and regex, or without regex?

...
Read More
Answers
1
How can I initialize Multidimensional Array [][] in c# with int [3][3]?

Hi, How can I initialize Multidimensional Array [][] in c# with int [3][3] (3 rows and 3 columns )? Like below

...
Read More
Answers
1
Error : Wrong number of indexes '2' inside [], expected '1' Compilation failed in C# 2-D array

Hi, I am trying to run the below C# code for martix, but getting error

...
Read More
Answers
2
How to subtract total of each row in C# matrix from constant number and sum the result?

Hi, I would like to know how to subtract total of each row in C# matrix from a magic constant number(example : 15) and sum the result, for example, here is my current matrix

...
Read More
Answers
2
How to enable SSL in locahost using Visual Studio 2017?

Hello, I was trying to Enable SSL in localhost, means want to turn http into https in localhost , while debuggind code in Visual Stduio 2017, how can I enable this in Visual Studio 2017 community edition?

...
Read More
Answers
2
How can I sort alphanumeric string list in C# (With & Without LINQ)?

I have a requirement in my project, in which I need to sort the string which has alphanumeric data like below

...
Read More
Answers
2
Find duplicate array elements & count its occurence in c#

Hi, I have to find the repetition of number of occurence of an element in an array in c#, here is my current code for simple array

...
Read More
Answers
3
Datepicker is not working inside bootstrap modal pop-up

I am using jQuery Datepicker inside a page, which works when complete page is loaded in browser, but when I load the same page in bootstrap modal pop-up, jQuery datepicker inside it doesn't work.

Not sure how to solve it, here is my textbox HTML

...
Read More

Page 22 of 54