Hi,
I have one textbox with multiline TextMode on my page. I have set MaxLength to 500 characters.
<Telerik:RadTextBox id="radtb1" runat="server" TextMode="MultiLine"
width="400px" Height="80px" MaxLength="500" ></telerik:RadTextBox>
If I type in this textbox, it does not allow to type more then 500 chars but if I directly paste more than 1000 chars then it allows me to paste.
I don’t want to allow anyone to paste more than MaxLength characters.
Is there any way or any property to fix this problem?
Thanks,
Tarulatta Patel.

<asp:DataList ID="someid" runat="server" RepeatLayout="Table" ItemStyle-Width="300px"
RepeatColumns="2" RepeatDirection="Vertical"
DataKeyField="somekeydata" >
<HeaderTemplate>
<table>
<tr>
<td class="label" colspan="8">
some info
</td>
</tr>
</table>
</HeaderTemplate>
<ItemStyle />
<ItemTemplate>
<asp:Label ID="someid2" runat="server" Text=<%#Eval("somedata")%>></asp:Label>
<asp:Label ID="someid3" runat="server" Text=<%#Eval("somedata")%> ></asp:Label>:
<img id="someid4" runat="server" src="images/someimage.gif" alt="some alt." align="absmiddle"
border="0" height="10" />
<telerik:RadDatePicker ID="RadDate1" Runat="server" DbSelectedDate='<%#Bind("dates")%>' >
</telerik:RadDatePicker>
</ItemTemplate>
</asp:DataList>
Cs file
private RadDatePicker getdate= new RadDatePicker();
protected
void Save_Click(object sender, EventArgs e)
{
foreach (DataListItem ls in someid.Items)
{
int key= (int)someid.DataKeys[ls.ItemIndex];
getdate= (
RadDatePicker)ls.FindControl("RadDate1");
object somevariable = Convert.ToDateTime(getdate.SelectedDate); //each time the date is null
}
}
I really appreciate for your help.
Thanks
<
telerik:RadComboBox ID="comboManagers"
Runat="server"
Height="115px"
Width="250px"
Skin="Sunset"
EnableLoadOnDemand="true"
AllowCustomText="True"
OnClientSelectedIndexChanged="LoadGrid"
>
<
CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
</telerik:RadComboBox>
<telerik:RadGrid ID="RadGrid1"
runat="server" AllowPaging="True"
AllowSorting="True"
GridLines="None"
ShowGroupPanel="True"
OnNeedDataSource="RadGrid1_NeedDataSource"
>
...
function
LoadGrid(combo, eventargs) {
var grid = $find("RadGrid1");
if (grid != null)
{
var item = eventarqs.get_item();
???
}
}
Currently we are using the Rad Grid in our application and we need to set the first column as seleted with the dropdown image. We set the sort expression and while clicking on the hear only it is getting selected and the direction arrow image is showing. While loading the page itself, how can we set this property with the direction (asending/descending) images?
| <telerik:RadGrid ID="grid1" Skin="Default" runat="server" Visible="False" AutoGenerateColumns="False" |
| ShowHeader="False" Width="400px" OnItemDataBound="grid1_ItemDataBound" AllowMultiRowSelection="True" |
| OnRowDrop="grid1_RowDrop" OnDeleteCommand="grid1_DeleteCommand" OnPreRender="grid1_PreRender"> |
| <MasterTableView DataKeyNames="AnswerID"> |
| <DetailTables> |
| <telerik:GridTableView Name="grid2"> |
| <Columns> |
| <telerik:GridBoundColumn AllowFiltering="False" AllowSorting="False" DataField="AnswerLabel" |
| ReadOnly="True" Reorderable="False" Resizable="False" ShowSortIcon="False" UniqueName="colAnswerLabel"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="QuestionID" UniqueName="colQuestionID" Visible="False"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="AnswerID" UniqueName="colAnswerID" Visible="False"> |
| </telerik:GridBoundColumn> |
| </Columns> |
| <RowIndicatorColumn> |
| <HeaderStyle Width="20px" /> |
| </RowIndicatorColumn> |
| <ExpandCollapseColumn> |
| <HeaderStyle Width="20px" /> |
| </ExpandCollapseColumn> |
| </telerik:GridTableView> |
| </DetailTables> |
| <Columns> |
| <telerik:GridBoundColumn AllowFiltering="False" AllowSorting="False" DataField="AnswerLabel" |
| ReadOnly="True" Reorderable="False" Resizable="False" ShowSortIcon="False" UniqueName="colAnswerLabel"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="QuestionID" UniqueName="colQuestionID" Visible="False"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="AnswerID" UniqueName="colAnswerID" Visible="False"> |
| </telerik:GridBoundColumn> |
| </Columns> |
| <RowIndicatorColumn> |
| <HeaderStyle Width="20px" /> |
| </RowIndicatorColumn> |
| <ExpandCollapseColumn> |
| <HeaderStyle Width="20px" /> |
| </ExpandCollapseColumn> |
| </MasterTableView> |
| <ClientSettings AllowRowsDragDrop="True"> |
| <Selecting AllowRowSelect="True" /> |
| </ClientSettings> |
| </telerik:RadGrid> |
protected void btnAddNewRow_OnClick(object sender, ImageClickEventArgs e)
{
if (Page.IsValid)
this.btnAdd_OnClick(sender, e);
}
I get an error in this case.....
What am I missing ?
When I press the link on the grid itself , it works just fine , so what is the difference ?
I'm seeing some odd behaviour on a master page. The ajaxmanager and the control being updated are on the master page itself - not inside contentplaceholders.
var ajaxManager = $find("<%= RadAjaxManager1.ClientID %>");
alert(ajaxManager); // This prints "object" on first call but "null" on all subsequent calls.
ajaxManager.ajaxRequest("nodeclick");
Seems I can't get a reference to ajaxmanager conistsnetly - does this make sense at all?
Cheers,
Andles.