Hello, I'm using a custom advanced form (both insertion and edition)
And I'd like all of the events fired within the advanced form to only show a panel for the advanced form modal window.
So in my AdvancedForm.ascx I hate the following code :
<
telerik:RadAjaxManagerProxy
ID
=
"rAjaxMan_advForm"
runat
=
"server"
>
<
AjaxSettings
>
<
telerik:AjaxSetting
AjaxControlID
=
"RadMultiPage1"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"RadMultiPage1"
LoadingPanelID
=
"rAjaxLPan_advForm"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
</
AjaxSettings
>
</
telerik:RadAjaxManagerProxy
>
<
telerik:RadAjaxLoadingPanel
ID
=
"rAjaxLPan_advForm"
runat
=
"server"
/>
Which is supposed to display the loading panel for the RadMultiPage1 in case an even is fired inside the RadMultiPage1
But this never happens. Also tried setting different "AjaxControl" and "AjaxUpdatedControl", but this does not seem to change anything
My AdvancedForm is based on Telerik's template and the RadMultiPage is the top element in the "<div class="rsAdvContentWrapper">" element (which is the div right after the title bar)
I also have an AjaxSettings for the Radscheduler events and he is "catching" those postbacks when I'm in the AdvancedForm. I want to override it
Thank you for taking your time to answer me !
Hello,
I am tring to add/create html buttons to the toolsbar something like <>
Also I want to add language localization to the toolsbar.
I am not able to make it work. can you please give me a hand with some example code or information.
Thanks.
I use the following to print the middle pane on my project , but i will get times when the print preview is blank, if you hit cancel then print it will be good, but if you then hit cancel again and hit print again it will once again be blank
function PrintPaneScada(paneID) {
var splitter = $find("RadSplitter1");
var pane =
splitter.GetPaneById(paneID);
if (!pane) return;
var arrExtStylsheetFiles = getTelerikCssLinks2();
pane.Print(arrExtStylsheetFiles);
}
The problem is as followed:
I have 3 text boxes: Fee, Donation, Total.
Fee cannot be modified, and the user cannot type in this textbox
Donation starts at 0 and the user can change the value based on what they want to donate
Total needs to be updated based on what the user types in donation. It needs to be Donation+Fee
How can I use AJAX to make the Total textbox get updated on the fly based on what is entered in Donation?
I have a question about the behavior of the RadEditor control.
We a page in our website that contains a RadEditor
control. This page is on two different
servers representing two different environments. Test environment and Production
Environment. The page is the same page
in both environments.
Here is the quandary, the RadEditor control is behaving
differently on the two servers.
In the test Environment if I type the following into the
control:
Test
Test
Test
Test
And then look at the HTML I see:
Test<br />
Test<br />
Test<br />
Test<br />
As I would expect.
However in the Production Environment if I type
Test
Test
Test
Test
Then look at the HTML I see:
<p>Test </p>
<p>Test </p>
<p>Test </p>
<p>Test </p>
I am at a loss as to why the behavior is so different. Is there some configuration that could be
different between the servers / environments?
Why would the control behave differently like this?
Thanks for your help.
Gary Graham
Hello and thank you for taking your time to help me :
When the user is moving the appointment or resizing them, I'm displaying a javascript "confirm" that should impact the appointment to be updated
If the confirm returns true, I want to add a custom attribute to the appointment, else, I do nothing
But it seems that client-side modifications do not affect the appointment that is received on server-side
Here is my function for Moving (Resizing is pretty much the same) :
function
ClientAppointmentMoveEndHandler(sender, args) {
var
app = args.get_appointment();
var
confirmMessage =
"Bla bla bla."
+
"\nWant to notify?"
;
if
(confirm(confirmMessage)) {
app.get_attributes().setAttribute(
"notifyModif"
,
"true"
);
}
}
Also tried to modify the subject in case it would be related to the attributes, but didn't work either
My server-side event handler is :
protected
void
RadScheduler1_AppointmentUpdate(
object
sender, AppointmentUpdateEventArgs e)
{
AppointmentInfo ai = FindById(e.ModifiedAppointment.ID);
ai.CopyInfo(e.ModifiedAppointment);
ai.ApplyChangesToDB();
}
I'm using the debugger to see the state of e.ModifiedAppointment when reaching the first line of the handler, and neither the subject nor the Attributes collection are changed (though they should have been by my Javascript code)
How can I achieve that?
Also, if your solution could use a radconfirm instead of a confirm that would be awesome !
Thank you for your help
When I type a long paragraph until the vertical scroll bar appears and then press enter key the scroll bar jumps up and I need to scroll it down to continue typing. It happens when the NewLineMode is set "P". It works fine NewLineMode is set to "Br".
I have the following Combobox setup on my page:
<
telerik:RadComboBox
ID
=
"cbxDup"
runat
=
"server"
Width
=
"350px"
DropDownWidth
=
"375px"
Height
=
"340px"
Skin
=
"Default"
HighlightTemplatedItems
=
"True"
MarkFirstMatch
=
"true"
AutoPostBack
=
"True"
EnableLoadOnDemand
=
"True"
EnableVirtualScrolling
=
"True"
>
<
HeaderTemplate
>
<
h2
>Codes</
h2
>
</
HeaderTemplate
>
<
ClientItemTemplate
>
<
ul
class
=
"Main"
>
<
li
><
span
> #= Text # </
span
></
li
>
<
span
> #= Attributes.Description # </
span
>
</
ul
>
</
ClientItemTemplate
>
<
WebServiceSettings
Method
=
"LoadComboBox"
Path
=
"SysProf-Add.aspx"
/>
</
telerik:RadComboBox
>
With the following server code:
<WebMethod()>
Public
Shared
Function
LoadComboBox(
ByVal
context
As
RadComboBoxContext)
As
RadComboBoxData
Dim
data
As
DataTable =
Nothing
Dim
comboData
As
New
RadComboBoxData()
Try
data = GetData()
Dim
itemOffset
As
Integer
= context.NumberOfItems
Dim
endOffset
As
Integer
= Math.Min(itemOffset + 100, data.Rows.Count)
comboData.EndOfItems = endOffset = data.Rows.Count
Dim
result
As
New
List(Of RadComboBoxItemData)(endOffset - itemOffset)
For
Each
dr
As
DataRow
In
data.Rows
Dim
itemData
As
New
RadComboBoxItemData()
itemData.Value = dr.Item(0)
itemData.Text = dr.Item(1)
itemData.Attributes.Add(
"Description"
, dr.Item(2))
result.Add(itemData)
Next
comboData.Message = GetStatusMessage(endOffset, data.Rows.Count)
comboData.Items = result.ToArray()
Return
comboData
Catch
ex
As
Exception
Return
Nothing
End
Try
End
Function
What I would like to do is access the Description attribute in the cbxDup.SelectedIndexChanged event?
Thanks in advance
Steve