I have a design issue. When I get to the page for the first time the radupload control (in a usercontrol) looks normal. When I then delete the uploaded file and show the same user control again RadUpload looks strange. The button fall down and to the left of the input field a UL disc shows. If I set the EnableFileInputSkinning="false" the disc and the left-padding still be there. And the input field and the button height are very small. I would like it to retain its appearance. What’s the problem?
(2010.2.713.40)
<
telerik:RadEditor
ID
=
"txtMessage"
runat
=
"server"
Width
=
"500px"
Height
=
"250px"
EditModes
=
"Design"
ValidationGroup
=
"NewPost"
ContentAreaCssFile
=
"~/Community/themes/EditorContentAreaStyles.css"
Skin
=
"Sitefinity"
>
<
Tools
>
<
telerik:EditorToolGroup
Tag
=
"Forum"
>
<
telerik:EditorTool
Name
=
"AjaxSpellCheck"
/>
<
telerik:EditorTool
Name
=
"SelectAll"
/>
<
telerik:EditorTool
Name
=
"Cut"
/>
<
telerik:EditorTool
Name
=
"Copy"
/>
<
telerik:EditorTool
Name
=
"Paste"
/>
<
telerik:EditorTool
Name
=
"InsertLink"
/>
<
telerik:EditorTool
Name
=
"InsertDate"
/>
<
telerik:EditorTool
Name
=
"InsertTime"
/>
<
telerik:EditorTool
Name
=
"Bold"
/>
<
telerik:EditorTool
Name
=
"Italic"
/>
<
telerik:EditorTool
Name
=
"Underline"
/>
<
telerik:EditorTool
Name
=
"StrikeThrough"
/>
<
telerik:EditorTool
Name
=
"InsertOrderedList"
/>
<
telerik:EditorTool
Name
=
"InsertUnorderedList"
/>
</
telerik:EditorToolGroup
>
</
Tools
>
</
telerik:RadEditor
>
var
Input1 = $find("<%= TextBox1.ClientID %>");
Input1.SetValue(15);
It is throughing an error Null object.
Please help me how to resolve this
Hello,
I'm experiencing some trouble in the google-like filtering demo ( http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandcombo/defaultcs.aspx?product=grid ).
The ItemRequested event is never fired, Loading statement stands forever without displaying any results.
This is my implementation of the gridboundcolumn :
protected
override
void
SetupFilterControls(TableCell cell)
{
base
.SetupFilterControls(cell);
cell.Controls.RemoveAt(0);
RadComboBox combo =
new
RadComboBox();
combo.ID = (
"RadComboBox1"
+
this
.DataField);
combo.ShowToggleImage =
false
;
combo.Skin =
"WebBlue"
;
combo.EnableLoadOnDemand =
true
;
combo.AutoPostBack =
false
;
combo.MarkFirstMatch =
true
;
combo.Height = Unit.Pixel(100);
combo.ItemsRequested +=
new
RadComboBoxItemsRequestedEventHandler(
this
.combo_ItemsRequested);
combo.SelectedIndexChanged +=
new
RadComboBoxSelectedIndexChangedEventHandler(
this
.list_SelectedIndexChanged);
//cell.Controls.Clear();
cell.Controls.AddAt(0, combo);
cell.Controls.RemoveAt(1);
}
//RadGrid will call this method when the value should be set to the filtering input control(s)
protected
override
void
SetCurrentFilterValueToControl(TableCell cell)
{
base
.SetCurrentFilterValueToControl(cell);
RadComboBox combo = (RadComboBox)cell.Controls[0];
if
((
this
.CurrentFilterValue !=
string
.Empty))
{
combo.Text =
this
.CurrentFilterValue;
}
}
//RadGrid will cal this method when the filtering value should be extracted from the filtering input control(s)
protected
override
string
GetCurrentFilterValueFromControl(TableCell cell)
{
RadComboBox combo = (RadComboBox)cell.Controls[0];
return
combo.Text;
}
private
void
combo_ItemsRequested(
object
o, RadComboBoxItemsRequestedEventArgs e)
{
((RadComboBox)o).DataTextField =
this
.DataField;
((RadComboBox)o).DataValueField =
this
.DataField;
if
(
this
.UniqueName ==
"Autore"
)
{
try
{
((RadComboBox)o).DataSource = MYSOLUTION.DataLayer.GestioneAnomalie.GestioneAnomalieDataProvider.GetAutori(e.Text);
}
catch
(Exception ex)
{
throw
(ex);
}
}
else
if
(
this
.UniqueName ==
"Note"
)
{
try
{
((RadComboBox)o).DataSource = MYSOLUTION.DataLayer.GestioneAnomalie.GestioneAnomalieDataProvider.GetNote(e.Text);
}
catch
(Exception ex)
{
throw
(ex);
}
}
((RadComboBox)o).DataBind();
}
private
void
list_SelectedIndexChanged(
object
o, RadComboBoxSelectedIndexChangedEventArgs e)
{
GridFilteringItem filterItem = (GridFilteringItem)((RadComboBox)o).NamingContainer;
if
((
this
.UniqueName ==
"Index"
))
{
//this is filtering for integer column type
filterItem.FireCommandEvent(
"Filter"
,
new
Pair(
"EqualTo"
,
this
.UniqueName));
}
//filtering for string column type
filterItem.FireCommandEvent(
"Filter"
,
new
Pair(
"Contains"
,
this
.UniqueName));
}
RadGrid is in an ASCX file, it is placed in a RadAjaxPanel. A RadAjaxManager is also present down below the RadGrid, outside of the Ajax Panel.
<
telerik:RadGrid
ID
=
"RadGridGestioneAnomalie"
runat
=
"server"
AutoGenerateColumns
=
"False"
AllowFilteringByColumn
=
"true"
DataSourceID
=
"LinqDataSourceAnomalie"
GridLines
=
"Both"
Skin
=
"WebBlue"
AllowMultiRowSelection
=
"True"
AllowMultiRowEdit
=
"True"
SortingSettings-SortedBackColor
=
"AliceBlue"
SortingSettings-SortToolTip
=
"Ordina in base ai valori di questa colonna"
ShowStatusBar
=
"true"
StatusBarSettings-LoadingText
=
"Caricamento in corso"
StatusBarSettings-ReadyText
=
"Gestione Anomalie"
PageSize
=
"50"
PagerStyle-ForeColor
=
"Black"
PagerStyle-Position
=
"TopAndBottom"
PagerStyle-AlwaysVisible
=
"true"
EnableLinqExpressions
=
"true"
oninit
=
"RadGridGestioneAnomalie_Init"
onitemdatabound
=
"RadGridGestioneAnomalie_ItemDataBound"
onitemcommand
=
"RadGridGestioneAnomalie_ItemCommand"
oneditcommand
=
"RadGridGestioneAnomalie_EditCommand"
onitemcreated
=
"RadGridGestioneAnomalie_ItemCreated"
OnSortCommand
=
"RadGridGestioneAnomalie_SortCommand"
OnColumnCreating
=
"RadGridGestioneAnomalie_ColumnCreating"
oninsertcommand
=
"RadGridGestioneAnomalie_InsertCommand"
OnPreRender
=
"RadGridGestioneAnomalie_PreRender"
>
<
ExportSettings
IgnorePaging
=
"true"
OpenInNewWindow
=
"true"
FileName
=
"GestioneAnomalie"
ExportOnlyData
=
"true"
>
<
Pdf
FontType
=
"Subset"
PaperSize
=
"Letter"
AllowPrinting
=
"true"
/>
<
Excel
Format
=
"Html"
/>
<
Csv
ColumnDelimiter
=
"Comma"
RowDelimiter
=
"NewLine"
/>
</
ExportSettings
>
<
MasterTableView
GroupLoadMode
=
"Client"
HierarchyLoadMode
=
"Client"
CurrentResetPageIndexAction
=
"SetPageIndexToFirst"
VirtualItemCount
=
"50"
datakeynames
=
"ID_Anomalia"
datasourceid
=
"LinqDataSourceAnomalie"
CommandItemDisplay
=
"TopAndBottom"
GroupHeaderItemStyle-BackColor
=
"LemonChiffon"
AllowPaging
=
"true"
AllowCustomSorting
=
"true"
AllowFilteringByColumn
=
"true"
AutoGenerateColumns
=
"false"
AllowSorting
=
"true"
AllowNaturalSort
=
"false"
PagerStyle-Mode
=
"NextPrevNumericAndAdvanced"
PagerStyle-BackColor
=
"LightGray"
PagerStyle-ForeColor
=
"Black"
PagerStyle-Position
=
"TopAndBottom"
Name
=
"Anomalie"
NoMasterRecordsText
=
"Nessuna anomalia da mostrare"
AllowAutomaticDeletes
=
"True"
AllowAutomaticUpdates
=
"True"
AllowAutomaticInserts
=
"True"
CanRetrieveAllData
=
"True"
>
In the Page_Load, I pull out every column and later I put my personal dropdownfiltercolumn just for those column that has got particular UniqueName... here there's the code-behind :
protected
void
Page_Load(
object
sender, EventArgs e)
{
EnsureUpdatePanelFixups();
codiceProcesso =
this
.Page.Request.QueryString.Get(URLFactory.Param_ProcessoRilevatore);
if
(!(UserRole.isControlloQualita() || UserRole.isRilevatoreDelProcesso(codiceProcesso) || UserRole.isValidatoreDelProcesso(codiceProcesso)))
{
// Per ora disabilito
RadGridGestioneAnomalie.Visible =
false
;
//RadGridTotaliOperazioni.Visible = false;
}
RadGridGestioneAnomalie.MasterTableView.IsItemInserted =
false
;
LeggiParametriRicerca();
#region Creazione Filtro DropDown
if
(!IsPostBack)
{
_rgSupporto =
new
List<GridColumn>();
foreach
(GridColumn colonna
in
RadGridGestioneAnomalie.MasterTableView.Columns)
{
_rgSupporto.Add(colonna);
}
RadGridGestioneAnomalie.MasterTableView.Columns.Clear();
if
(_rgSupporto.Count > 0)
{
foreach
(GridColumn col
in
_rgSupporto)
{
if
((col.UniqueName ==
"Autore"
) || (col.UniqueName ==
"Note"
))
{
DropDownFilter gridColumn =
new
DropDownFilter();
this
.RadGridGestioneAnomalie.MasterTableView.Columns.Add(gridColumn);
gridColumn.DataField = col.HeaderText;
gridColumn.HeaderText = col.HeaderText;
}
else
this
.RadGridGestioneAnomalie.MasterTableView.Columns.Add(col);
}
}
}
any help is appreciated
thanks
Giovanni
<
div
style
=
"float:right; width: 100%;"
><
dnn:RADMENU
id
=
"dnnRADMENU"
runat
=
"server"
<br> Skin="Menu"<
br
> EnableEmbeddedSkins="false" <
br
> CollapseDelay="500" <
br
> ShowPath="True"<
br
> Width="100%"<
br
> Flow="Horizontal"<
br
> Align="Right"<
br
> ImagesOnlyMenu="false"<
br
> EnableAdminMenus="true"<
br
> /></
div
><
br
>
<
ASP:BUTTON
id
=
"btSmptApply"
runat
=
"server"
Width
=
"100px"
Text
=
"Apply"
Enabled="False" onclick="btSmptApply_Click" ValidationGroup="mail"
meta:resourcekey="btSmptApplyResource1"></
ASP:BUTTON
>
<
ASP:BUTTON
id
=
"btVerifySmtp"
runat
=
"server"
Width
=
"100px"
Text
=
"Verify"
ENABLED="False" onclick="btVerifySmtp_Click" ValidationGroup="mail"
meta:resourcekey="btVerifySmtpResource1"></
ASP:BUTTON
>
<
ASP:BUTTON
id
=
"btSMTPCancel"
runat
=
"server"
Width
=
"100px"
Text
=
"Reset"
CAUSESVALIDATION="False" onclick="btCancel_Click"
meta:resourcekey="btSMTPCancelResource1">
</
ASP:BUTTON
>
<
telerik:AjaxUpdatedControl
ControlID
=
"btSmptApply"
></
telerik:AjaxUpdatedControl
>
<
telerik:AjaxUpdatedControl
ControlID
=
"btVerifySmtp"
></
telerik:AjaxUpdatedControl
>
<
telerik:AjaxUpdatedControl
ControlID
=
"btSMTPCancel"
></
telerik:AjaxUpdatedControl
>
When these lines are enabled, the buttons align Vertically automatically, the following html is inserted automatically for each button:
<div style="display: block;" id="ctl00_ctl00_ContentPlaceHolder1_ConfigureMailServer1_btVerifySmtpPanel">
When I comment out the above lines of RadAjaxManagerProxy, the buttons align horizontally(as I want them to be).
My Questions:
1. Why is this happening?
2. What does RadAjaxManager to do with Alignment?
3. I worked with conventional Ajax (xmlHttpRequest object) etc alot. What role does RadAjaxManager play? why is it needed in a webpage?
Please let me know as soon as possible. Thanks in advance.