I had a similiar question but I didnt see an answer so...
I am updating a Org item... but I need to updated the 'updatedby' and 'updateddate' which I must do programmatically since it is not part of the radgrid... How do I do this ?
Here is how I am trying to do it but the break point is not being hit.. is this the right way to get my custom update? I suppose I COULD create a seperate stored procedure.. but it would be nice if I could keep it in the entities world.
<
asp:EntityDataSource
ID
=
"EntityDataSource1"
runat
=
"server"
ConnectionString
=
"name=G3TEntities"
DefaultContainerName
=
"G3TEntities"
EnableFlattening
=
"False"
EnableInsert
=
"True"
EntitySetName
=
"Orgs"
EnableUpdate
=
"True"
OnUpdated
=
"EntityDataSource1_Updated"
>
</
asp:EntityDataSource
>
protected void EntityDataSource1_Updated(object sender, EntityDataSourceChangedEventArgs e)
{
Org oOrg = new Org();
oOrg = (Org)e.Entity;
oOrg.updateby = 69;
}
Hi Team
I have two Telerik RadComboBox at the bottom of the page. On selection change of first RadComboBox ,2nd RadComboBox will populate, In this case binding is working fine but Page does not maintain scroll position at the bottom of the page, It goes on the top of the page.
I have written MaintainScrollPositionOnPostback="true" but it is not working.
Please help me ,It’s very urgent.
My Code blocks is
<telerik:RadComboBox ID="drpRequestType" Width="185px" runat="server" AutoPostBack="True"
OnSelectedIndexChanged="drpRequestType_SelectedIndexChanged" EnableScreenBoundaryDetection="true" >
</telerik:RadComboBox>
<telerik:RadComboBox Width="185px" ID="drpSubRequestType" runat="server">
</telerik:RadComboBox>
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="drpRequestType">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="drpSubRequestType" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>
With this set up, the border on the bottom / last menu item is a double line border while the others are as designed in the CSS below. How do I make the last item like the others?
<
telerik:RadMenu ID="USSRadMenu" runat="server" DataSourceID="USSsmd" EnableEmbeddedSkins="false" Skin="">
</telerik:RadMenu>
div.RadMenu .rmGroup .rmLink
{
color: #000;
border:1px solid #DEDFDF;
padding: 2px 0 2px 0;
}
TIA
ProviderName="System.Data.
SelectCommand="SELECT [SiteVisitID], [SiteVisitStart], [SiteVisitEnd], [SiteVisitSubject], [SiteVisitDue], [SiteVisitPriority] FROM [tbl_SiteVisit] WHERE ([SiteVisitStart] IS NOT NULL) AND ([SiteVisitEnd] IS NOT NULL)"
InsertCommand="INSERT INTO [tbl_SiteVisit] ([SiteVisitSubject], [SiteVisitStart], [SiteVisitEnd]) VALUES (@Subject, @Start, @End)"
UpdateCommand="UPDATE [tbl_SiteVisit] SET [SiteVisitStart] = @Start, [SiteVisitEnd] = @End, [SiteVisitSubject] = @Subject WHERE SiteVisitID = @ID"
DeleteCommand="DELETE FROM [tbl_SiteVisit] WHERE [SiteVisitID] = @ID">
<insertparameters>
<asp:Parameter Name="Subject" Type="String" />
<asp:Parameter Name="Start" Type="DateTime" />
<asp:Parameter Name="End" Type="DateTime" />
</insertparameters>
<updateparameters>
<asp:Parameter Name="Subject" Type="String" />
<asp:Parameter Name="Start" Type="DateTime" />
<asp:Parameter Name="End" Type="DateTime" />
<asp:Parameter Name="ID" Type="Int32" />
</updateparameters>
<deleteparameters>
<asp:Parameter Name="ID" Type="Int32" />
</deleteparameters>
</asp:SqlDataSource>
<script type="text/javascript"> | |
function CalculateLength(editor, value) { | |
var textLength = editor.get_text().length; | |
var clipboardLength = value.length; | |
textLength += clipboardLength; | |
return textLength; | |
} | |
function ClientExecuteCommand(editor, args) { | |
var commandName = args.get_commandName(); | |
var value = args.get_value(); | |
if (commandName == "PasteFromWord" | |
|| commandName == "PasteFromWordNoFontsNoSizes" | |
|| commandName == "PastePlainText" | |
|| commandName == "PasteAsHtml" | |
|| commandName == "Paste") { | |
var textLength = CalculateLength(editor, value); | |
if (textLength >= 10) { | |
alert("Max char. reached"); | |
args.set_cancel(true); | |
} | |
} | |
} | |
</script> |
<telerik:RadEditor ID="RadEditor1" runat="server" OnClientCommandExecuted="ClientExecuteCommand"> | |
<Content> | |
</Content> | |
</telerik:RadEditor> |
Hi,
We have following query on Rad editor
When data is get copied from notepad into telerik editor, line break by “br” (<br />) tag get added. Also new line char. (\r\n) present in editor content.
Is there any way to keep only “br” or new line char. (\r\n), when data is being copied to editor design mode from notepad?
Fixed: The dropdown size is incorrect in IE the first time if there are items with long text with spaces
However, we're now seeing a similar problem (the dropdown size is very small the first time you open it; it's correctly sized the second and subsequent times) in our application after upgrading to 2010.2.929; we weren't seeing it before (on the Q2 SP1 release). It appears to occur on a RadComboBox that has items with long text with spaces; the dropdown size isn't longer than the window size.
Is there a workaround/known issue?
<
telerik:RadMenuItem
runat
=
"server"
<Items><
telerik:RadMenuItem
>
<
ItemTemplate
>
<
ContentTemplate
>
My code here....
</
ContentTemplate
>
<
ItemTemplate
>
</
Items
>
</telerik:RadMenuItem
>