Hello,
I have a problems with my radgrid control,(Plaese view the attached image and refer to the numbers).
1) How can change the localization of this sentence to arabic (Page 1 of 1,Items 1 to 2 of 2)
2) This rad has only one column (GridTemplateColumn column) which generates white margins (top, left, right and bottom), how can I remove them (I need margin = 0)?
3) As you can see in the left hand of the attached image there is a black vertical line which was generated by the GridTemplateColumn column. how can I remove it?
Please, I need your help,
It is appreciated to send me the modified code.
Regards,
Bader
I have a problems with my radgrid control,(Plaese view the attached image and refer to the numbers).
<
telerik:RadGrid
ID
=
"RadGrid1"
runat
=
"server"
Skin
=
"Vista"
AllowPaging
=
"True"
PagerStyle-AlwaysVisible
=
"true"
PagerStyle-Position
=
"TopAndBottom"
AllowSorting
=
"True"
AutoGenerateColumns
=
"False"
DataSourceID
=
"SqlDataSource1"
GridLines
=
"None"
>
<
MasterTableView
DataKeyNames
=
"PsPostID"
ShowHeader
=
"false"
TableLayout
=
"Fixed"
DataSourceID
=
"SqlDataSource1"
Width
=
"840px"
>
<
NoRecordsTemplate
></
NoRecordsTemplate
>
<
Columns
>
<
telerik:GridTemplateColumn
ItemStyle-Width
=
"100%"
ItemStyle-Height
=
"100%"
UniqueName
=
"TemplateColumn"
InitializeTemplatesFirst
=
"false"
>
<
ItemTemplate
>
<
table
border
=
"0"
cellpadding
=
"0"
cellspacing
=
"0"
width
=
"100%"
>
<
tr
style
=
"height:50px; background-image:url('../../Design/BackGrounds/PostHeader.jpg');"
>
<
td
colspan
=
"2"
>
<
asp:Panel
ID
=
"Panel1"
runat
=
"server"
Width
=
"100%"
Height
=
"100%"
style
=
"margin-left:-10px; vertical-align:top;"
>
<
table
cellpadding
=
"0"
cellspacing
=
"0"
style
=
"height:100%;"
width
=
"100%"
>
<
tr
>
<
td
id
=
"Td4"
runat
=
"server"
align
=
"right"
style
=
"height:10%;"
>
<
asp:Label
ID
=
"Label6"
runat
=
"server"
Text="<%$ Resources:Resource, ForumsPagesPostsTableSubjectLabel %>" ></
asp:Label
>
<
asp:Label
ID
=
"Label9"
runat
=
"server"
Text='<%# Eval("PsMessageSubject", "{0}") %>'></
asp:Label
>
<
a
name='<%# Eval("PsPostID", "{0}") %>'> </
a
><
br
/>
<
asp:Label
ID
=
"Label10"
runat
=
"server"
Text="<%$ Resources:Resource, ForumsPagesPostsTablePostedOnLabel %>" ></
asp:Label
>
<
asp:Label
ID
=
"Label11"
runat
=
"server"
Text='<%# Eval("PsPostDate", "{0}") %>'></
asp:Label
>
</
td
>
</
tr
>
</
table
>
</
asp:Panel
>
</
td
>
</
tr
>
<
tr
valign
=
"top"
>
<
td
style
=
"width:20%;"
>
<
br
/>
<
asp:Image
ID
=
"Image2"
ImageUrl
=
"~/registration-login/avatars/Default.JPG"
runat
=
"server"
/>
<
br
/><
br
/>
<
asp:HyperLink
ID
=
"HyperLink2"
Text='<%# Eval("UUserName", "{0}") %>' NavigateUrl='<%# "~/registration-login/SPages/UserDetails.aspx?userId=" + Eval("UUserID", "{0}") %>' runat="server"></
asp:HyperLink
>
<
br
/>
<
asp:Label
ID
=
"Label4"
runat
=
"server"
Text="<%$ Resources:Resource, ForumsPagesPostsFirstColumnPostsLabel %>" ></
asp:Label
><
asp:HyperLink
ID
=
"HyperLink1"
Text='<%# Eval("UPostCount", "{0}") %>' NavigateUrl='<%# "~/Forums/Pages/UserPosts.aspx?userId=" + Eval("UUserID", "{0}") %>' runat="server"></
asp:HyperLink
>
</
td
>
<
td
style
=
"width:80%;"
>
<
asp:Panel
ID
=
"ContentPanel"
runat
=
"server"
Width
=
"100%"
Height
=
"100%"
style
=
"margin-left:-10px; vertical-align:top;"
>
<
table
cellpadding
=
"0"
cellspacing
=
"0"
style
=
"height:100%;"
width
=
"100%"
>
<
tr
style
=
"vertical-align:top;"
>
<
td
id
=
"Td2"
runat
=
"server"
align
=
"right"
style
=
"height:90%;"
>
<
asp:Label
ID
=
"Label3"
runat
=
"server"
Text='<%# Eval("PsMessageContent", "{0}") %>'></
asp:Label
>
<
br
/><
br
/><
br
/><
br
/><
br
/><
br
/><
br
/><
br
/>
<
table
width
=
"100%"
>
<
tr
>
<
td
id
=
"Td3"
style
=
"width:100%;"
runat
=
"server"
align
=
"left"
>
<
asp:Label
ID
=
"PsPostIDSessionLabel"
runat
=
"server"
Text='<%# Eval("PsPostID").ToString() %>' Visible="false"></
asp:Label
>
<
asp:LinkButton
ID
=
"EditLinkButton"
runat
=
"server"
Font-Size
=
"12pt"
Font-Bold
=
"true"
Font-Italic
=
"true"
onClick
=
"EditLinkButtonClickHandler"
Text="<%$ Resources:Resource, ForumsPagesPostsSecondColumnEditHyperlink %>" Visible='<%# Convert.ToInt32(LoggedOnUserID) == Convert.ToInt32(Eval("UUserID", "{0}")) %>' ></
asp:LinkButton
>
<
asp:LinkButton
ID
=
"ReplyLinkButton"
runat
=
"server"
Font-Size
=
"12pt"
Font-Bold
=
"true"
Font-Italic
=
"true"
onClick
=
"ReplyLinkButtonClickHandler"
Text="<%$ Resources:Resource, ForumsPagesPostsSecondColumnReplyHyperlink %>" ></
asp:LinkButton
>
</
td
>
</
tr
>
</
table
>
</
td
>
</
tr
>
<
tr
>
<
td
align
=
"right"
>
<
hr
/>
<
asp:Label
ID
=
"Label5"
runat
=
"server"
Text='<%# Eval("USigniture", "{0}") %>'></
asp:Label
>
</
td
>
</
tr
>
</
table
>
</
asp:Panel
>
</
td
>
</
tr
>
</
table
>
</
ItemTemplate
>
<
ItemStyle
HorizontalAlign
=
"Center"
CssClass
=
"PostImageGradient"
/>
<
ItemStyle
VerticalAlign
=
"Top"
/>
</
telerik:GridTemplateColumn
>
</
Columns
>
</
MasterTableView
>
<
PagerStyle
Mode
=
"NumericPages"
></
PagerStyle
>
</
telerik:RadGrid
>
1) How can change the localization of this sentence to arabic (Page 1 of 1,Items 1 to 2 of 2)
2) This rad has only one column (GridTemplateColumn column) which generates white margins (top, left, right and bottom), how can I remove them (I need margin = 0)?
3) As you can see in the left hand of the attached image there is a black vertical line which was generated by the GridTemplateColumn column. how can I remove it?
Please, I need your help,
It is appreciated to send me the modified code.
Regards,
Bader