Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
170 views
Hi,

   I just want to inquire if there is a way that I can set the maximum length that my RadEditor will accept. My RadEditor is dynamically added to a user control because we want to load it only when the user is using Firefox. I have to set the RadEditor to accept only a maximum length of text (excluding the HTML tags) and he won't accept any more if he has reached that length. Is there a property that we can set or a client side script that we can do for this?

Thanks,
Arthur
Rumen
Telerik team
 answered on 09 Feb 2009
2 answers
204 views
Hi,
I have added a couple of required field validators to a form which I display within a rad window.
Now, the problem is that on submitting the page, the client side validation does not seem to be working. The validation error messages show up after the postback though.
Any idea what I should be doing differently?
Thanks,
Sreejath
Cary
Top achievements
Rank 2
 answered on 09 Feb 2009
0 answers
104 views
Hi,
I am trying to use the Statistics module to include count of spaces and punctuation marks in the total character count in my radeditor.
However, I am unable to do so.
I am using Rad Editor version 7.2.1.0 and Telerik.Web.UI.dll version 2008.1.619.35.
The solution that I am trying to implement was working in a previous version of the Rad Editor.

Thank you
samrat
Top achievements
Rank 1
 asked on 09 Feb 2009
1 answer
179 views
Is there a way to query whether or not the value of a RadNumericTextBox or a RadDateInput is valid on the client side? I want to re-validate all the input fields on the screen when the user clicks a submit button and halt that postback action if any of the values are invalid.

I have three types of controls I'm using: RadTextBox, RadNumericTextBox, and RadDateInput. I validate the RadTextBox values client-side by comparing them against a preconfigured regular expression. I can do this for both the Numeric and Date controls as well, but was hoping there was an easier built in function to check the validity of the contents.

Thanks,
Andrew
Pavlina
Telerik team
 answered on 09 Feb 2009
1 answer
115 views
I am installing the demo of "RADControls for ASPNET Ajax Q3 2008". During installation, "Merging MS.MSDNQTR.v90.en", the installer seems hang there. It keep saying it may take several minutes. I have run the services of the SQL server. Are there anything else that I miss? Thanks. -Frank 
Frank
Top achievements
Rank 1
 answered on 09 Feb 2009
2 answers
148 views
I'm trying the control out and I cannot view my appointment on the timeline view even though it's displayed for every other view.  Here is my code:

 

Dim ai As New AppointmentInfo("Test", "02/05/2009 12:00:00 PM", "02/05/2009 2:00:00 PM", Telerik.Web.UI.RecurrenceState.Occurrence)

 

ai.ProviderId = 1

 

Dim al As New List(Of AppointmentInfo)

 

al.Add(ai)

 

Dim rtProviders As New ResourceType("Providers")

 

 

Dim dtProviders As New Data.DataTable("Providers")

 

dtProviders.Columns.Add(

"ProviderId")

 

dtProviders.Columns.Add(

"ProviderName")

 

dtProviders.Rows.Add(

"1", "Edward McLaughlin")

 

dtProviders.Rows.Add(

"2", "Tom McDonald")

 

rtProviders.DataSource = dtProviders

rtProviders.ForeignKeyField =

"ProviderId"

 

rtProviders.KeyField =

"ProviderId"

 

rtProviders.TextField =

"ProviderName"

 

RadScheduler1.ResourceTypes.Add(rtProviders)

 

Dim rtRooms As New ResourceType("Rooms")

 

rtRooms.AllowMultipleValues =

False

 

 

Dim dt As New Data.DataTable("Rooms")

 

dt.Columns.Add(

"RoomId")

 

dt.Columns.Add(

"Name")

 

dt.Rows.Add(

"1", "Exam Room A")

 

rtRooms.DataSource = dt

rtRooms.KeyField =

"RoomId"

 

rtRooms.TextField =

"Name"

 

rtRooms.ForeignKeyField =

"RoomId"

 

RadScheduler1.ResourceTypes.Add(rtRooms)

RadScheduler1.TimelineView.GroupBy =

"Providers"

 

RadScheduler1.TimelineView.GroupingDirection = Telerik.Web.UI.GroupingDirection.Vertical

RadScheduler1.HoursPanelTimeFormat =

"hh:mm tt"

 

RadScheduler1.DataSource = al

RadScheduler1.DataBind()

Thanks!

Sherry
Top achievements
Rank 1
 answered on 09 Feb 2009
3 answers
133 views

Hi,

I have a RadGrid which exports data successfully in both Excel and .CSV file. The odd behaviour I am noticing is that when the page is run in intranet, IE prompts to either open/save the exported file. If I click on open, Excel application automatically opens it.

The same application when deployed in internet behaves differently. Exported data from grid is not opened automatically by excel instead prompts "OPEN WITH" different list of applications to choose from. File type is not recognized and original file name should be "PO_Media_Report_Excel.xls" rather it shows PO_Media_Report [1] or something like that.... :(
Could you please let me know why is it happening?

Codesnippet as below:

 

gridPOMedia.ExportSettings.ExportOnlyData =

True

 

 

gridPOMedia.ExportSettings.IgnorePaging = True

 

 

gridPOMedia.ExportSettings.OpenInNewWindow = True

 

 

gridPOMedia.ExportSettings.FileName = "PO_Media_Report_Excel" + Now.Date

 

gridPOMedia.MasterTableView.ExportToExcel()



On the same note, why the .pdf export looks so horrible. If you have say around 10-15 columns in the grid, column data are overlapping.

Many thanks for suggestion.

Milan G

Tsvetoslav
Telerik team
 answered on 09 Feb 2009
1 answer
169 views
Here is a link my recent, but also current problem: Recent RadGrid post relative to this.

In the interum I have created a function to store the checked boxes and retrieve the ID's for said checks.

I have added teleriks code for ItemCreated and ItemPreRender (see below);
Protected Sub RG2_ItemCreated(ByVal sender As ObjectByVal e As GridItemEventArgs) Handles RG2.ItemCreated  
        If TypeOf e.Item Is GridDataItem Then 
            AddHandler e.Item.PreRender, AddressOf RG2_ItemPreRender  
        End If 
    End Sub 
 
    Protected Sub RG2_ItemPreRender(ByVal sender As ObjectByVal e As EventArgs)  
        CType(CType(sender, GridDataItem)("CheckBoxTemplateColumn").FindControl("chkbxFacility"), CheckBox).Checked = CType(sender, GridDataItem).Selected  
    End Sub 
My new error is "Unable to cast object of type 'Telerik.Web.UI.RadGrid' to type 'Telerik.Web.UI.GridDataItem'", so what gives.

Even with my new method, to track each check and uncheck, no data fills the RadGrid. Actually, the grid shows up with only the header column showing.

Another minor problem is when I fill the last RadGrid with data (forced), if I check the select all check box nothing happens, yet if check the internal rows they select all...I can't seem to figure this issue.

Here is how I pull and convert, keep track of the checks and changes to my data;
For Each ID As String In facilityID  
                IDList += ID & "," 
            Next 
            IDList.Remove(IDList.LastIndexOf(","), 1)  
 
'Track the checks  
 
Dim facilityID As New List(Of String)  
        For Each dataItem As GridDataItem In RG3.MasterTableView.Items  
            If CType(dataItem.FindControl("chkbxFacility"), CheckBox).Checked = True Then 
                facilityID.Add(dataItem.OwnerTableView.DataKeyValues(dataItem.ItemIndex)("FacilityID").ToString())  
            End If 
        Next 
        Return facilityID  
 
'function for any changes or additions  
 
If (CType(sender, CheckBox)).Checked Then 
            For Each dataItem As GridDataItem In RG2.MasterTableView.Items  
                CType(dataItem.FindControl("chkbxFacility"), CheckBox).Checked = True 
                dataItem.Selected = True 
            Next 
        Else 
            For Each dataItem As GridDataItem In RG2.MasterTableView.Items  
                CType(dataItem.FindControl("chkbxFacility"), CheckBox).Checked = False 
                dataItem.Selected = False 
            Next 
        End If 
        'Make alternate call to FillDepartment to recognize any changes to the facility check box list  
        FillDepartment(RG2_GetFacilityIDs) 


Any help with all or some would be greatly appreciated.

Thanks,

-Ryan
Georgi Krustev
Telerik team
 answered on 09 Feb 2009
4 answers
191 views
Hi,

I am using Telerik.Web.UI 2008.2.1001.20. I am using RADAjaxManager which was working fine in classic (v1.8.5.0) in MOSS except for welcome message coming on top. So we changed to this new version which creates lot of issues. For the first time the page refreshes. For the second time everything seems to be fine. For the third time the loading panel won't come. But all these works fine only inside a grid if the EnableAjax Property is set to true. And after one AjaxPostback I am not able to group the columns. What do I miss here? Below is my code. Anything I need to add?

<

telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" EnableAJAX="true" DefaultLoadingPanelID="LoadingPanel1" UpdatePanelsRenderMode="Inline">

 

 

<AjaxSettings>

 

 

<telerik:AjaxSetting AjaxControlID="pnlVesselParams">

 

 

<UpdatedControls>

 

 

<telerik:AjaxUpdatedControl ControlID="pnlVessel" LoadingPanelID="LoadingPanel1"></telerik:AjaxUpdatedControl>

 

 

<telerik:AjaxUpdatedControl ControlID="pnlInspections" LoadingPanelID="LoadingPanel1"></telerik:AjaxUpdatedControl>

 

 

<telerik:AjaxUpdatedControl ControlID="pnlDocuments" LoadingPanelID="LoadingPanel1"></telerik:AjaxUpdatedControl>

 

 

<telerik:AjaxUpdatedControl ControlID="pnlVesselDetails" />

 

 

<telerik:AjaxUpdatedControl ControlID="pnlVesselImage" />

 

 

</UpdatedControls>

 

 

</telerik:AjaxSetting>

 

 

<telerik:AjaxSetting AjaxControlID="rgVessel">

 

 

<UpdatedControls>

 

 

<telerik:AjaxUpdatedControl ControlID="pnlVessel" LoadingPanelID="LoadingPanel1"></telerik:AjaxUpdatedControl>

 

 

<telerik:AjaxUpdatedControl ControlID="pnlInspections" LoadingPanelID="LoadingPanel1"></telerik:AjaxUpdatedControl>

 

 

<telerik:AjaxUpdatedControl ControlID="pnlDocuments" LoadingPanelID="LoadingPanel1"></telerik:AjaxUpdatedControl>

 

 

<telerik:AjaxUpdatedControl ControlID="pnlVesselDetails" />

 

 

<telerik:AjaxUpdatedControl ControlID="pnlVesselImage" />

 

 

</UpdatedControls>

 

 

</telerik:AjaxSetting>

 

 

<telerik:AjaxSetting AjaxControlID="rgInspections">

 

 

<UpdatedControls>

 

 

<telerik:AjaxUpdatedControl ControlID="pnlInspections" LoadingPanelID="LoadingPanel1"></telerik:AjaxUpdatedControl>

 

 

</UpdatedControls>

 

 

</telerik:AjaxSetting>

 

 

<telerik:AjaxSetting AjaxControlID="rgDocuments">

 

 

<UpdatedControls>

 

 

<telerik:AjaxUpdatedControl ControlID="pnlDocuments" LoadingPanelID="LoadingPanel1"></telerik:AjaxUpdatedControl>

 

 

</UpdatedControls>

 

 

</telerik:AjaxSetting>

 

 

</AjaxSettings>

 

 

</telerik:RadAjaxManager>

 

 

<telerik:RadAjaxLoadingPanel Transparency="50" Style="background-color: #E4E2DA;" runat="Server"

 

 

ID="LoadingPanel1" >

 

 

<asp:Image ID="Image2" ImageUrl="/RadControls/Ajax/Skins/Default/loading.gif" AlternateText="Loading"

 

 

BorderWidth="0px" runat="server"></asp:Image>

 

 

</telerik:RadAjaxLoadingPanel>

 

Sebastian
Telerik team
 answered on 09 Feb 2009
3 answers
202 views
Hi there,

I'm using rad menu to me website. All menu items are from links table of access database and I create my own menu skin. I set flow vertical but I could not fix the main menu width. It appears the width is adjusted according to the ment text. 

Part of my style code of menu as following:
 

.RadMenu_IntegraTire
{
 padding:10 10px;
 width:100%;
}

.RadMenu_IntegraTire .link
{
 background:#DCDCDB;
 text-decoration:none;
 text-align:left;
 font-family:Lucida,Arial,sans-serif;
 line-height:20px;
 color:#6C6C6C;
 letter-spacing:-0.05em;
 border-bottom:solid 2px #ffffff;
}

I tried give .RadMenu_IntegraTire width 200px but it doesn't work. The website address is http://www.integratire.com.ds498.alentus.com/ for your reference.

Any idea about it? Thanks so much for your response.

Sally

Sally
Top achievements
Rank 1
 answered on 09 Feb 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?