| If (TypeOf (e.Item) Is GridDataItem) Then |
| 'Get the instance of the right type |
| Dim dataBoundItem As GridDataItem = e.Item |
| 'Check the formatting condition |
| If (dataBoundItem("wydarzenie_id").Text).Length > 6 Then |
| dataBoundItem("wydarzenie_id").Text = "asd" |
| 'Customize more... |
| End If |
| End If |
<
telerik:RadGrid...
AutoGenerateEditColumn="True"
AutoGenerateDeleteColumn="True"
<
MasterTableView...
AutoGenerateColumns="True"
That means i do not have any columns in aspx because i bind the grid to the datasource in "DropDownList1_SelectedIndexChanged" event.
How to:
1- Change "Edit,Delete" column index?
ex: Make Delete column the last one.
2- Convert "Edit,Delete" column "ButtonType" to "ImageButton"?
| .txt_box { |
| padding: 3px 5px; |
| border: 1px solid #CCCCCC; |
| background: url(../images/homepage19.gif) repeat-x left top; |
| } |
| <EnabledStyle CssClass="txt_box" PaddingLeft="4px" /> |
protected void OnItemDataBoundGrid(object sender, Telerik.Web.UI.GridItemEventArgs e)
for the rad grid
So I need something like
protected void OnItemDataBoundGrid(object sender, Telerik.Web.UI.GridItemEventArgs e)
{
if (e.Item is GridDataItem)
{
GridDataItem item = (GridDataItem)e.Item;
GridTemplateColumn gtc = (GridTemplateColumn)item["gtc1"].FindControl("idontknow");
}
}
I need to change the text in the header.
I originall had the text here
<telerik:GridTemplateColumn HeaderText="CLICK HERE TO SORT" SortExpression="CostToDate" UniqueName="gtc2">
<HeaderTemplate>
<asp:LinkButton ID="lblCostYear" CommandName="Sort" runat="server" OnDataBinding="OnBindCostYearHeader"></asp:LinkButton>
</HeaderTemplate>
But if I put the text in the linkbutton the automatic sorting doesnt take effect
help
Imports
Telerik.Web.UI
| Protected Sub RadScheduler1_AppointmentCreated(ByVal sender As Object, ByVal e As Telerik.Web.UI.AppointmentCreatedEventArgs) Handles RadScheduler1.AppointmentCreated |
| If (e.Appointment.Visible _ |
| AndAlso Not IsAppointmentRegisteredForTooltip(e.Appointment)) Then |
| RadToolTipManager1.TargetControls.Add(e.Appointment.ClientID, True) |
| End If |
| End Sub |
function SelectClicked()
{
var grid = window[\"gridPopup\"];
if(grid.SelectedItems[0] != null)
{
var row = grid.SelectedRows[0];
var oWindow = GetRadWindow();
scriptText.Append("oWindow.Close(row.KeyValues);
}
}
But this doesn't work with prometheus.
Please suggest.
We are trying to use the spell checking tool. We noted that while it detects the error, the correct word is seldom in the list of possible words. We have set the attributes correctly and can even reproduce the problem using the spell checker for English on the Telerik website. To reproduce the problem, try the following sentences:
1. This is a test where the wodr is spelt wrong. ----- wodr is detected as bad spelling and many options are suggested as corrections, but the most obvious where just the last 2 letters are in the wrong order is no. The option “word” is not in the list of possible corrections.
2. This is a tets where the word is spelt wrong. ------ tets is also detected as bad spelling, but “test” is not suggested as a possible correction.
It seems to me that the algorithm is incorrect if it can suggest so many possible corrections with many different letters that are not in the word, but it does not suggest the word where the letter order is typed incorrectly, which is a frequent error users would make.
Please advise.
Regards
