Questions tagged [sections]

1

votes
0

answer
698

Views

ASP.NET MVC Razor Sections and Partials

I'm relatively new to ASP.NET MVC and Razor. We've been modifying and developing based on existing code. Thus, there is a lot of duplication (ugh!). So I started looking at Partial pages and learning about Sections. I followed these tutorials but I'm still a bit confused. ASP.NET MVC 3: Layouts...
Patricia
1

votes
1

answer
443

Views

Swift - select single radioButton in tableView

I have a tableView, which is expandable. The headerCell has a checkBox, a label and a radioButton. The collapsableCell has a checkBox and a label. I have used M13Checkbox Library to implement the checkBox and the radioButton. The problem is when I select a radioButton or a checkBox of HeaderViewCel...
Bella
1

votes
0

answer
39

Views

How can I add more floating sub-sections to a UITableView?

My goal is to represent a tree hierarchy much like this: Building Zone Floor Room ... using a table view. To accomplish this the design asks for each tree level to be embedded as its own Section. A .plain UITableView is limited as it supports only one floating Section. Further research led me to cr...
Sebastian Dwornik
1

votes
0

answer
112

Views

data-nav-section from second html back to index.html not working correcty

Good day, I'm stuck here. In my index.html there are header options to navigate directly to the following sections: Home Portfolio Werkwijze Tarieven FAQ Contact This al works well. So far so good. Now I have a portfolio html page with the same sections in the header that should navigate back to the...
Erwin
1

votes
0

answer
314

Views

Netlogo file open error “expected nlogo file to have 12 sections, this has 1”

I'm getting the error expected nlogo file to have 12 sections, this has 1. I understand that a file has 12 sections, but I don't know what that means or why my model all of the sudden has one. I know that the sections are as follows: Code tab @#$#@#$#@ Interface tab @#$#@#$#@ Info tab @#$#@#$#@ t...
aaronjwenger
1

votes
0

answer
53

Views

how change color menu on section scroll

My website I use the section page. My site's menu operates throughout the site and does not depend on any section. I read most of the scrolls and section,css/javascript/jquery, but unfortunately I could not solve this problem I do not know how to connect menu on sections pages. CSS code: div#maxime...
Hadi
1

votes
1

answer
49

Views

How @yield becomes value?

I want to use @yield like value in blade template. But I have a problem @yield('key'): {{ Counter::showAndCount(@yield('key')) }} Could you please help me correct this code.
Dang Cong Duong
1

votes
0

answer
167

Views

How to load material-ui alike icons in react-styleguidist

I'm trying to load components from the src/components folder (which works perfectly) and also from the src/icons, which doesn't load anything: sections: [ { name: 'Components', components: path.join(__dirname, 'src/components/**/*.jsx') }, { name: 'Icons', components: path.join(__dirname, 'src/icons...
Joan Mira
1

votes
0

answer
82

Views

Default values for variable stored in SRAM

We are having some troubles with variables stored in SRAM and default values. We are working with a STM32F745ZE micro. We had to define a section for SRAM: /* Specify the memory areas */ MEMORY { ITCM_RAM (rx) : ORIGIN = 0x00000000, LENGTH = 16K /* +MW+ */ /*RAM (xrw) : ORIGIN = 0x20000000,...
JMA
1

votes
0

answer
47

Views

How to make one common H1 element for few sections in React

How to make one common H1 element for sections: Skills and About. If I clicked Skills Button H1 change to Skills and if i clicked About btn H1 change to About. I need this h1 element only for this two section and be oscillated by same value in css. For Start section it shouldn't be. Should I use sta...
Mat_-_
1

votes
1

answer
37

Views

Change Color of Selected Anchors for Sections on Site NO JAVASCRIPT

So I've got some section anchors inside a fixed header. I wanted to see if there's any css property/trick/hack I'm not aware of that will allow me to have the selected section anchor's color change when you select it, and obviously change back to the regular style when you select another section. I'...
Zach
1

votes
1

answer
47

Views

Turning sections into divs

I recently made a website that uses sections instead of divs because I want the divs to float in line with one another in the same div and that has become quite confusing for me to do. Presumably, I would like this to be in the head of the webpage but every time I try to remove the containers, the...
Staffbane
1

votes
1

answer
362

Views

Core Data NSFetchedResultsController sections

How can I insert a section that doesn't exist in the database into the fetched results? I'd like to do what the iOS calendar app does. When there are no events for the current day, it still shows a section title.
Collin
1

votes
1

answer
877

Views

Display some grouped tableview sections according the state of the first section, how?

I would a grouped tableview such that: when the only row of the first section is associated to a state, say A, I can see only this first section with, possibly, some text under it (in a footer for example); when this state changes, I would see other sections under the first; How could I achieve this...
Sefran2
1

votes
3

answer
604

Views

iPhone: I'm stuck on my Sections in UITableView, data comes from XMLParser

I'm new to this forum and to iPhone development. Due to the fact I know nobody who does iPhone development as well I am stuck and have to ask you guys for a solution. I am making an application getting the data from an XMLParser, provides the Data to an UITableView in sections (months) within those...
iJar
1

votes
2

answer
630

Views

iOS - UITableView Sections based on date ranges

I've got an issue and I'm wondering if it's possible to solve. I have a UITableView that uses Core Data and NSFetchedResultsController. A big part of my app is organizing things based on dates. Ideally, I'd like to divide the TableView into sections based off of 3 date ranges. These ranges would be...
mhbdr
1

votes
1

answer
848

Views

Using compile flag -ffunction-sections with debug symbols

I am compiling a C file using the gcc flag -ffunction-sections, to move every function into it's own section. The assembler is throwing the error: job_queue.s:2395: Error: operation combines symbols in different segments The compiler's assembly output at line 2395 is given here: .section .debug_r...
user1265195
1

votes
1

answer
616

Views

How do you create multiple grouped UITableView sections in rubymotion?

How do you create multiple grouped UITableView sections in rubymotion? Incomplete code below. I need help establishing how different UITavleViewDataSource Methods work with each other. class TableController < UIViewController def viewDidLoad super self.title = 'TableView' @table = UITableView.alloc...
rife
1

votes
1

answer
231

Views

Service Stack 4.0.15: Razor Partial not outputted inside @section

Summary: Razor Partials don't get rendered inside a @section in ServiceStack 4. This seems to be a bug in ServiceStack.Razor. Version: ServiceStack 4.0.15 Affected Package: ServiceStack.Razor Razor partials inside a section does not get rendered. Example Inside _Layout.cshtml @RenderSection('Javascr...
Abe
1

votes
1

answer
6.4k

Views

How to remove white space between details sections which contain subreports in Crystal Reports

In my main report preview and exported PDF file of it as well I have a unused white space between details sections (the section with the grid starts from next page) as shown in the following image. Off course I want that white space to be removed. I tried with unchecking the 'Can Grow' and 'Keep Tog...
1

votes
1

answer
1.1k

Views

UICollectionView - customize item disappearing when section collapses

I collapse & expand sections by toggling numberOfItemsInSection:. When collapsing, items disappear through alpha fade-out. I would like to change this effect to scaling them down. I think I can implement this with custom UICollectionViewFlowLayout and overloaded layoutAttributesForItemAtIndexPath:....
brigadir
1

votes
2

answer
64

Views

“Namespaced” methods in Ruby

There is a class with 'namespaced' methods: class MyOrder def add end def edit end end class MyCompany def list end end class MyDriver def add end def edit end end class MyAPI attr_reader :order, :company, :driver def initialize @order = MyOrder.new @company = MyCompany.new @driver = MyDriver.new en...
Paul
1

votes
2

answer
274

Views

Use list view with headers in a layout with margins

I just started learning a little bit of Android. I am currently trying to use List Views with section headers. I found this reusable code at this website : http://javatechig.com/android/listview-with-section-header-in-android It uses two layout files: snippet_item1.xml and snippet_item2.xml. The re...
Harsh Patel
1

votes
1

answer
184

Views

Group and sort Backendless data in UITableview with Swift

I'm looking to group and sort a list of users from backendless, similar to iPhone contacts. I want to add sectionIndexTitlesForTableView(_:), titleForHeaderInSection(_:), and sectionForSectionIndexTitle(_:). I haven't found a tutorial on how to do this, and I have been stuck for weeks. So far, I'm a...
Kayamba Mukanzu
1

votes
1

answer
900

Views

NSFetchedResultsController crash when Section index changes

I'm writing my app in Swift 3 (converted) in Xcode 8. NSFetchedResultsController is causing a Serious Application Error for me. My main table view is sectioned by a text identifier called 'yearText' which is being set on any given Event record (NSManagedObject) when the user changes the 'Event Dat...
Kent
1

votes
1

answer
60

Views

Hiding and showing section in tableview upon a button request

I have a tableview that has different sections. Upon loading the view I hide the section and create a overlay button over the section which upon clicking it it displays a alert box asking for admin password PROBLEM: Now, I am trying to show the section that was initially hidden once the user inputs...
habed
1

votes
1

answer
109

Views

What is the optimum value for omp_set_max_active_levels in OpenMP?

I have a specific example, but I'm also interested in a more general answer. Given the following code, and an evenly balanced binary tree: void mainTraverse(tree *node) { omp_set_nested(1); omp_set_max_active_levels(4); recurseTraverse(node); } void recurseTraverse(tree *node) { if (node == NULL) r...
Joe Bedard
1

votes
1

answer
0

Views

GCC section attribute ignored in a templated function

I'm tracking down a rather sneaky bug that occurred when I added a template parameter to one of my classes. During initialization, it was placing a static local variable in a certain section of memory. It seems that GCC's section attribute is just ignored when used within a templated function/class....
dingari
1

votes
1

answer
0

Views

splitting word document into sections: how to control update of page numbering

I have a macro that cuts a document into sections of one page each: Selection.HomeKey Unit:=wdStory While Selection.Information(wdActiveEndPageNumber) < Selection.Information(wdNumberOfPagesInDocument) ActiveDocument.Bookmarks('\page').Range.Select With Selection.Find .Text = '^b' .Forward = True...
patmin
1

votes
1

answer
0

Views

LD: ALIGN vs SUBALIGN in linker scripts

How do they differ? I read that SUBALIGN() somehow forces a certain alignment. Are there other differences? When should I use ALIGN() and when should I use SUBALIGN()?
oyvind
1

votes
3

answer
0

Views

Is there a way to determine what is the “top” section header of a UITableView?

Is there a way to determine what is the 'top' section header of a UITableView? For 'top section header' I mean the section header that is sticky at the top of the UITableView bounds.
S.C.
1

votes
2

answer
691

Views

What parts of ELF file should be loaded in to the memory?

I am writing a c program that gets an elf file, loads it and then executes it. I have read all of the headers (elf, section, program, relocation). The next part should be getting what is going to be loaded, right? How do I proceed? As I understand I should either get LOAD, ALLOC and EXECINST type se...
Invader Zim
1

votes
3

answer
145

Views

Objective-C Sectioned UITableView

I want a sectioned UITableView but I don't know how, my situation: I have 2 arrays array Date ('12/08/13', '13/08/13', '17/08/13') array Count('2', '1', '5') The count means how many rows are there in the section. I have - (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSI...
Henk de Boer
1

votes
2

answer
771

Views

How to group NSMutableArray by Date

I have an NSMutableArray named records which contains some single records. So the structure is like: Records Record ('name' : 'test1', 'timestamp' : '2013-09-15 12:34:35 +0000') Record ('name' : 'test2', 'timestamp' : '2013-09-14 11:21:42 +0000') Record ('name' : 'test3', 'timestamp' : '2013-09-14 1...
user2715505
1

votes
1

answer
356

Views

How To Implement Sections with NSFetchedResultsController

I've done some reading up on multiple similar issues and sites and I just cannot make any understanding of this. I have a NSFetchedResultsController which displays information from a user adding information into a ModalViewController with text fields. The user is presented with a ModalView and they...
amitsbajaj
1

votes
1

answer
47

Views

Comparison of id in HTML5

I have section and article for displaying contents. My code is: ... ... ... ... ... I am trying to get the id's of the articles so that I can compare, but I am getting undefined. My code is: var compare = 'item_1' $('article').each(function(){ var pos = $('article').id; console.log(pos) //getting un...
user227666
1

votes
3

answer
1k

Views

How to identify the row index and section number of a clicked button in a custom cell inside tableview

-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{ static NSString *simpleTableIdentifier = @'CustomCell'; cell = [tableView dequeueReusableCellWithIdentifier:simpleTableIdentifier]; if (cell == nil) { NSArray *nib = [[NSBundle mainBundle] loadNibN...
Nisari Balakrishnan
1

votes
1

answer
299

Views

Default appearance of static grouped UITableView with multiple sections

Did Apple change default appearance of grouped cells in table ? I defined static grouped UITableView with multiple sections in Storyboard, expected the cells to appear as in this tutorial: http://www.appcoda.com/ios-static-table-view-storyboard/ However it looks like that: Is there a way to change t...
Tamir
1

votes
3

answer
1.8k

Views

InsertSections function Swift

My goal is to insert a section upon a click and insert 4 rows into this section. I'm already familiar with how to use InsertRowsAtIndexPaths and inserting rows into one section makes no problem.But when it comes to inserting new sections, it's tricky and the apple documentation doesn't explain it fu...
David Robertson
1

votes
1

answer
243

Views

Swift: UITableView cells being affected by cells in another section

I have a function that changes the accessoryType of cells in Section 0 to a checkmark. It works great and displays a checkmark when selected, but if a cell in Section 1 or Section 2 is selected, it'll move the checkmarks on Section 0. If someone could tell me how to fix this, that'd be great. //Adds...
zennox

View additional questions