Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
265 views
I ajaxified an exisiting page using radajaxmanager. Primarily, the page is divided into two sections.
Student section and Classes Section. When I click a button "Add Student" a "student panel" is made visible which has bunch of controls in it.
Similarily, the classes section has "add class" button which on click shows "classes panel".

The problem is when the student panel is visible and I click "add class" button I get the following error.

"Invalid postback or callback argument.  Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page.  For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them."

When the student panel is hidden and I click "add class" button, classes panel is rendered correctly. I only get this error when the other panel is already visible on the page.

Any ideas?
cognos s
Top achievements
Rank 1
 answered on 30 Oct 2009
2 answers
122 views
I'm looking for a tutorial on best practices for setting up RIA UIs with the AJAX control set. Short of that I'd like a good demo on how to setup an explorer or portal style RIA UI. I'm building a Javascript solution that fetches data from WCF and manipulates the UI on the client only, no AJAX panels for server side UI updates.

I reviewed the control demos, demo apps and videos. None address how to setup the layout controls (panel, splitter,  etc) to achieve different affects.

The WebMail demo app is close to the layout I want but it is only one example and the design isn't explained.

I also downloaded the help desk demo. It to uses splitters and panes to setup the UI but does it a bit differently.

The event scheduler does its layout with HTML div tags
Brian
Top achievements
Rank 1
 answered on 30 Oct 2009
3 answers
123 views
I am working with the ItemTemplate of the combo box and wanted to know how to add an item to the collection that didn't match the specified item template. Here's my example:

My declaration on the ASP.NET page:
<telerik:RadComboBox ID="drpObjects" runat="server" AutoPostBack="true" Skin="Vista" AllowCustomText="false" 
    DropDownWidth="350px" Height="250px">  
    <CollapseAnimation Type="InQuint" Duration="200" /> 
    <ExpandAnimation Type="OutQuint" Duration="200" /> 
    <ItemTemplate> 
        <table style="border-bottom: 1px dotted #dfdfdf; margin-bottom: 10px; font-size: 11px;" 
            width="98%">  
            <tr> 
                <td> 
                    <%#DataBinder.Eval(Container.DataItem, "LineItemID")%> 
                </td> 
                <td> 
                    <%#DataBinder.Eval(Container.DataItem, "Description")%> 
                </td> 
            </tr> 
        </table> 
    </ItemTemplate> 
</telerik:RadComboBox> 

The object is a POCO object stored in a generic list:
Namespace Entities  
    Public Class CostCenterObject  
        Inherits BaseDataEntity  
 
        Private _LineItemID As Integer = 0  
        Private _Description As String = "" 
        Private _CategoryID As Integer = 0  
        Private _ReviewOnly As Boolean 
        Private _CreateDate As DateTime  
        Private _CreateBy As String = "" 
        Private _ModifyDate As DateTime  
        Private _ModifyBy As String = "" 
        Private _Active As Boolean 
        Private _Category As String = "" 
        Private _CategoryGroupName As String = "" 
 
        Public ReadOnly Property LineItemID() As Integer 
            Get 
                Return _LineItemID  
            End Get 
        End Property 
        Public ReadOnly Property Description() As String 
            Get 
                Return _Description  
            End Get 
        End Property 
        Public ReadOnly Property CategoryID() As Integer 
            Get 
                Return _CategoryID  
            End Get 
        End Property 
        Public ReadOnly Property ReviewOnly() As Boolean 
            Get 
                Return _ReviewOnly  
            End Get 
        End Property 
        Public ReadOnly Property CreateDate() As DateTime  
            Get 
                Return _CreateDate  
            End Get 
        End Property 
        Public ReadOnly Property CreateBy() As String 
            Get 
                Return _CreateBy  
            End Get 
        End Property 
        Public ReadOnly Property ModifyDate() As DateTime  
            Get 
                Return _ModifyDate  
            End Get 
        End Property 
        Public ReadOnly Property ModifyBy() As String 
            Get 
                Return _ModifyBy  
            End Get 
        End Property 
        Public ReadOnly Property Active() As Boolean 
            Get 
                Return _Active  
            End Get 
        End Property 
        Public ReadOnly Property Category() As String 
            Get 
                Return _Category  
            End Get 
        End Property 
        Public ReadOnly Property CategoryGroupName() As String 
            Get 
                Return _CategoryGroupName  
            End Get 
        End Property 
    End Class 
    ' Instantiation code omitted...  
 
End Namespace 

And my databinding:
        Dim Objects As List(Of CostCenterObject)  
 
        Objects = _AppController.GetAvailableObjects(drpYear.SelectedValue)          
        drpObjects.DataSource = Objects  
        drpObjects.DataBind()  
 
        drpObjects.Items.Insert(0, New RadComboBoxItem("- ALL -", "- ALL -")) 

However, when I select an item in the list I see the namespace of the object declaration and the item I add doesn't match the template, so it displayes as an empty table. I would prefer to use the templates idea, but is this scenario possible?
Chris
Top achievements
Rank 1
 answered on 30 Oct 2009
4 answers
2.2K+ views
Is it possible to detect a server-side event when the user clicks on a datagrid row regardless of wherever on the row area the click happens?

I simply want to take the user to a separate .aspx page when the click occurs and pass the row ID / primary key to the second page.

Thanks
LG
Top achievements
Rank 2
 answered on 30 Oct 2009
2 answers
116 views
Hi,
I want change color in RadChart diagram. What property should I use in design mode to change green color on red?

<telerik:RadChart ID="RadChartQuestion" runat="server" DefaultType="Pie" Width="550px" AutoTextWrap="true" 
                        OnItemDataBound="RadChart2_ItemDataBound" Skin="Office2007" Height="250px" UseSession="false" 
                        TempImagesFolder = "/Tmp" > 
                        <Appearance Dimensions-Width="750px"></Appearance> 
                          
                        <Series> 
                            <telerik:ChartSeries Name="Series 1" Type="Pie" DataYColumn="COUNTER"   
                            Appearance-EmptyValue-FillStyle-GammaCorrection="true"    
                            Appearance-FillStyle-MainColor="Red" > 
                                <Appearance LegendDisplayMode="ItemLabels" TextAppearance-MaxLength="100"></Appearance> 
                            </telerik:ChartSeries> 
                        </Series> 
                    </telerik:RadChart> 
Schlurk
Top achievements
Rank 2
 answered on 30 Oct 2009
1 answer
227 views
Hi -
I'm using the RadTreeView and I'm loading on demand using a web service.  All works fine, but the image that appears once the service call has been placed does not appear.  I have the Treeview1.LoadingStatusPosition set to "AfterNodeText".  When I click on a node, I see the node "shift" as if it's going to show the loading status icon/image/gif.  But this icon/image/gif is NOT visible.  Once the service call is complete then this "shift" is undone and the results are properly displayed.

It seems obvious that the white space I'm seeing is the Loading status image. I just can't see it... it expands when it's supposed to and it collapses when it's supposed to.... I just can't see it.

How can I get this icon/image/gif to be visible again?  Can something be done either using a stylesheet or page level style.  I thought I might even try changing the image itself to something more consistent with my site.

Thanks in advance for any help!

FWIW... the Node.Text can be very long and may wrap.  Also, The TreeView is on a RadAjaxPanel that uses a RadAjaxLoadingPanel.
Veselin Vasilev
Telerik team
 answered on 30 Oct 2009
2 answers
169 views
Hi,

I have a website where via the menu (based on RadTabStrip) a number of pages can be accesses which all have one or more telerik components in them. E.g. Radcomboboxes, grids, etc.

For script combination, the RadScriptManager is included in the masterpage.

The webresource.axd file for all separate pages is pretty big, but different for every page.

What I would like to do is include all the javascript for all the used telerik controls in the masterpage.
This way, the generated webresource.axd file is slightly bigger initially, but will be used from cache on any subsequent page access.

So, I am wondering, is there an easy way to do this?
In the documentation I have found that when UseEmbeddedResource is disabled for the controls, the javascript can be included manually. However, the RadScriptManager can not combine them this way because they are not embedded as resources.
I guess I can include all those javascript files in a dll as embedded resources, however, I am a bit reluctant to do this since this must be done then for every new release.

Has anybody advise on the direction to go with this?

Best Regards,
Mark

Mark Hubert
Top achievements
Rank 1
 answered on 30 Oct 2009
5 answers
199 views
Hi,

we are using a panelbar having 6 panelitems.during pageload,by default,the first panelitem will be expanded and there is a label and button control present inside it.our requirement is ,on load the focus should be on button.
if we press enter the next panelitem should get expanded.

my code:

Button

 

btnNext = (Button)pnlbarRegn.FindItemByValue("Welcome").FindControl("BtnNext");

 

btnNext.TabIndex = 0;

btnNext.Focus();

need help.

Thanks,
Bharathwajan

Bharathwajan Venkatanarayanan
Top achievements
Rank 1
 answered on 30 Oct 2009
1 answer
128 views
Hello!

I have a very simple scenario with a radcolorpicker with "visible=false" and showicon="true" inside an updatepanel.
After I press a button the radcolorpicker becomes visible - however the formatting is now lost (see error.gif). I have tried to include the css for the radcolorpicker but so far no succes.

<

 

asp:updatepanel runat="server">

 

 

<contenttemplate>

 

 

<asp:button text="Click Me" runat="server" id="btn1" />

 

 

<telerik:radcolorpicker runat="server" id="Radcolorpicker1" showicon="true" visible="false" >

 

 

</telerik:radcolorpicker>

 

 

</contenttemplate>

 

 

</asp:updatepanel>

 



I use the latest release (Q2 2009)
Tsvetie
Telerik team
 answered on 30 Oct 2009
3 answers
98 views

I am having couple of user controls on page. one user control is taking very long time to load. so the page completely freezes until it loads. Is there a way to show rest of the page and show "loading message" for first user control until it finishes loading?
cognos s
Top achievements
Rank 1
 answered on 30 Oct 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?