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

I have a problem with a standalone menu on my Silverlight dashboard.

I have four silverlight controls loading at a time, so attaching the MainMenu to a single one would be counter-productive.

I've been attempting to create a main-menu at the top of my html page.

Problem 1:
When I use "windowless=true" and "PluginBackground=Transparent" to display the Silverlight Menu over my HTML Code, I cannot seem to click through to the background data. I've searched for solutions to this, and have come up with nothing.
From what I understand, basic Silverlight doesn't not provide any form of "Click Through Transparent" options.

Do you possibly have a solution for this?

Problem 2:
Barring the fact that Click Through doesn't work and never will, I would like to attempt to "Dynamically Resize Silverlight Control to fit the contents".
Unfortunately I've come up with nothing that would allow me to return the actual scrolling height of an open menu to the Javascript and resize the Silverlight Control Object.

Does anyone have any solution to this?
Jaco
Top achievements
Rank 1
 answered on 08 Nov 2010
1 answer
147 views

Hello,

I am using the following code to generate a grid for displaying and editing some data.
Unfortunately I am not able to get the value of the raddatepicker & the checkbox control in code behind to update the associated fields in the DB.

My aspx is as follows:
=================

 

<telerik:RadGrid ID="grdSites" runat="server" AllowAutomaticDeletes="false" 
AutoGenerateColumns="False" <BR>AllowMultiRowSelection="false" 
CssClass="MyRadGrid" AllowAutomaticUpdates="false"> <BR><MasterTableView 
AllowSorting="False" AllowPaging="false" DataKeyNames="BanquetSiteId" 
<BR>TableLayout="Fixed" ClientDataKeyNames="BanquetSiteId" 
EditMode="EditForms"> <BR><NoRecordsTemplate> <BR><asp:Label 
runat="server" CssClass="AlignCenter" ID="lblNoRecords" 
ResourceKey="lblNoRecords" <BR>Width="100%" align="center" /> 
<BR></NoRecordsTemplate> <BR><Columns
<BR><telerik:GridBoundColumn DataField="SiteId" HeaderText="SiteId" 
Visible="false"> <BR></telerik:GridBoundColumn
<BR><telerik:GridTemplateColumn HeaderText="SiteName" 
HeaderStyle-HorizontalAlign="Left"> <BR><ItemTemplate
<BR><asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# 
getSiteUrl(Eval("SiteAlias"))%>' <BR>Text='<%# Eval("SiteName")%>' 
Target="Blank"></asp:HyperLink> <BR></ItemTemplate
<BR></telerik:GridTemplateColumn> <BR><telerik:GridBoundColumn 
DataField="ExpireDate" HeaderText="ExpireDate" 
HeaderStyle-HorizontalAlign="Left"> <BR></telerik:GridBoundColumn
<BR><telerik:GridCheckBoxColumn DataField="IsActive" HeaderText="IsActive" 
HeaderStyle-HorizontalAlign="Left"> <BR></telerik:GridCheckBoxColumn
<BR><telerik:GridEditCommandColumn ButtonType="LinkButton"
<BR></telerik:GridEditCommandColumn> <BR></Columns
<BR><EditFormSettings EditFormType="Template"> <BR><FormTemplate
<BR><table id="Table2" cellspacing="2" cellpadding="1" width="100%" 
border="0" rules="none" <BR>style="border-collapse: collapse; background: 
white;"> <BR><tr class="EditFormHeader"> <BR><td colspan="2" 
style="font-size: small"> <BR><b>Subscription Details</b
<BR></td> <BR></tr> <BR><tr> <BR><td> <BR><asp:Label 
ID="Label2" ResourceKey="litExpireDate" runat="server">Expire 
Date</asp:Label> <BR></td> <BR><td
<BR><telerik:RadDatePicker ID="rdpExpireDate" runat="server" 
ValidationGroup="BanquetSite" /> <BR></td> <BR></tr
<BR><tr> <BR><td> <BR></td> <BR><td
<BR><asp:CheckBox ID="chkIsActive" Text="IsActive" ResourceKey="IsActive" 
Checked='<%# Bind( "IsActive" ) %>' runat="server" /> <BR></td
<BR></tr> <BR><tr> <BR><td align="right" colspan="2"
<BR><asp:Button ID="btnUpdate" Text="Update" runat="server" 
CommandName="Update"></asp:Button>&nbsp; <BR><asp:Button 
ID="btnCancel" Text="Cancel" runat="server" CausesValidation="False" 
CommandName="Cancel"></asp:Button> <BR></td> <BR></tr
<BR></table> <BR></FormTemplate> <BR></EditFormSettings
<BR></MasterTableView> <BR><ClientSettings 
EnablePostBackOnRowClick="false"
<BR><ClientEvents></ClientEvents> <BR><Selecting 
AllowRowSelect="true" /> <BR><Scrolling AllowScroll="true" 
UseStaticHeaders="True" SaveScrollPosition="True" /> 
<BR></ClientSettings> <BR><PagerStyle Mode="NextPrevAndNumeric" /> 
<BR></telerik:RadGrid>

 

Code behind:
===========

Private Sub grdSites_UpdateCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles grdSites.UpdateCommand 
  
Try  
  
Dim banquetSitId As Integer = CType(grdSites.MasterTableView.DataKeyValues(e.Item.ItemIndex).Values(0), Integer
'Dim rdp As RadDatePicker  
Dim expireDate As DateTime = Nothing  
Dim isActive As Boolean 
'If e.CommandName = RadGrid.UpdateCommandName Then 
' If TypeOf (e.Item) Is GridEditFormItem Then  
' Dim item As GridEditFormItem = DirectCast(e.Item, GridEditFormItem)  
' If DirectCast(item.FindControl("rdpExpireDate"), Telerik.Web.UI.RadDatePicker).SelectedDate.HasValue Then  
' expireDate = CType(item.FindControl("rdpExpireDate"), Telerik.Web.UI.RadDatePicker).SelectedDate.Value  
' End If  
'End If  
  
If TypeOf e.Item Is GridEditFormItem AndAlso e.Item.IsInEditMode AndAlso Not e.Item.OwnerTableView.IsItemInserted Then  
'Dim editItem As GridEditFormItem = DirectCast(e.Item, GridEditFormItem)  
'Dim item As GridDataItem = DirectCast(editItem.ParentItem, GridDataItem)  
'Dim datepick As RadDatePicker = DirectCast(editItem.FindControl("rdpExpireDate"), RadDatePicker)  
  
Dim editedItem As GridEditableItem = DirectCast(e.Item, GridEditableItem) 
Dim datepick As RadDatePicker = DirectCast(editedItem.FindControl("rdpExpireDate"), RadDatePicker) 
expireDate = datepick.SelectedDate.Value
End If 
  
If Not e.Item.FindControl("rdpExpireDate") Is Nothing Then   
If CType(e.Item.FindControl("rdpExpireDate"), Telerik.Web.UI.RadDatePicker).SelectedDate.HasValue Then 
    expireDate = CType(e.Item.FindControl("rdpExpireDate"), Telerik.Web.UI.RadDatePicker).SelectedDate.Value 
End If   
End If 
  
If Not e.Item.FindControl("chkIsActive") Is Nothing Then 
    isActive = CType(e.Item.FindControl("chkIsActive"), CheckBox).Checked  
End If 
  
BanquetController.UpdateBanquetSite(banquetSitId, expireDate, isActive) 
lblMessage.Text = Localization.GetString(
"SubscribeSuccess.Text", Me.LocalResourceFile) 
grdSites.EditIndexes.Clear()
BindBanquetSites()
Catch ex As Exception   
lblMessage.Text = ex.Message
End Try  
End Sub

In the above code "datepick.SelectedDate.Value" returns null for me.
I have tried out a number of other combinations(currently commented out) as well, all returning null for me, though the control is coming up fine.

Any help would be highly appreciated.

Thanks
Tariq

Iana Tsolova
Telerik team
 answered on 08 Nov 2010
3 answers
77 views
Hello,

I have noticed very weird things happening with my RadSheduler control set up in a Sharepoint web part. Please see the attached image.  There are two things going on:
1. The multiday appointments Task 1 and Task 6 are not really shown as spanning.
2. The begin and end times for the multiday appointments are wrong.  Task 1 is supposed to end on October 17, not the 10th, and Task 6 is supposed to end on October 27, and not the 24th.

The Sheduler is programmatically created, so all the settings and databinding occur on the server.  The datasource is xml converted into a Dataset.  I tried attaching to the AppointmentDatabound event, and the e.Appoimntment information is completely correct, so the datasource is interpreted properly.  But when it comes to rendering, the appointment span is cut short for some reason.  This is a pretty critical issue, and I'm about out of ideas of what else to try to figure out what's going on.

Have you ever encountered anything like this? Is there maybe a setting that I need to apply?  Please provide any thoughts or help - they will be greately appreciated.
Peter
Telerik team
 answered on 08 Nov 2010
4 answers
183 views
I have SharePoint 2010. I have installed web parts for SharePoint using the Q2 2010 Telerik AJAX Controls for SharePoint 2010 msi install file. However, when I try using the web part to a page, I get the following error: 

Multiple controls with the same ID 'hlSPUserControl' were found. FindControl requires that controls have unique IDs.

Using the browser, I can add and configure the web part, but if I try to use it (for ex. sort a column) or edit the web part again, I invariably get the error. Also, if I try adding the web part in SharePoint Designer, I get an "Error Rendering Control" error (not sure if this is normal or not).

I tried reparing the install - same result.

What could be going on? Is there a way I can set the control ID so I can avoid the error?
Tsvetoslav
Telerik team
 answered on 08 Nov 2010
1 answer
64 views
A few hours ago, we started receiving a full-screen red error when browsing our website:

This website has been reported as unsafe


  • Malicious software threat: This site contains links to viruses or other software programs that can reveal personal information stored or typed on your computer to malicious persons.
  • In assessing the damage, I went through and made a list of all pages that got the error.  The only pages that get the error on our website are ones that contain a Telerik ComboBox control.  We have pages containing other Telerik controls that do not get this error.  Has anyone else seen this problem?  This just started today and our customers are freaking out.

    We are using version 2010.2.713.35.

    Yana
    Telerik team
     answered on 08 Nov 2010
    2 answers
    123 views
    Hey everyone,

    I have a radgrid,its need data source event is--
    protected void RadGrid1_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
            {
                RadGrid1.DataSource = GetDataTable("SELECT UID, Email_TemplateName as 'Name', Mail_Text as 'Mail text',Mail_Subject as 'Mail Subject' FROM Entry");
            }
    i have no columns defined otherwise in the grid definition.Also i have hided the page size dropdown and i want the size of grid to be always of 10 items and no matter how much no. of items are present in the grid.

    Thanks
    Amit
    Dimo
    Telerik team
     answered on 08 Nov 2010
    1 answer
    112 views
    Hi,
    I'm changing the scroll area height in the onGridCreated event as in the http://www.telerik.com/help/aspnet-ajax/grdchangescrollheightatruntime.html, it works fine.

    I want to do the same thing when the user resizes the browser window. What's the easiest way to do it? Also, I'm using a pager. How can I know its height in run-time?
    Pavlina
    Telerik team
     answered on 08 Nov 2010
    1 answer
    79 views
    Hello.

    Hopefully I dont come off sounding like a fool :)

    I am using Visual Studio 2010, with demo version of telerik asp.net to see if I can make this work with FireBird DB

    Basically what I want to do is have the grid work with firebird for huge datasets.

    With Paging ASP is creating the limit queries to return only a subsset of data for that particular page in the grid honoring the current sorted colums, etc.

    How can I do this in firebird ?

    I am hoping I can use an event to generate the select sql based on the current columns chosen to sort by and get back the page the client is requesting etc..

    I hope this  makes sense what I am asking :)

    Radoslav
    Telerik team
     answered on 08 Nov 2010
    1 answer
    151 views
    Hi.

    I have a Color picker wrapped in a jquerry dialog and when i choose a color i would like the color pop up to expand the dialog (instead of just overflowing) or  be able to reposition it somewhere on the page. Could anybody by any chance provide me with the name of the class tag that i need to modify? i have not been able to find it on my own.

    Thanks!
    Rafal
    Tsvetie
    Telerik team
     answered on 08 Nov 2010
    3 answers
    170 views
    I'm getting the below exception when loading an RTF file from a stream.
    All fonts used on the existing system (that works - not using telerik though) have been copied to the dev platform in the hope of eliminating some suspects.
    If you wish I can post the RTF.
    Any help appreciated.

    {"Value cannot be null.\r\nParameter name: format"}
     at System.String.Format(IFormatProvider provider, String format, Object[] args)
       at Itenso.Sys.StringTool.FormatSafeInvariant(String format, Object[] args)
       at Itenso.Sys.StringsBase.Format(String format, Object[] args)
       at Telerik.Web.UI.Editor.Rtf.Strings.UndefinedFont(String fontId)
       at Telerik.Web.UI.Editor.Rtf.Interpreter.RtfInterpreter.Telerik.Web.UI.Editor.Rtf.IRtfElementVisitor.VisitTag(IRtfTag tag)
       at Telerik.Web.UI.Editor.Rtf.Model.RtfTag.DoVisit(IRtfElementVisitor visitor)
       at Telerik.Web.UI.Editor.Rtf.Model.RtfElement.Visit(IRtfElementVisitor visitor)
       at Telerik.Web.UI.Editor.Rtf.Interpreter.RtfInterpreter.VisitChildrenOf(IRtfGroup group)
       at Telerik.Web.UI.Editor.Rtf.Interpreter.RtfInterpreter.Telerik.Web.UI.Editor.Rtf.IRtfElementVisitor.VisitGroup(IRtfGroup group)
       at Telerik.Web.UI.Editor.Rtf.Model.RtfGroup.DoVisit(IRtfElementVisitor visitor)
       at Telerik.Web.UI.Editor.Rtf.Model.RtfElement.Visit(IRtfElementVisitor visitor)
       at Telerik.Web.UI.Editor.Rtf.Interpreter.RtfInterpreter.VisitChildrenOf(IRtfGroup group)
       at Telerik.Web.UI.Editor.Rtf.Interpreter.RtfInterpreter.Telerik.Web.UI.Editor.Rtf.IRtfElementVisitor.VisitGroup(IRtfGroup group)
       at Telerik.Web.UI.Editor.Rtf.Model.RtfGroup.DoVisit(IRtfElementVisitor visitor)
       at Telerik.Web.UI.Editor.Rtf.Model.RtfElement.Visit(IRtfElementVisitor visitor)
       at Telerik.Web.UI.Editor.Rtf.Interpreter.RtfInterpreter.VisitChildrenOf(IRtfGroup group)
       at Telerik.Web.UI.Editor.Rtf.Interpreter.RtfInterpreter.Telerik.Web.UI.Editor.Rtf.IRtfElementVisitor.VisitGroup(IRtfGroup group)
       at Telerik.Web.UI.Editor.Rtf.Model.RtfGroup.DoVisit(IRtfElementVisitor visitor)
       at Telerik.Web.UI.Editor.Rtf.Model.RtfElement.Visit(IRtfElementVisitor visitor)
       at Telerik.Web.UI.Editor.Rtf.Interpreter.RtfInterpreter.VisitChildrenOf(IRtfGroup group)
       at Telerik.Web.UI.Editor.Rtf.Interpreter.RtfInterpreter.Telerik.Web.UI.Editor.Rtf.IRtfElementVisitor.VisitGroup(IRtfGroup group)
       at Telerik.Web.UI.Editor.Rtf.Model.RtfGroup.DoVisit(IRtfElementVisitor visitor)
       at Telerik.Web.UI.Editor.Rtf.Model.RtfElement.Visit(IRtfElementVisitor visitor)
       at Telerik.Web.UI.Editor.Rtf.Interpreter.RtfInterpreter.VisitChildrenOf(IRtfGroup group)
       at Telerik.Web.UI.Editor.Rtf.Interpreter.RtfInterpreter.InterpretContents(IRtfGroup rtfDocument)
       at Telerik.Web.UI.Editor.Rtf.Interpreter.RtfInterpreter.DoInterpret(IRtfGroup rtfDocument)
       at Telerik.Web.UI.Editor.Rtf.Interpreter.RtfInterpreterBase.Interpret(IRtfGroup rtfDocument)
       at Telerik.Web.UI.Editor.Rtf.Support.RtfInterpreterTool.Interpret(IRtfGroup rtfDocument, IRtfInterpreterListener[] listeners)
       at Telerik.Web.UI.Editor.Rtf.Support.RtfInterpreterTool.BuildDoc(IRtfGroup rtfDocument, IRtfInterpreterListener[] listeners)
       at Telerik.Web.UI.Editor.Rtf.Support.RtfInterpreterTool.BuildDoc(Stream rtfTextSource, IRtfInterpreterListener[] listeners)
       at Telerik.Web.UI.Editor.Rtf.Rtf2Html.StreamToHtml(Stream stream)
       at Telerik.Web.UI.RadEditor.LoadRtfContent(Stream rtfStream)
       at <namechangedtoprotecttheinnocent>_Click(Object sender, EventArgs e) in C:\Projects\project\project2\pagename.aspx.cs:line 700
    Dobromir
    Telerik team
     answered on 08 Nov 2010
    Narrow your results
    Selected tags
    Tags
    +? more
    Top users last month
    Marco
    Top achievements
    Rank 4
    Iron
    Iron
    Iron
    Hiba
    Top achievements
    Rank 1
    Iron
    Rob
    Top achievements
    Rank 3
    Bronze
    Bronze
    Iron
    Max
    Top achievements
    Rank 1
    Veteran
    Iron
    Alina
    Top achievements
    Rank 1
    Want to show your ninja superpower to fellow developers?
    Top users last month
    Marco
    Top achievements
    Rank 4
    Iron
    Iron
    Iron
    Hiba
    Top achievements
    Rank 1
    Iron
    Rob
    Top achievements
    Rank 3
    Bronze
    Bronze
    Iron
    Max
    Top achievements
    Rank 1
    Veteran
    Iron
    Alina
    Top achievements
    Rank 1
    Want to show your ninja superpower to fellow developers?
    Want to show your ninja superpower to fellow developers?