telerik radgrid last column(s) gets cut off - telerik

I'm getting last columns in radgrid cut off. The grid is scrollable and sum of column widths is definitely wider than given width. The cut columns are of course in the page source. there is 18 columns like the one below. Why could it be? Thank you!
<telerik:RadGrid runat="server" ID="rg" AutoGenerateColumns="false" AllowSorting="true"
AllowFilteringByColumn="true" Skin="Telerik" Width="1000px" AllowPaging="true"
PageSize="20" OnNeedDataSource="needData">
<ClientSettings Scrolling-FrozenColumnsCount="2" Scrolling-SaveScrollPosition="true"
Scrolling-UseStaticHeaders="true" Scrolling-AllowScroll="true" />
<HeaderStyle Width="100px" />
<MasterTableView Width="100%" TableLayout="Fixed" >
<PagerStyle Position="TopAndBottom" Mode="NextPrevNumericAndAdvanced" AlwaysVisible="true" />
<Columns>
<telerik:GridBoundColumn DataField="report_number" HeaderText="Report #" AutoPostBackOnFilter="true" ShowSortIcon="false"/>

resolved like this: first, doctype issue. removing "transitional" part from the declaration solved cutting the column in the middle. adding a fake column with headertext="" and no data after the last I need forced the last column with data to show.
just in case: MasterTableView width=101% did not help (found this someplace else)

Related

Nativescript-Vue two columns per row

How can I view image two columns per row with nativescript-vue by using RadListView, as picture below:
Like Monoj answered in the comment here a little example:
<RadListView ref="mylistView"
for="item in items"
layout="grid"
gridSpanCount="2">
<v-template>
...
</v-template>
</RadListView>

leader lines in FetchXML

I have a pie chart in Dynamics CRM that has the values of the segments listed outside of the pie chart. However I am trying to get the leader lines to display from the chart to the values. What property am I missing? Here is the XML.
<Series>
<Series ShadowOffset="0" IsValueShownAsLabel="True" Font="{0}, 9.5px" LabelForeColor="59, 59, 59" CustomProperties="PieLabelStyle=Outside, LabelsHorizontalLineSize=1, LabelsRadialLineSize=1, PieDrawingStyle=SoftEdge" ChartType="doughnut">
<SmartLabelStyle Enabled="True" />
</Series>
</Series>
The reason the lines were not showing up was because the attribute PieLineColor was not set to a color

How can I render a list of items as 4 blocks using Freemarker and Apache FOP?

I have a list of objects that I want to iterate over using Freemarker to produce a FOP template that shows four of these items on each page.
Each item should take up a quarter of the page.
In HTML I would probably float the divs so they flow together as they fit the page, but I don't know how to do that with FOP.
I've tried using inline elements to achieve this, but that doesn't work as I expect.
<fo:page-sequence master-reference="apage">
<fo:flow flow-name="xsl-region-body">
<fo:block>
<#list entries as entry>
<fo:inline background-color="blue" border="2px solid black">
<fo:block height="100mm" width="150mm" background-color="red" border="2px solid green">
<#include "singleCardTemplate.ftl">
</fo:block>
</fo:inline>
</#list>
</fo:block>
</fo:flow>
</fo:page-sequence>
The singleCardTemplate.ftl included is responsible for rendering a single item, which seems to be working, only it renders at full width, not 150mm as I'd hoped. I'd like 2x150mm wide blocks next to each other with 2 more underneath. So four per page.
I'm happy the Freemarker/FOP combo is working properly, I do get a PDF generated with the correct content and some borders/colours as per above.
What am I doing wrong?
I found a solution, move to table layout.
I'd prefer to use a layout that flowed like HTML inline-block elements but this seems to work...
<fo:flow flow-name="xsl-region-body">
<fo:block>
<fo:table table-layout="fixed" height="100%">
<fo:table-column column-width="proportional-column-width(2)"/>
<fo:table-column column-width="proportional-column-width(2)"/>
<fo:table-body font-size="10pt">
<fo:table-row height="100mm">
<#list entries as entry>
<fo:table-cell margin="5mm">
<#include "singleCardTemplate.ftl">
</fo:table-cell>
<#assign mod = entry_index % 2 />
<#if entry_has_next>
<#if mod == 0>
</fo:table-row>
<fo:table-row height="100mm">
</#if>
</#if>
</#list>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:block>
</fo:flow>

How to use Visual Studio Charts to draw a 'Manhattan* Chart'?

*This is a name I have seen used for the style of chart I'm after - not sure how 'official' this name is.
What I would like:
Bar Chart
X - Day of the Week
Y - Number of items
Z - Week Number, receding back into the chart.
I'm not sure that the Chart Control can do it, but I might be missing something in the many many properties and settings the control has.
After a hint from pnuts. i've dug in an read up some more on the Chart Control....
I've created a 3D 'Manhattan' style chart. There's the datasource selects data with columns such as DayName, NumberOfOrders and WeekNo.
The chart should have clustering turned off and you need to use a special databinding method.
Chart1.DataBindCrossTable(ds.GetYearsOrdersByDay, "WeekNo", "DayName", "NumberOfOrders", null);
This creates several series based on the dataset and the parameters.
Basic markup
<asp:Chart ID="Chart1" runat="server" Height="600px" Width="700px">
<Series>
</Series>
<ChartAreas>
<asp:ChartArea Name="ChartArea1">
<Area3DStyle Enable3D="True" IsClustered="false" Perspective="20"/>
<AxisY Interval="100"></AxisY>
<AxisX IntervalOffset ="1.0" Interval ="1.0" >
<MajorGrid Enabled="true" Interval="1.0" IntervalOffset="0.5" />
</AxisX>
</asp:ChartArea>
</ChartAreas>
<Legends>
<asp:Legend Name="Legend1" Title="Number of Orders">
</asp:Legend>
</Legends>
</asp:Chart>

UILabel Not Displaying Mutliline

Trying to display the text of the UILabel in three different lines:
First Line
Second Line
Third Line
But is showing up in single line "First Line Second Line Third Line"
Can the label display multiple lines?
Are you talking about form labels in HTML?
You can add line breaks after each part, or you can wrap each "line" as a span. I think anything else may be invalid.
example:
<label for="some_input">First Line<br />Second Line<br />Third Line<br /></label>
<input id="some_input" type="checkbox" name="input1" />
Or:
<label for="some_input"><span>First Line<\span><span>Second Line<\span><span>Third Line<\span></label>
<input id="some_input" type="checkbox" name="input1" />
then add the CSS:
label span {
display: block;
}
I am using this lable in the gridview. on row data bound i am replacing chr(10) and chr(13) WITH

Resources