Dynamic view panel column header formatting in xpages - view

I'm using dynamic view panel in an xpages application, and I'm using a customizer bean provided by Jesse Gallagher (https://openntf.org/XSnippets.nsf/snippet.xsp?id=dynamicviewcustomizer) to format the panel. In the code there is the treatment to render the column header according to the properties defined in the Notes view, however the properties are not being passed, since the columns in the notes view are bold and this is not being reflected in the dynamic view panel. Can someone help me to verify what is wrong?
Follow the DXL view and xpages code
<!DOCTYPE database SYSTEM "C:\Notes9\xmlschemas/domino_9_0_1.dtd">
-<database title="Gestão de despesas de água e energia de agências" allowbackgroundagents="false" path="CN=Snmb24/O=Mercantil do Brasil!!GestaoAguaEnergia.nsf" replicaid="8325802D005D8C64" maintenanceversion="1.4" version="9.0" xmlns="http://www.lotus.com/dxl">
-<databaseinfo numberofdocuments="189" percentused="87.4150815217391" diskspace="6029312" odsversion="43" dbid="8325802D005D8C64">
-<datamodified>
<datetime dst="true">20170112T164849,51-02</datetime>
</datamodified>
-<designmodified>
<datetime dst="true">20170112T165138,37-02</datetime>
</designmodified>
</databaseinfo>
-<fulltextsettings breakat="wordssentencesparagraphs" includeencryptedfields="false" includeattachments="true" update="immediate" size="1922029">
-<lastindexed>
<datetime>20170112T191311,61+00</datetime>
</lastindexed>
</fulltextsettings>
-<launchsettings>
<noteslaunch whenopened="openaboutdocument"/>
<weblaunch whenopened="openxpage" xpage="GastosPorAgência.xsp"/>
</launchsettings>
-<view noemptycategories="true" initialbuildrestricted="false" uniquekeys="false" marginbgcolor="white" marginwidth="0px" hidemarginborder="false" allowcustomizations="true" allownewdocuments="false" evaluateactions="false" boldunreadrows="false" headerbgcolor="white" totalscolor="black" bgcolor="white" haslinkcolumn="true" rowspacing="1" headerlinecount="1" rowlinecount="1" unreadcolor="black" showhierarchies="false" extendlastcolumn="false" shrinkrows="false" showmargin="true" showresponsehierarchy="true" opencollapsed="false" headers="beveled" onrefresh="displayindicator" onopengoto="lastopened" unreadmarks="none" designerversion="8.5.3" publicaccess="false" noreplace="true" showinmenu="false" alias="VGastosAgencia" name="(Gastos por agência)">
-<noteinfo sequence="39" unid="219D8F4FA6912B1D8325802D0069918A" noteid="19e">
-<created>
<datetime>20160913T161305,38-03</datetime>
</created>
-<modified>
<datetime dst="true">20170112T145220,92-02</datetime>
</modified>
-<revised>
<datetime dst="true">20170112T145220,91-02</datetime>
</revised>
-<lastaccessed>
<datetime dst="true">20170112T145220,92-02</datetime>
</lastaccessed>
-<addedtofile>
<datetime>20160913T161305,38-03</datetime>
</addedtofile>
</noteinfo>
-<updatedby>
<name>CN=Marcus Loza/O=Mercantil do Brasil</name>
</updatedby>
-<wassignedby>
<name>CN=Marcus Loza/O=Mercantil do Brasil</name>
</wassignedby>
-<code event="selection">
<formula>listaStatus:="Enviado para agência":"Enviado para gestor":"Devolvido para agência":"Enviado para contabilidade":"Ciente":"Novo"; SELECT form="GastoEnergiaAgua"& #IsMember(status;listaStatus)</formula>
</code>
-<column twisties="true" categorized="true" showaslinks="false" sortnocase="true" sortnoaccent="true" separatemultiplevalues="true" resizable="true" width="28.7500" itemname="agencia" hidedetailrows="false" sort="ascending">
-<columnheader>
<font size="9pt" style="bold"/>
</columnheader>
</column>
-<column showaslinks="true" sortnocase="true" sortnoaccent="false" separatemultiplevalues="false" resizable="true" width="23.3750" itemname="status" hidedetailrows="false" sort="ascending">
<font color="navy"/>
-<columnheader title="Status">
<font size="9pt" style="bold"/>
</columnheader>
</column>
-<column showaslinks="false" sortnocase="true" sortnoaccent="false" separatemultiplevalues="false" resizable="true" width="10" itemname="$6" hidedetailrows="false" showasicons="true">
-<columnheader>
<font size="9pt" style="bold"/>
</columnheader>
-<code event="value">
<formula>listaStatus:="Enviado para agência":"Enviado para gestor":"Devolvido para agência":"Enviado para contabilidade":"Novo"; dif:=dt_debito-#Today; #If(dif<0;"icons/cancel_or_decline/status_red.gif";"")</formula>
</code>
</column>
-<column showaslinks="false" sortnocase="true" sortnoaccent="false" separatemultiplevalues="false" resizable="true" width="10" itemname="dt_debito" hidedetailrows="false">
-<columnheader title="Data débito">
<font size="9pt" style="bold"/>
</columnheader>
<datetimeformat preference="custom" timeformat24="true" timeseparator=":" dateseparator3="/" dateseparator2="/" dateseparator1=" " weekdayformat="shortname" yearformat="fourdigityear" monthformat="twodigitmonth" dayformat="twodigitday" dateformat="weekdaydaymonthyear" zone="never" time="hourminutesecond" fourdigityearfor21stcentury="true" date="yearmonthday" show="date"/>
<numberformat bytes="false" percent="false" parens="false" punctuated="false" format="general"/>
</column>
-<column showaslinks="false" sortnocase="true" sortnoaccent="false" separatemultiplevalues="false" resizable="true" width="10" itemname="tipo_gasto" hidedetailrows="false">
-<columnheader title="Gasto">
<font size="9pt" style="bold"/>
</columnheader>
</column>
-<column showaslinks="false" sortnocase="true" sortnoaccent="false" separatemultiplevalues="false" resizable="true" width="10" itemname="valor" hidedetailrows="false">
-<columnheader title="Valor">
<font size="9pt" style="bold"/>
</columnheader>
<numberformat preference="custom" bytes="false" percent="false" parens="false" punctuated="true" format="fixed" usecustomsym="false" currencysym="R$" currencysymtype="custom" thousandssep="." decimalsym="," digits="2"/>
</column>
-<column showaslinks="false" sortnocase="true" sortnoaccent="false" separatemultiplevalues="false" resizable="true" width="10" itemname="consumo" hidedetailrows="false">
-<columnheader title="Consumo">
<font size="9pt" style="bold"/>
</columnheader>
</column>
-<item name="$FormulaTV">
<text/>
</item>
</view>
Xpages code:
<?xml version="1.0" encoding="UTF-8"?>
<xp:view
xmlns:xp="http://www.ibm.com/xsp/core"
xmlns:xc="http://www.ibm.com/xsp/custom"
xmlns:xe="http://www.ibm.com/xsp/coreex">
<xp:this.afterPageLoad><![CDATA[#{javascript:sessionScope.viewPage = view.getPageName();}]]></xp:this.afterPageLoad>
<xp:this.resources>
<xp:styleSheet href="/layout.css"></xp:styleSheet>
</xp:this.resources>
<xp:this.beforePageLoad><![CDATA[#{javascript:viewStateBean.restoreState = true;
var roles = context.getUser().getRoles();
sessionScope.userRoles = roles;
var st_novo=["Rascunho","Novo"];
var st_Contratos=["Enviado para gestor"];
var st_Contabilidade=["Enviado para contabilidade"];
var st_agencia=["Devolvido para agência","Enviado para agência"];
applicationScope.Contratos=st_Contratos;
applicationScope.Contabilidade=st_Contabilidade;
applicationScope.Agencia=st_agencia;
applicationScope.Novo=st_novo
}]]></xp:this.beforePageLoad>
<xc:cc_layout navigationPath="/Gastos/PorAgência">
<xp:this.facets>
<xp:panel
xp:key="facetMiddle"
id="panelMainContent">
<xe:dynamicViewPanel
id="dynamicViewPanel1"
showColumnHeader="true"
width="100%"
rows="25"
var="viewEntry"
customizerBean="mcl.reports.DynamicViewCustomizer">
<xp:this.facets>
<xe:pagerSizes
id="pagerSizes1"
xp:key="footerPager"
for="dynamicViewPanel1">
</xe:pagerSizes>
<xp:pager
layout="Previous Group Next"
partialRefresh="true"
id="pager1"
xp:key="headerPager"
for="dynamicViewPanel1">
</xp:pager>
<xe:pagerExpand
id="pagerExpand1"
xp:key="viewTitle"
for="dynamicViewPanel1">
</xe:pagerExpand>
</xp:this.facets>
<xe:this.data>
<xp:dominoView
var="view1"
viewName="VGastosAgencia">
</xp:dominoView>
</xe:this.data>
</xe:dynamicViewPanel>
<xe:pagerSaveState
id="pagerSaveState1"
for="dynamicViewPanel1"
partialRefresh="true">
</xe:pagerSaveState></xp:panel>
<xc:cc_nav_principal xp:key="facetLeft"></xc:cc_nav_principal>
</xp:this.facets>
</xc:cc_layout>
</xp:view>
Grateful!
Marcus

What I did was override the oneui css for the dynamic view panel column headers with the tag below.
.xspPanelViewColumnHeader
{
Font-weight: bold
}

Related

RadGrid not updating after Filter and Rebind

My problem is that I have 2 radgrids on a page and I cannot filter the columns.
One table is created like this:
<asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<div class="demo-container" id="demo-container">
<div class="gridPositioning">
<div>
<telerik:RadGrid ID="mdegGrid" runat="server"
AllowPaging="True" AllowCustomPaging="true"
AllowSorting="True"
AllowFilteringByColumn="True"
OnNeedDataSource="mdegGrid_NeedDataSource"
OnItemCommand="mdegGrid_ItemCommand"
OnItemCreated="mdegGrid_ItemCreated"
OnItemDataBound="mdegGrid_ItemDataBound"
OnPreRender="mdegGrid_PreRender"
CellSpacing="0" GridLines="None"
EnableLinqExpressions="false"
PageSize="12"
PagerStyle-AlwaysVisible="true"
EnableEmbeddedSkins="False"
Skin="_HBB"
CellPadding="0"
MasterTableView-CellSpacing="0" >
<GroupingSettings CaseSensitive="false" />
<MasterTableView AutoGenerateColumns="false" TableLayout="Auto" HierarchyLoadMode="ServerOnDemand"
DataKeyNames="ImportID" CommandItemDisplay="None" InsertItemPageIndexAction="ShowItemOnFirstPage">
<CommandItemSettings ShowRefreshButton="false" />
<RowIndicatorColumn FilterControlAltText="Filter RowIndicator column" Visible="True">
<HeaderStyle Width="20px" />
</RowIndicatorColumn>
<ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column" Visible="True">
<HeaderStyle Width="20px" />
</ExpandCollapseColumn>
<Columns>
<telerik:GridBoundColumn UniqueName="ImportID" HeaderText="<%$ Resources:HBS, Import_ID %>" DataField="ImportID_Filter"
SortExpression="ImportID"
FilterControlWidth="99%" ShowFilterIcon="false"
AutoPostBackOnFilter="true" CurrentFilterFunction="Contains">
<HeaderStyle ForeColor="Silver" Height="20px" Width="7%" HorizontalAlign="Left"></HeaderStyle>
<ItemStyle ForeColor="Gray" Height="20px" Width="7%" HorizontalAlign="Left"></ItemStyle>
</telerik:GridBoundColumn>
In the code behind in the mdeGrid_PreRender funtion I have the following code:
mdegGrid.MasterTableView.FilterExpression = string.Format("([{0}] LIKE N\'%{1}%\') ", _columnNameImports, txt.Text);
GridColumn column = mdegGrid.MasterTableView.GetColumnSafe(_columnNameImports);
column.CurrentFilterFunction = GridKnownFunction.Contains;
column.CurrentFilterValue = txt.Text;
mdegGrid.MasterTableView.Rebind();
UpdatePanel2.Update();
The problem is that nothing is happening. The grid becomes disabled with a Please wait loading message but after that, no filtering is happening.

How to automatically scroll down to the last row of table in sapUI5?

I need to implement load more in my table with dynamic values. This is my screen.
Initially, I have displayed the values from api call. On that time my table should be scroll down automatically to the last row of the table. Then I clicked the load more button again the api calls and added the new values in the model and added into the table too. But its not scrolling down to the table. Here is the controller code I have tried for scroll down.
var oTableModel = new sap.ui.model.json.JSONModel();
oTableModel .setSizeLimit(TABLE_ARRAY.length);
oTableModel .setData({
oset: TABLE_ARRAY
});
that.getView().byId("oSmartTable").setModel(oTableModel);
//that.getView().byId("otable").getBinding("items").refresh();
var oTable = that.getView().byId("logtable");
var oLength = TABLE_ARRAY.length - 1;
//New Item that is added
var oItem = oTable.getItems()[oLength];
var oScroll = that.getView().byId("oscroll");
//Add Delay since the new item needs to be added to the HTML Doc
jQuery.sap.delayedCall(100, that, function () {
//Scroll to the newly added item
oScroll.scrollToElement(oItem);
});
And this is view.xml code for smart table
<ScrollContainer id="oscroll" height="100%" width="99%" horizontal="false" vertical="true">
<VBox class="chartBackground" alignItems="Stretch" width="100%" id="logTableVB">
<items>
<smartTable:SmartTable id="oSmartTable" entitySet="oset" smartFilterId="smartFilterBar" tableType="ResponsiveTable"
app:p13nDialogSettings="{sort:{items:[{ columnKey: 'Type', operation: 'Ascending' }]}}" useExportToExcel="false"
beforeExport="onBeforeExport" useVariantManagement="true" useTablePersonalisation="true" showTablePersonalisation="true"
header="Total Logs " showRowCount="true" showFullScreenButton="true" enableAutoBinding="true">
<Table id="logtable" sticky="ColumnHeaders" class="headercolor" growingScrollToLoad="true" growing="true" growingThreshold="50">
<!--firstVisibleRowChanged="scroll"-->
<columns getResizable="true">
<Column minScreenWidth="Tablet" demandPopin="true" width="10%">
<customData>
<core:CustomData key="p13nData"
value='\{"sortProperty": "c1_data", "filterProperty": "c1_data","columnKey": "Column 1", "leadingProperty" : "c1_data"}'/>
</customData>
<Text class="headercolor" text="Column 1"/>
</Column>
<Column minScreenWidth="Tablet" demandPopin="true" width="15%">
<customData>
<core:CustomData key="p13nData"
value='\{"sortProperty": "c2_data", "filterProperty": "c2_data","columnKey": "Column 2", "leadingProperty" : "c2_data"}'/>
</customData>
<Text class="headercolor" text="Column 2"/>
</Column>
<Column minScreenWidth="Tablet" demandPopin="true" width="15%">
<customData>
<core:CustomData key="p13nData"
value='\{"sortProperty": "c3_data", "filterProperty": "c3_data","columnKey": "Column 3", "leadingProperty" : "c3_data"}'/>
</customData>
<Text class="headercolor" text="Column 3"/>
</Column>
<Column minScreenWidth="Tablet" demandPopin="true" width="15%">
<customData>
<core:CustomData key="p13nData"
value='\{"sortProperty": "c4_data", "filterProperty": "c4_data","columnKey": "Column 4", "leadingProperty" : "c4_data"}'/>
</customData>
<Text class="headercolor" text="Column 4"/>
</Column>
<Column minScreenWidth="Tablet" demandPopin="true" width="15%">
<customData>
<core:CustomData key="p13nData"
value='\{"sortProperty": "c5_data", "filterProperty": "c5_data","columnKey": "Column 5", "leadingProperty" : "c5_data"}'/>
</customData>
<Text class="headercolor" text="Column 5"/>
</Column>
<Column minScreenWidth="Tablet" demandPopin="true">
<customData>
<core:CustomData key="p13nData"
value='\{"sortProperty": "c6_data", "filterProperty": "c6_data","columnKey": "Column 6", "leadingProperty" : "c6_data"}'/>
</customData>
<Text class="headercolor" text="Column6"/>
</Column>
</columns>
<items>
<ColumnListItem type="Active" press="onLogTableClick_">
<cells>
<Text class="tabletext" text="{c1_data}"/>
<Text class="tabletext" text="{c2_data}"/>
<Text class="tabletext" text="{c3_data}"/>
<Text class="tabletext" text="{c4_data}"/>
<Text class="tabletext" text="{c5_data}"/>
<Text class="tabletext" text="{c6_data}"/>
</cells>
</ColumnListItem>
</items>
</Table>
<HBox>
<items>
<HBox class="contactMarigin" width="100%" justifyContent="Start" alignItems="Center">
<items></items>
</HBox>
<HBox class="contactMarigin" width="100%" justifyContent="Center" alignItems="Center">
<items></items>
</HBox>
<HBox class="contactMarigin" width="100%" justifyContent="End" alignItems="Center">
<items>
<Button id="oload_more" text="Load More" class="pdfMarigin" />
</items>
</HBox>
</items>
</HBox>
</smartTable:SmartTable>
</items>
</VBox>
</ScrollContainer>
I have put my smart table inside scroll container. when I click load more button the should be scroll down automatically to the last row. How can I achieve this? Thanks in advance.
setTimeout(function () {
oScroll.scrollToElement(oTable.getItems()[oLength], 800);
}, 0);

apex 4 gantt chart task collapser missing

I used APEX 4.2 to create a Gantt chart with the AnyGantt Library.
When i use a custom XML for the Anygantt Diagram everythign works fine. As soon as i want to use custom datagrids, the collapser is missing.
My XML is the following:
<anygantt> <settings>
<navigation enabled="True" position="Top" size="30">
</navigation>
<editing allow_edit="true">
<rounding>
<date unit="Week" step="1" />
</rounding>
</editing>
<locale>
<date_time_format week_starts_from_monday="True">
<months>
<names>January,February,March,April,May,June,July,August,September,October,November,December</names>
<short_names>Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec</short_names>
</months>
<week_days>
<names>Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday</names>
<short_names>Sun,Mon,Tue,Wed,Thu,Fri,Sat</short_names>
</week_days>
<format>
<full>%yyyy.%MM.%dd.%HH.%mm.%ss</full>
<date>%yyyy.%MM.%dd</date>
<time>%HH.%mm.%ss</time>
</format>
</date_time_format>
</locale>
</settings>
<datagrid enabled="true" width="300">
<columns>
<column attribute_name="Name" width="200" cell_align="Left">
<header>
<text>Name</text>
</header>
<format>{%Name}</format>
</column>
<column width="40" cell_align="Left">
<header>
<text>Stunden</text>
</header>
<format>{%Stunden}</format>
</column>
</columns>
</datagrid>
<styles>
<defaults>
<period>
<period_style>
<bar_style>
<labels>
<label anchor="Center" valign="Center" halign="Center">
<text>{%DISPO} %</text>
<font face="Verdana" size="10" bold="true" color="White">
</font>
</label>
</labels>
</bar_style>
</period_style>
</period>
</defaults>
<period_styles>
<period_style name="test">
<bar_style>
<labels>
<label anchor="Center" valign="Center" halign="Center">
<text>Center</text>
<font face="Verdana" size="10" bold="true" color="White">
</font>
</label>
</labels>
<middle shape="Full">
<fill enabled="true" type="Solid" color="DarkSeaGreen" />
<border enabled="true" color="#FF0000" />
</middle>
</bar_style>
</period_style>
</period_styles>
</styles>
<resource_chart><resources><resource name="AVI" id="5"/>
<resource name="CAB" id="4"/>
<resource name="Test, Test (Test)" id="3-U837751" parent="3"/>
<resource name="PL" id="3"/>
<resource name="Struktur" id="2"/>
</resources><periods><period resource_id="3-U837751" name="NAME-3-U837751" start="2015.07.28 00:00" end="2015.07.31 00:00">
<attributes>
<attribute name="DISPO"><![CDATA[,5]]></attribute>
</attributes>
</period></periods></resource_chart>
You need to add cell_align="LeftLevelPadding" to the column where you want to see the collapser. Something like:
<column attribute_name="Name" width="200" cell_align="LeftLevelPadding">
This is described in KB: http://support.anychart.com/customer/portal/articles/2077851--anygantt-4-x-collapser-is-missing-in-datagrid-column
You can find more info on columns at
http://6.anychart.com/products/anygantt/docs/users-guide/index.html?columns.html

0x800a139e - SyntaxError - Telerik RadGrid

i'm trying to execute one jquery function, but it giver me an error and i don't know what is going on. It is really kiling me. I don't know what else i can do.
If someone know's how to fix it, please help me.
error:
Exception was thrown at line 5263, column 7 in localhost:8538/Scripts/jquery-1.8.2.js
0x800a139e - JavaScript runtime error: SyntaxError
<%# Page Title="Home Page" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication1._Default" %>
<%# Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>
<asp:Content runat="server" ID="FeaturedContent" ContentPlaceHolderID="FeaturedContent">
<script src="Script/jquery-1.8.2.js"></script>
<script>
$(document).ready(function () {
setpager();
});
function setpager() {
$("#grdTeste .rgPagerCell:first").find('div').not(".rgInfoPart").css('display', 'none');
$("#grdTeste .rgPagerCell:last").find('.rgInfoPart').css('display', 'none');
}
</script>
<section class="featured">
<div class="content-wrapper">
<hgroup class="title">
<h1><%: Title %></h1>
</hgroup>
</div>
</section>
<table width="100%" height="100%" cellspacing="0" cellpadding="0" border="0">
<tbody>
<tr>
<td width="50%" valign="bottom" height="25">
<font id="tituloTela" style="padding-left:6px"> Feriados </font>
<input id="Button1" type="button" value="button" onclick="setpager();"/>
</td>
</tr>
</tbody>
</table>
</asp:Content>
<asp:Content runat="server" ID="BodyContent" ContentPlaceHolderID="MainContent">
<telerik:RadGrid ID="grdTeste" runat="server" AllowAutomaticDeletes="True" AllowAutomaticInserts="True" AllowAutomaticUpdates="True" AllowPaging="True" AllowSorting="True" CellSpacing="0"
DataSourceID="SqlDataSource" GridLines="None" PageSize="5" OnNeedDataSource="RadGrid1_NeedDataSource" >
<ExportSettings>
<Pdf PageWidth="">
</Pdf>
</ExportSettings>
<MasterTableView AutoGenerateColumns="False" DataKeyNames="COD_FERIADO" DataSourceID="SqlDataSource" CommandItemDisplay="Top" >
<CommandItemSettings AddNewRecordText="Adicionar Novo Registro" RefreshText="Atualizar"/>
<Columns>
<telerik:GridBoundColumn DataField="DATA" FilterControlAltText="Filter DATA column" HeaderText="DATA" SortExpression="DATA" UniqueName="DATA">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="NOME" FilterControlAltText="Filter NOME column" HeaderText="NOME" SortExpression="NOME" UniqueName="NOME">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="COD_FERIADO" DataType="System.Int32" FilterControlAltText="Filter COD_FERIADO column" HeaderText="COD_FERIADO" ReadOnly="True" SortExpression="COD_FERIADO" UniqueName="COD_FERIADO">
</telerik:GridBoundColumn>
</Columns>
<EditFormSettings>
<EditColumn UniqueName="EditCommandColumn1" FilterControlAltText="Filter EditCommandColumn1 column"></EditColumn>
</EditFormSettings>
</MasterTableView>
<PagerStyle Position="TopAndBottom" AlwaysVisible="true"/>
</telerik:RadGrid>
<asp:SqlDataSource ID="SqlDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:StringConexao %>"
DeleteCommand="DELETE FROM feriados WHERE (COD_FERIADO = #COD_FERIADO)"
SelectCommand="SELECT DATA, NOME, COD_FERIADO FROM feriados"
UpdateCommand="UPDATE feriados SET NOME = #NOME, DATA = #DATA WHERE (COD_FERIADO = #COD_FERIADO)"
InsertCommand="INSERT INTO feriados VALUES (NEXT VALUE FOR SEQ_FERIADO_NOVA, #DATA, #NOME)">
<DeleteParameters>
<asp:Parameter Name="COD_FERIADO" />
</DeleteParameters>
<InsertParameters>
<asp:Parameter Name="DATA" />
<asp:Parameter Name="NOME" />
</InsertParameters>
<UpdateParameters>
<asp:Parameter Name="NOME" />
<asp:Parameter Name="DATA" />
<asp:Parameter Name="COD_FERIADO" />
</UpdateParameters>
</asp:SqlDataSource>
</asp:Content>
The error is because your are using plain javascript for finding radgrid(telerik controls).
The javascript used for telerik contols is different than the normal javascript for html contols:
To find radgrid with id="grdTeste":
var grdTeste=$find("<%=grdTeste.ClientID%>"); //find radgrid
This will help you to work with radgrid on client side:
Working with Radgrid on client side

Visualforce Toolbar Rerender Firefox bug

I have a Visualforce toolbar and when I rerender the pageblock only in Firefox the whole bar gets extended vertically to a large toolbar block.
See code below
<apex:toolbar id="theToolbar" style="background-color:#8d8d8d;background-image:none">
<apex:toolbarGroup itemSeparator="line" location="left" id="toobarGroupForm">
<apex:outputText style="color:#f8f8ff;font-weight:bold" value="Amount of Records"/>
<apex:selectList label="Record Amount" value="{!ShowAmountOfRecords}" size="1" required="false" >
<apex:actionSupport event="onchange" action="{!AmountOfRecordsAction}" reRender="innerblock" status="recordamountchange" />
<apex:outputPanel style="color:#f8f8ff;font-weight:bold">
<apex:actionStatus id="recordamountchange" startText="Showing more records..." stopText=""/>
</apex:outputPanel>
<apex:selectOptions value="{!AmountOfRecordsList}"/>
</apex:selectList>
<apex:outputText style="color:#f8f8ff;font-weight:bold" value="Filter By Document Type"/>
<apex:selectList label="Filter by Record Type" value="{!FilterByRecordType}" size="1" required="false" >
<apex:actionSupport event="onchange" action="{!FilterByRecordTypeAction}" reRender="innerblock" status="filterByRecordType" />
<apex:outputPanel style="color:#f8f8ff;font-weight:bold">
<apex:actionStatus id="filterByRecordType" startText="Filtering your records..." stopText=""/>
</apex:outputPanel>
<apex:selectOptions value="{!FilterByRecordTypeList}"/>
</apex:selectList>
</apex:toolbarGroup>
</apex:toolbar>
Is this a know bug in Firefox?
The problem was that I had two picklist part of the same Toolbar Group. Make sure to add your components to different toolbar groups.
<apex:toolbar id="theToolbar" style="background-color:#8d8d8d;background-image:none" rendered="true">
<apex:outputText style="color:#f8f8ff;font-weight:bold" value="Amount of Records"/>
<apex:toolbarGroup itemSeparator="line" location="left" id="toobarGroupForm" rendered="true">
<apex:selectList label="Record Amount" value="{!ShowAmountOfRecords}" size="1" required="false" >
<apex:actionSupport event="onchange" action="{!AmountOfRecordsAction}" status="recordamountchange" reRender="innerblock" />
<apex:outputPanel style="color:#f8f8ff;font-weight:bold">
<apex:actionStatus id="recordamountchange" startText="Showing more records..." stopText=""/>
</apex:outputPanel>
<apex:selectOptions value="{!AmountOfRecordsList}"/>
</apex:selectList>
</apex:toolbarGroup>
<apex:outputText style="color:#f8f8ff;font-weight:bold" value="Filter By Document Type"/>
<apex:toolbarGroup itemSeparator="line" location="left" id="toobarGroupForm2" rendered="true">
<apex:selectList label="Filter by Record Type" value="{!FilterByRecordType}" size="1" required="false" >
<apex:actionSupport event="onchange" action="{!FilterByRecordTypeAction}" status="filterByRecordType" reRender="innerblock"/>
<apex:outputPanel style="color:#f8f8ff;font-weight:bold">
<apex:actionStatus id="filterByRecordType" startText="Filtering your records..." stopText=""/>
</apex:outputPanel>
<apex:selectOptions value="{!FilterByRecordTypeList}"/>
</apex:selectList>
</apex:toolbarGroup>
</apex:toolbar>

Resources