or
public
RadGridSurveyAnswerPointsModel ViewSurveyAnswerPoints(
int
startIndex,
int
maximumRows,
string
sortExpressions,
string
filterExpressions)
{
RadGridSurveyAnswerPointsModel model =
new
RadGridSurveyAnswerPointsModel();
IQueryable q = (from x
in
Context.cc_SurveyPoint
join y
in
Context.CC_SurveyPointMain on x.SurveyMainPointID equals y.ID
orderby x.Code
select
new
DenemeClass
{
Id = x.ID,
Code = x.Code,
Description = x.Description,
Sequence = x.Sequence,
isActive = x.ISActive,
IconId = x.IconId,
Point = x.Point,
SurveyMainPointId = y.Code
});
GridLinqBindingData data = RadGrid.GetBindingData(q, startIndex, maximumRows,
sortExpressions, filterExpressions);
model.AnswerPointsList = data.Data.OfType<DenemeClass>().ToList();
model.Count = data.Count;
return
model;
}
public
class
DenemeClass
{
public
Guid Id
{
get
;
set
;
}
public
string
SurveyMainPointId
{
get
;
set
;
}
public
string
Code
{
get
;
set
;
}
public
string
Description
{
get
;
set
;
}
public
int
Point
{
get
;
set
;
}
public
int
? IconId
{
get
;
set
;
}
public
int
? Sequence
{
get
;
set
;
}
public
bool
isActive
{
get
;
set
;
}
}
Hello,
I have created a web control that contains RadGrid based on this example: http://demos.telerik.com/aspnet-ajax/grid/examples/groupby/outlookstyle/defaultcs.aspx.
The problem is, all the buttons on this page are hidden - including those in the RadGrid used for grouping. Firebug shows:
button, input[type=
"submit"
], input[type=
"reset"
], input[type=
"button"
], input[type=
"checkbox"
], input[type=
"radio"
], select {
visibility
:
hidden
!important
;
}
If I remove "hidden" in firebug, buttons work well. Why is
the visibility set to hidden? I've found on this forum that it can be caused by RadFormDecorator. I'm using class "BasePage" that all the classes in the project inherit from. There, in OnPageLoad event I have:
Master.Controls.OfType<HtmlGenericControl>().First(t => t.TagName ==
"html"
)
.Controls.OfType<HtmlForm>().First()
.Controls.Add(
new
RadFormDecorator { DecoratedControls = FormDecoratorDecoratedControls.Fieldset | FormDecoratorDecoratedControls.Buttons });
When I skip this step during debugging, buttons are displayed and grouping works. But I have no idea how to solve that problem.
Buttons and grid work correctly on other pages/controls in the solution. I haven't noticed any difference between my page and the others that could have any influence on that situation like additional scripts, styles etc.
What could be wrong?
Thank you in advance.