Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
64 views
Hi, I'm having a problem with the components and RadDate RadComboBox, they'reinside a div and I can not modify any information on them, I can not select the contentsby clicking the item to view the information. The enable this to true and yet does nothing
Silderado
Top achievements
Rank 1
 asked on 23 Mar 2011
2 answers
118 views
I noticed when you disable a RibbonBarButton only its Text property gets affected. It grays out the corresponding text and that's it. You can still hover the button (image) itself, so it looks like the button has not been disabled at all. It would be great that a disabled RibbonBarButton shows a grayed out Text and Image without hover effect, like it is used within Office software. I don't know if there's a workaround for this or if it's a known issue which will be corrected in an upcoming release. Hopefully someone can clear things up for me. Thanks in advance.

Regards,
Datamex
Datamex
Top achievements
Rank 2
 answered on 23 Mar 2011
4 answers
134 views

Loading a script within a Master page does not work at all.  I get the following error from IE7 when loading the page:

error: 'ResetForm'  is undefined
Code: 0
URL: http://localhost:.........

In the master page is the following code

<telerik:RadScriptManager ID="RadScriptManager1" Runat="server">
        <Scripts>
            <asp:ScriptReference Path="~/Scripts/common.js"  />
        </Scripts>
    </telerik:RadScriptManager>  




The script file (common.js) is:
function ResetForm(sender, eventArgs) {
    document.forms[0].reset();
    return false;
}


I am thinking that the masterpage is loaded after the content. so, in that case why is there a script manager
in the master page?? Or should I be loading my script in the content page?? I haven't seen an answer to this
seemingly common problem anywhere.


thank you!


Pero
Telerik team
 answered on 23 Mar 2011
4 answers
112 views
Hi,
when adding the text box inside the RADEditor, after submitting the page it automatically inserts some table tag around the text box tag. any idea how to prevent this behaviour?


regards,
Elangovan P
Dobromir
Telerik team
 answered on 23 Mar 2011
2 answers
91 views
When I paste the following HTML from word without any format stripping into design mode, RadEditor will not allow me to allign the text left until I switch to HTML mode and back to design mode. It seems the filters are not being applied.

<P style="TEXT-ALIGN: center; MARGIN: 0cm 0cm 10pt" class=MsoNormal align=center><SPAN style="COLOR: #00b050"><FONT face=Calibri>This is an extremely sophisticated newsletter<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></FONT></SPAN></P
<P style="TEXT-ALIGN: center; MARGIN: 0cm 0cm 10pt" class=MsoNormal align=center><SPAN style="COLOR: #00b050"><FONT face=Calibri>DOCUMENT<o:p></o:p></FONT></SPAN></P
<P style="TEXT-ALIGN: center; MARGIN: 0cm 0cm 10pt" class=MsoNormal align=center><o:p><FONT face=Calibri> </FONT></o:p></P>
Michael
Top achievements
Rank 1
 answered on 23 Mar 2011
1 answer
159 views
I have a TabStrip that is connected to a MultiPage. When using the UI, these two items are synched up correctly.

I use the tabs in a pseudo-wizard type application. When my app starts, all the tabs but the first one are disabled.  There is a button on the first tab (multipage actually) that when pressed, "starts" the process, and clicking it should enable all the other tabs, and move you to the second tab in the process to begin the data entry.

Here is my basic setup (partially removed items to condense code)
<telerik:RadTabStrip ID="RadTabStrip1" runat="server" Skin="Telerik" MultiPageID="RadMultiPage1">
    <Tabs>
        <telerik:RadTab runat="server" Text="Order Setup" Value="OrderSetup" PageViewID="rpvOrderSetup" Selected="true" />
        <telerik:RadTab runat="server" Text="Patient Information" Value="PatientInformation" PageViewID="rpvPatientInformation" Enabled="false" />
        <telerik:RadTab runat="server" Text="Order Information" Value="OrderInformation" PageViewID="rpvOrderInformation" Enabled="false" />
    </Tabs>
</telerik:RadTabStrip>
<telerik:RadMultiPage ID="RadMultiPage1" runat="server">
    <telerik:RadPageView ID="rpvOrderSetup" runat="server" Selected="true">
        <hr style="margin: 0px; padding: 0px; width: 100%;" />
        <local:OrderSetup runat="server" ID="OrderSetup" />
    </telerik:RadPageView>
    <telerik:RadPageView ID="rpvPatientInformation" runat="server">
        <hr style="margin: 0px; padding: 0px; width: 100%;" />
        <local:PatientInformation runat="server" ID="PatientInformation" />
    </telerik:RadPageView>
    <telerik:RadPageView ID="rpvOrderInformation" runat="server">
        <hr style="margin: 0px; padding: 0px; width: 100%;" />
        <local:OrderInformation runat="server" ID="OrderInformation" />
    </telerik:RadPageView>
</telerik:RadMultiPage>

And here is the code behind:
void OrderSetup_Click(EventArgs e)
{
    RadTabStrip1.FindTabByValue("OrderSetup").ImageUrl = "~/images/Ok.png";
    IList<RadTab> tabs = RadTabStrip1.GetAllTabs();
    foreach (RadTab tab in tabs) tab.Enabled = true;
    RadTabStrip1.FindTabByValue("PatientInformation").Selected = true;
    RadMultiPage1.FindPageViewByID("rpvPatientInformation").Selected = true;
    // RadMultiPage1.SelectedIndex = RadMultiPage1.FindPageViewByID("rpvPatientInformation").Index;
            // rpvPatientInformation.Selected = true;           
           // RadMultiPage1.SelectedIndex = 1; 
}

Most of this works. The image is added to the first tab, all the tabs are enabled, and the Patient Information tab is selected.

But what does NOT work is that the matching PageView is NOT selected. It still displays the PageView of the first tab.

What am I doing wrong?
Princy
Top achievements
Rank 2
 answered on 23 Mar 2011
2 answers
66 views

 

 

I need to show upcoming appointments from today to 7 days ahead. This works fine when the appointment is not recurring.

This works fine for non recurring appointments:

For Each a In RadScheduler1.Appointments.GetAppointmentsInRange("2011-03-21", "2011-03-28")
    ...add appointment data to table.
Next

While this also works with recurring appointments:

For Each a In RadScheduler1.Appointments
    ...add appointment data to table.
Next

Now, is there a way to include any occurrences (from all recurring appointments) that meets the given period even if the Recurring appoinment Start date is before the given period?

Veronica
Telerik team
 answered on 23 Mar 2011
1 answer
794 views
Hello,

I am using a RadComboBox on an Ajax Modal Popup Extender.

What I am attempting to do is to select a specific item in the combo box and have that item displayed as the selected item in the combo box.  Prior to displaying the popup that contains the combo box, the combo box is populated and I know the Value of the item that I want to select.

Here is the javascript I am using:

rcbSearchOffices.trackChanges();

rcbSearchOffices.set_value(defaultOfficeId.value);

 

var

item = rcbSearchOffices.findItemByValue(defaultOfficeId.value);

 

 

rcbSearchOffices.set_selectedItem(item);

 

rcbSearchOffices.updateClientState();

rcbSearchOffices.commitChanges();


However, when the combo box is displayed, the item that I am trying to select is not visibly selected unless I click on the combo box.  If I click on the combo box, I am automatically taken to that item.  What I want to happen is that the item is automatically displayed as the selected item in the combo box.

How do I do this?

Thanks!

Princy
Top achievements
Rank 2
 answered on 23 Mar 2011
14 answers
257 views
Hi, I have read through pretty much every post I could regarding this issue, but have yet to find the answer to my problem.  I am dynamically loading docks to give the appearance of a "web os".  When a user clicks to open a new dock, it will usually open it.  However, if there are any docks "on the stage", it throws the above error.  I'm not using a raddockzone as I require windows that float only.  The docks are loaded in an AJAX update panel that is set to a conditional update mode. 

Code snippet below:

 

 

Protected Sub LoadDock(ByVal sender As Object, ByVal e As CommandEventArgs)

 

 

Dim id As String = e.CommandName

 

lblErr.Text = id.ToString

 

Dim ds As New DataSet

 

ds = odata.ReturnDS(

"sp_GadgetsByGadgetName", "@GadgetName", id.ToString)

 

 

If LoadedGadgets(ReturnUserName() & "_" & ds.Tables("Generic").Rows(0).Item("GN")) = "False" Then

 

 

 

 

 

 

'Create Dock

 

 

 

 

 

 

Dim dock As New RadDock()

 

 

Dim widget As New UserControl

 

widget = LoadControl(ds.Tables(

"Generic").Rows(0).Item("GadgetContent"))

 

 

Dim X As Integer = (ResolutionX / 2) - (CInt(ds.Tables("Generic").Rows(0).Item("GadgetWidth")) / 2)

 

 

Dim Y As Integer = (ResolutionY / 2) - (CInt(ds.Tables("Generic").Rows(0).Item("GadgetHeight")) / 2)

 

 

With dock

 

.ID = ReturnUserName() &

"_" & ds.Tables("Generic").Rows(0).Item("GN")

 

.Title = ds.Tables(

"Generic").Rows(0).Item("GN")

 

.Skin =

"WebBlue"

 

 

 

 

 

.UniqueName = Guid.NewGuid().ToString()

.Width =

CInt(ds.Tables("Generic").Rows(0).Item("GadgetWidth"))

 

.Height =

CInt(ds.Tables("Generic").Rows(0).Item("GadgetHeight"))

 

.Left = X

.Top = Y

.Resizable =

False

 

 

 

 

 

.Pinned =

False

 

 

 

 

 

.OnClientDragEnd =

"Moved"

 

 

 

 

 

.OnClientDragStart =

"OnClientDragStart"

 

 

 

 

 

.DockHandle = DockHandle.TitleBar

.DockMode = DockMode.Floating

.BorderStyle = BorderStyle.None

.Attributes.Add(

"style", "filter:progid:DXImageTransform.Microsoft.Shadow(direction=145, color=#4b4b4b, strength=5) progid:DXImageTransform.Microsoft.Alpha(opacity=95);")

 

.OnClientCommand =

"OnClientCommand"

 

 

 

 

 

.EnableViewState =

False

 

 

 

 

 

 

End With

 

 

 

 

 

RadDockLayout1.Controls.Add(dock)

dock.ContentContainer.Controls.Add(widget)

PlaceGadgetInternal(ds.Tables(

"Generic").Rows(0).Item("GN"), X.ToString, Y.ToString, ReturnUserName)

 

 

End If

 

 

 

 

 

ds.Clear()

ds.Dispose()

ds =

Nothing

 

 

 

 

 

 

 

End Sub

 

Pero
Telerik team
 answered on 23 Mar 2011
1 answer
32 views
Hi all,

I do my grid Edit on DblClick as show in Demo.
http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/editondblclick/defaultvb.aspx
It's too slow to show EditMode. Is it because of too many columns?

At RadGrid1_ItemDataBound event I do several looping columns to set MaxLength of FilteringItem, to hide some data, change font color upon data bind to grid. Is it because of this?
But even I comment all those code and try, it's not faster just like before speed.

Is there any way I can make it faster?

Thanks
Hsi Kao
Pavlina
Telerik team
 answered on 23 Mar 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?