Arunprasanth K V

1

votes
0

answer
164

views

How to make a column non editable(not readonly) in edit mode and editable in create mode kendo grid

Note : I have checked the below post and it cannot solve my problem Kendo UI grid - different templates for Edit and Create I have a gird which has a dropdown column and I only need to edit this dropdown column when I create a new row template, I dont want to edit this column when a row edit funct...
Arunprasanth K V
1

votes
0

answer
28

views

Oracle data insertion strange behavior. Data is truncating while inserting

I am using oracle database as back end of one of my projects. I have a table which has a ADDRESS_TYPE column nvarchar(3) In some scenarios the system trying to insert a text 'Business' into the column ADDRESS_TYPE. When I try it from the local it is showing an error like the value is too large for...
Arunprasanth K V
1

votes
1

answer
37

views

Filter Lat Long values based on conditions and taking average

My list contain a huge data of lat lon values, and I am dealing with data in a farm. So I may need accuracy upto 1 meter so i decided to filter data upto 6 decimal places. I need to take average lat lon values of records which has same lat lon value up to 6 digits. Sample data : 148.0155503 148....
Arunprasanth K V
1

votes
1

answer
36

views

How to add dynamic row ( with dropdown in column ) when we have an edit option already implemented in kendo grid

I have a kendo grid which contains dropdown as few column values. I could edit the particular grid it is giving the proper dropdown values but when I try to add a new row dynamically to the grid it shows error . Live example link What I am looking for is when i click on the add new item button in...
Arunprasanth K V
1

votes
2

answer
0

views

Replace usage of unwanted foreach with new query in EF

I have a table like below Employee ------------------- id role 1 a 2 a 3 b 4 c 5 b ---------------------- The filters which I have are ids {1,3,5} and roles {a,b} So I need to get the rows which have id=1 and role=a , id=2 and role=b , id=3 and role=a, id=3 and role=b e...
Arunprasanth K V
1

votes
1

answer
52

views

Access a static class member using a string variable ( string holds the name of static class)

I am confused about is there any way to access static class property values using the static class name defined inside a string variable Example : I have a static class like below public static class CoreConstants { public const string HostAddress= 'someaddress'; } And I have a string variable li...
1

votes
2

answer
29

views

Set default value in Tag helper .net core

I have dropdown list in my page , which uses an enum list to bind. My enum looks like public enum PaymentType { /// /// The Cash /// Cash = 0, /// /// The Credit /// Credit = 1, /// /// The Debit /// Debit = 2 } And I am binding this enum to the dropdown like below --Select payment type-- T...
Arunprasanth K V
0

votes
0

answer
7

views

Updating edmx from VS 2017 showing error (Oracle database)

I am trying to update my edmx file using VS 2017 but each time I click on Update model from database option it is showing me the below error . In my system ODTwithODAC1120320_32bit is installed. I could update the edmx from VS 2010 successfully. Now I have installed ODAC for VS 2017 from link bu...
Arunprasanth K V
1

votes
1

answer
1.2k

views

Update table details using XML Through Stored Procedures

First off all I had go through with the related questions about this topic but none of them solve my problem because my xml has some different structure. That's why I have ask a question here about this problem. 1 246 1 42 12 55 2 61 2 66 2 76 2 79 2 I have an xml like above and I want to update...
Arunprasanth K V
1

votes
3

answer
16.1k

views

Display List return from a controller to a table in view ASP.NET MVC4

I have a function in my controller class, it return a list of data, I want to display it in table structure in my view page. i have tried the following code but it shows some error 'Class does not contain definition of GetEnumerator' Controller public ActionResult data(Message msg,IEnumerable dept)...
Arunprasanth K V
1

votes
1

answer
32

views

How to get Repeated values Based on condition

I have a table like below: id pid status 10 1 0 11 1 0 10 2 0 15 1 0 11 2 0 10 3 0 I need the common id based on pid values. That means the id values that are common for all pids. So in the above table the expected output is: id 10 I...
3

votes
6

answer
982

views

Difference between normal pointer and const pointer in c

Actually i don't know what is the difference between a normal pointer and a const pointer if i use the below code it will works fine . but when i change int *ptr=# to int *const ptr = &var1; then it will not work. can anybody explain what is the difference between a normal pointer and a const...
Arunprasanth K V
3

votes
3

answer
481

views

How to use case statement inside an SQL select Query

I need to get the output of a selected query depending on certain conditions Means if(id=uid) then I need the below query select * from table1 where id=5; else I need the below one select * from table1 where id=10 I know i can use if condition for this. But my query is very long one so when I us...
Arunprasanth K V
2

votes
4

answer
80

views

Filter c# list using timestamp, Take first record of each 5 seconds

I have a scenario like to filter the record based on timings.That is first record in a range of 5 seconds. Example : Input data : data timings 1452 10:00:11 1455 10:00:11 1252 10:00:13 1952 10:00:15 1454 10:00:17 1451 10:00:19 1425 10:00:20 1425 10:00:21 1459 10:00:23 1422 10:00:24 Expected outp...
Arunprasanth K V
2

votes
1

answer
474

views

Get Parent and grand parents of a particular child

i have table like below tablename :ExampleTable ChildID ChildCommonID ParentID 1 2 0 2 3 0 3 4 1 4 5 3 5 6 4 The Problem is : i have a child id...
1

votes
1

answer
276

views

Querying parallel foreach result cause Null reference error

I have a parallel foreach statement like below Parallel.ForEach(spacialRecords, (spacerecord) => { List dat = new List(); var latitude = Geometry.Y; var longitude = spacerecord.Geometry.X; var timeStamp = spacerecord.Timestamp; foreach (var wdItem in workingData) { RepresentationValue spaceMeteredV...
Arunprasanth K V
3

votes
1

answer
87

views

Navigation not working in XBOX1 application

I have created a java script based application(bbc tal framework) and build it as Universal windows platform application. The application is working fine in the windows 10 machine, but when I try to open it from XBOX1 the navigation are not at all working, Landing page is coming but it just act like...
Arunprasanth K V
8

votes
6

answer
783

views

Split a substring that returns from a split function

I have a string like below a_b|c_d and I need to split it based on |. So, the result will be: a_b c_d Then, I want to split it again with _, then result will be: a b c d Is it possible to do this in a single step? Like when input the corresponding string, it will return a value like following: a b...
10

votes
2

answer
2.3k

views

Print 1 to 1000 with out using loop [duplicate]

This question already has an answer here: Printing 1 to 1000 without loop or conditionals 106 answers i see the question on a c++ programming context, i check for a solution and one of my friend give me this code its works perfect but i can't understand it's logic and also how it's works. i asked t...
Arunprasanth K V
4

votes
2

answer
58

views

Hirarchical sorting in sql server when child id contains '.'

i have some childid like below childid ------------ 1.1 1.2 2.8 2.7 6.5 6.5.1 6.5.15 7.1 8 sort order will be childid -------- 1.1 1.2 2.7 2.8 6.5 6.51 6.5.15 7.1 i tried to converted to intiger like below declare @str nvarchar(max)='1.23.2'; set @str=(select replace(@str,'.','')) select @str b...
Arunprasanth K V