Quantcast
Channel: User mykhailovskyi - Stack Overflow
Browsing index pages (29 articles)

Sorting by non-displayed column in pivot mode

I use ag-grid version 26.0.0 and I want to sort grid programatically in pivot mode by a column that is not displayed.gridApi.setSortModel is deprecated and anyway not working for me.While debugging how...

View Article


react/jsx-no-bind warning even arrow function as const is passed

After starting new project with the latest stable React version (17.0.1) I noticed that in the strict mode I'm getting react/jsx-no-bind warn w\o using inline arrow function://...const cancelDeletion =...

View Article


Comment by mykhailovskyi on how to append a partial view to html table

could you do console.log and show what does model look like.

View Article

EF Cannot insert explicit value for identity column in table 'X' when...

I have to migrate data from one database to another. Keys should be preserved. I'm using EF with an auto-generated .dbmx file. I've read many answers to similar problem and follow those suggestions: I...

View Article

Append bunch of items into collection stored in Memcached

It's possible to store a list of items in Memcached but in my case I need to have an ability to append data to the existing collection that is already stored in Memcached. Since collection is too...

View Article


Image may be NSFW.
Clik here to view.

asp.net route does not work

I have a next route: routes.MapRoute( "CatalogFilter", "{url}Catalog.aspx/{fltr}", new { controller = "Catalog", action = "Index", page = 1 } ); So link does not match that route:...

View Article

OutOfMemoryException when send large file

In my asp.net project some files are located in the one of folders of the web site. Direct links are provided for users to download that. It works fine until size of file not big (few Mb) but...

View Article

Answer by mykhailovskyi for SelectNodes with XPath ignoring cases in node names

We may convert xml and our variables to lower case. string value = "aBc"; XmlNode xmlnode = xmldoc.SelectSingleNode(string.Format("/some/path/add[translate(@key, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ',...

View Article


Generic predicate to implement searching by any string property

Is there possibility to apply searching by any string property of entity? I need to build predicate to use it in LINQ query to database. var stringPropertyNames = typeof(T) .GetProperties() .Where(pi...

View Article


Update only certain columns in DB using Entity Framework

I have an entity that I know already exists in the database but which is not currently being tracked by the context. I force the context to track the entity using the Attach method on DbSet. Then set...

View Article

Convert array of bytes into GUID while filling DataTable

I try to retreive data from Oracle db like: DataSet ds = new DataSet(); using (var cmd = DBOracle.GetCommand()) { cmd.CommandText = sqlCommand; OracleDataAdapter adapter = new OracleDataAdapter(cmd);...

View Article

Unable to update cookies in asp.net mvc

I can write and read cookies but I can't change value for existing cookie it always has first set value. I found few ways how it can be implemented but no one works. Here is my code: private void...

View Article

Answer by mykhailovskyi for How to add condition to output in MVC?

@(string.Format("{0}", Model.Toxin[i].intake_link[0].Length > 30 ?Model.Toxin[i].intake_link[0].Substring(0, 30) : Model.Toxin[i].intake_link[0]) But I suggest you write some string extension and...

View Article


Answer by mykhailovskyi for How to identify whether List is a list of Ts that...

If I understood you correctly you have to do something like this: Type paramType = typeof(T); if(paramType is IMedia) { /*do smt*/ }

View Article

Answer by mykhailovskyi for Replacing text inside span through CSS or JS

You can do it using jQuery: $(function(){ $('span.pluginButtonLabel').text('my text'); // end put here same for each span you need }) here is a demo. Same functionality using plain JavaScript:...

View Article


Answer by mykhailovskyi for ASP.NET MVC Checboxes disabling/enabling textboxes

You may set counter and create unique class or some attribute for each block. For example: <table id="myTable"> @{ int c = 0; for(int i = 0; i < Model.Count; i++) { c++; <tr...

View Article

Answer by mykhailovskyi for Html.ActionLink onclick JavaScript function is...

You add onclick handler in wrong place. You must put it in Html Attributes block instead Route values. Try it: <p>@Html.ActionLink("Call number", "Call", new { id = Model.Id, number =...

View Article


Answer by mykhailovskyi for How to create HTML valid table with form inside rows

I think I have understood what do you need. You can make one simple table and into each row put only one td which keep form. Something like this: <table> @{ foreach (var item in...

View Article

Comment by mykhailovskyi on Redis compression technique

@JK I don't have much experience working with redis and believe given example is not the best, however I did not find any valuable information in google. So I can change the question to something like:...

View Article

Comment by mykhailovskyi on EF Cannot insert explicit value for identity...

thanks for quick answer. That's partially true what you said. But I changed on EDMX diagram behavior for Id column.

View Article
Browsing index pages (29 articles)


Latest Images