Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
92 views
Hey Telerik,

In using a Timeline scheduler, I am utilizing two different groups.  That being said, is there a way for the color of events to be different for each group?
Jason Best
Top achievements
Rank 1
 answered on 25 Jun 2010
1 answer
121 views
I am creating a RadGrid and initially assigning the sortExpression to use the data column, "Plcmt Date" as its FieldName:

 

<SortExpressions>

 

 

<telerik:GridSortExpression FieldName="Plcmt Date" SortOrder="Ascending" />

 

 

</SortExpressions>

 

the column seems to be set up correctly:
 

 

 

<telerik:GridBoundColumn HeaderText="Plcmt Date" UniqueName="PlacementDate" HeaderTooltip=""

 

 

SortDescImageUrl="../RadControls/Grid/Skins/Default/SortDesc.gif" SortAscImageUrl="../RadControls/Grid/Skins/Default/SortAsc.gif"

 

 

DataField="Plcmt Date" SortExpression="Plcmt Date" AllowSorting="true" FooterText="Grand Total">

 

 

 



but I am getting this error:

Error serializing value 'Plcmt Date ASC' of type 'Telerik.Web.UI.GridSortExpression.'

Is it because there is a space in the column name or something?   I've looked all over the site and don't see anything about restrictions on column names that can be used for sorting.

Tab Alleman
Top achievements
Rank 1
 answered on 25 Jun 2010
3 answers
230 views
Hello Telerik Team,

Please help me fix this issue.
I am displaying RadGrid with paging enabled.
I would like to export all the results to HTML. But coming across this issue: error.png (attached)

Error: Script control 'PageSizeComboBox' is not a registered script control. Script controls must be registered using RegisterScriptControl() before calling RegisterScriptDescriptors().
Parameter name: scriptControl

I have referred this blog but I am not able to understand how to handle this issue. Please guide me to resolve this issue.

ps: It works if I disable the Paging. I would like to have this work with paging Enabled. Thanks.

Thanks,
Smith
smith spd
Top achievements
Rank 1
 answered on 25 Jun 2010
1 answer
84 views
Consider the following javascript (inside schedulerFormCreated function for advanced form example):

 $telerik.$(".rsAdvResourceValue").each(function(i) { 
                    if (this.id.match("cboPrimaryClient") != null) 
                        priCliCbo = this.id; 
                }); 
                if (priCliCbo != null) { 
                    priCliCboBox = $find(priCliCbo); 
                    $telerik.$(".rsAdvEditSave").bind("click", function(e) { 
                    priCliCboBox = $find(priCliCbo); 
                        if (priCliCboBox.get_selectedItem() == null) { 
                            alert("Please select a Primary Client"); 
                            return false; 
                        } 
                        if (priCliCboBox.get_selectedItem().get_text() == "") { 
                            alert("Please select a Primary Client"); 
                            return false; 
                        } 

This works GREAT for the one dropdown box on the page, but NO MATTER WHAT I try to get access to the textboxes on there - I get null. I have even firebugged the id's and tried direct references - nothing. Also - attempted to add regular ASP:RequiredFieldValidators in the ascx as those that exist in the sample. This is great, until they validate and the control comes back blank with left pointing arrows in the date picker boxes. I have looked at every example I can find via search and don't seem to see anywhere that simple client-side validation can be done with this.
Kevin Price
Top achievements
Rank 1
 answered on 25 Jun 2010
5 answers
785 views
Hi,

I have a radgrid with paging at the top and bottom and want the page to scroll back to the top when the page is changed (expecially from the bottom paging links).

I have tried adding the following code, but something inside the radgrid code is stopping it from working as it does on a regular asp.net button.

Protected Sub RadGrid1_PageIndexChanged(ByVal source As Object, ByVal e As Telerik.Web.UI.GridPageChangedEventArgs) Handles RadGrid1.PageIndexChanged  
        ScriptManager.RegisterStartupScript(Me.Page, Me.GetType(), "Scroll", "scroll(0,0); ", True)  
    End Sub 

Is there another way of achieving this?  Or a way of getting my code to work?

Thanks in advance
bwood
Top achievements
Rank 1
 answered on 25 Jun 2010
4 answers
300 views
This should be pretty straightforward, but for some reason, I cannot get treeview to validate properly: the required field validator fails to see when a node is checked, even if ALL nodes are checked. This is a sample code:

    <asp:ValidationSummary ID="ValidationSummary1" runat="server" HeaderText="Please review the following errors:" ShowMessageBox="True" ShowSummary="false" DisplayMode="BulletList" /> 
 
    <telerik:RadTreeView ID="RadTreeViewStates" runat="server" CheckBoxes="true" CheckChildNodes="true" TriStateCheckBoxes="true" LoadingMessage="Loading states" Skin="Office2007"> 
        <Nodes> 
            <telerik:RadTreeNode Checkable="true" Text="All States" Expanded="true"> 
                <Nodes> 
                    <telerik:RadTreeNode Checkable="true" Text="Northeast"> 
                        <Nodes> 
                            <telerik:RadTreeNode Checkable="true" Text="CT" Value="CT"></telerik:RadTreeNode> 
                            <telerik:RadTreeNode Checkable="true" Text="MA" Value="MA"></telerik:RadTreeNode> 
                            <telerik:RadTreeNode Checkable="true" Text="ME" Value="CT"></telerik:RadTreeNode> 
                            <telerik:RadTreeNode Checkable="true" Text="NH" Value="CT"></telerik:RadTreeNode> 
                            <telerik:RadTreeNode Checkable="true" Text="NY" Value="CT"></telerik:RadTreeNode> 
                            <telerik:RadTreeNode Checkable="true" Text="PA" Value="CT"></telerik:RadTreeNode> 
                            <telerik:RadTreeNode Checkable="true" Text="RI" Value="CT"></telerik:RadTreeNode> 
                            <telerik:RadTreeNode Checkable="true" Text="VT" Value="CT"></telerik:RadTreeNode> 
                        </Nodes> 
                    </telerik:RadTreeNode>                   
                </Nodes> 
            </telerik:RadTreeNode> 
        </Nodes> 
    </telerik:RadTreeView> 
 
    <asp:RequiredFieldValidator ID="rvRadTreeViewStates" runat="server" ErrorMessage="Please select at least one state" Display="Dynamic" ControlToValidate="RadTreeViewStates">*</asp:RequiredFieldValidator> 
 
    <asp:Button ID="ButtonSaveSearch" runat="server" Text="Save"  /> 
 

The above is similar to the Validation Selection demo. Am I missing something?

Thanks,

Ivan

Michael Love
Top achievements
Rank 1
 answered on 25 Jun 2010
1 answer
129 views
Can someone point me to a reference on how to get the buttons into the editor using a tools.xml file? I need the names for some specific buttons. I remember seeing the list once but can't find it again on this site.

Thanks!
Dobromir
Telerik team
 answered on 25 Jun 2010
3 answers
209 views
Hi,

I am a new user to RadControls so pardon my ignorance.

What we essentially want is that:
  1. A user is shown the contents in the editor
  2. He should not be allowed to change it.
  3. He should be allowed to print the contents of the editor.

If I switch to preview mode, the buttons gets disabled. I there a way I can achieve the above?

Regards,
Vaibhav
Dobromir
Telerik team
 answered on 25 Jun 2010
6 answers
350 views

My grid has a Delete GridButtonColumn, defined as follows...

<telerik:GridButtonColumn CommandName="Delete"   
    ConfirmText="Are you sure you want to delete the selected item?" Text="Delete"   
    UniqueName="Delete">  
</telerik:GridButtonColumn> 

I get the Cofirmation Text, and I delete the row server-side with this...

Protected Sub RadGridPO_DeleteCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles RadGridPO.DeleteCommand  
    Dim item As GridEditableItem = CType(e.Item, GridEditableItem)  
    Dim strKey As String = item.OwnerTableView.DataKeyValues(e.Item.ItemIndex).Item("PODetailKey").ToString  
    Dim changedRow As DataRow() = POGridData.Select("PODetailKey = " & strKey)  
    If changedRow.Length <> 0 Then 
        changedRow(0).Delete()  
    End If 
End Sub 

But I need to call a javascript function afterwards. I tried using OnRowDeleted in the RadGrid's ClientSettings, but it doesn't work...

<ClientSettings> 
    <Selecting AllowRowSelect="True" /> 
    <ClientEvents OnRowSelected="RowSelected" OnRowDeleted="RowDeleted" /> 
</ClientSettings> 

(Though it doesn't give me an error either.) How can I call a javascript function after the row is deleted?
Jeremy Yoder
Top achievements
Rank 1
 answered on 25 Jun 2010
1 answer
54 views
Hi

I downloaded latest trial version for POC purpose, I am evaluating Pie chart features which we are looking for. But I could not see any Series property for the Chart. I could see those on your Demo section.

Is there anything I am missing? Please note that I am using Express Edition VS.

Thanks,
Pradip
Ves
Telerik team
 answered on 25 Jun 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?