Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
117 views
Hi,
   Is image editor with free hand drawing facility available with telerik.
Waiting for early reply.
Rumen Jekov
Top achievements
Rank 1
 answered on 26 Jun 2010
1 answer
285 views
I've got two comboboxes with two objectdatasources:
<telerik:RadComboBox ID="RadComboBoxConnection" runat="server" Height="200px" Width="300px" 
        Filter="Contains" MarkFirstMatch="true" ChangeTextOnKeyBoardNavigation="false" AllowCustomText="false" 
        DataSourceID="ObjectDataSourceConnection" DataTextField="DatabaseFriendlyName" DataValueField="ImportConnectionId" AutoPostBack="true" EnableViewState="true"
</telerik:RadComboBox> 
 
<telerik:RadComboBox ID="RadComboBoxObject" runat="server" Height="200px" Width="300px" 
        Filter="Contains" MarkFirstMatch="true" ChangeTextOnKeyBoardNavigation="false" AllowCustomText="false" 
        DataSourceID="ObjectDataSourceObject" DataTextField="ObjectName" DataValueField="ImportObjectId" AutoPostBack="true" EnableViewState="true" OnSelectedIndexChanged="RadComboBoxObject_OnSelectedIndexChanged"
</telerik:RadComboBox> 
 
<asp:Literal ID="litMessage" runat="server" /> 
 
<asp:ObjectDataSource ID="ObjectDataSourceConnection" runat="server"  
    TypeName="Ams.Web.BackOffice.ImportConnectionAdapter"  
    DataObjectTypeName="Ams.Core.DomainObject.ImportConnection"  
    OldValuesParameterFormatString="original_{0}" 
    ConflictDetection="CompareAllValues" 
    SelectMethod="SelectImportConnection" /> 
 
<asp:ObjectDataSource ID="ObjectDataSourceObject" runat="server"  
    TypeName="Ams.Web.BackOffice.ImportObjectAdapter"  
    DataObjectTypeName="Ams.Core.DomainObject.ImportObject"  
    OldValuesParameterFormatString="original_{0}" 
    ConflictDetection="CompareAllValues" 
    SelectMethod="SelectImportObject"
        <SELECTPARAMETERS> 
            <asp:ControlParameter Name="aImportConnectionId" PropertyName="SelectedValue" ControlID="RadComboBoxConnection" /> 
        </SELECTPARAMETERS> 
    </asp:ObjectDataSource> 

The first combobox I have no problems with. I can selected any entry, and on postback it retains its values.
The second combobox however, when selecting a new item, it loses its value every time. Page_Init its SelectedIndex is -1. Page_Load, always 0!! Even when declaring OnSelectedIndexChanged, still 0. ALWAYS 0 or -1!
Any ideas? Thanks in advance.
PS. Also found something really quirky. I can select an entry, then if I deselect (lose the focus of the second combobox) it reverts to the SelectedIndex = 0.

Tim
Top achievements
Rank 1
 answered on 26 Jun 2010
0 answers
112 views
Hi,

i doing one application .i taking this example demo http://demos.telerik.com/aspnet-ajax/grid/examples/programming/accessingcellsandrows/defaultcs.aspx.i wrote pro-grammatically my code is 
  protected void maintaintimetablegrid_ItemCreated(object sender, Telerik.Web.UI.GridItemEventArgs e) 
        { 
            if (e.Item is GridEditFormItem && e.Item is GridEditableItem && e.Item.IsInEditMode) 
            { 
                RadComboBox formRadclass = e.Item.FindControl("formRadclass"as RadComboBox; 
                if (formRadclass != null
                { 
                    formRadclass.AutoPostBack = true
                    formRadclass.SelectedIndexChanged += new RadComboBoxSelectedIndexChangedEventHandler(formRadclass_SelectedIndexChanged); 
                } 
                RadComboBox formRadSubject = e.Item.FindControl("formRadSubject"as RadComboBox; 
                if (formRadSubject != null
                { 
                    formRadSubject.AutoPostBack = true
                    formRadSubject.SelectedIndexChanged += new RadComboBoxSelectedIndexChangedEventHandler(formRadSubject_SelectedIndexChanged); 
                } 
 
            } 
 
        } 
        void formRadclass_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e) 
        { 
            //first reference the edited grid item through the NamingContainer attribute 
            GridEditableItem editedItem = (sender as RadComboBox).NamingContainer as GridEditableItem; 
            RadComboBox formRadroom = editedItem.FindControl("formRadroom"as RadComboBox; 
            if (formRadroom != null
            { 
                formRadroom.Items.Clear(); 
                RadComboBoxItem item1 = new RadComboBoxItem(); 
                item1.Text = "Select Room"
                formRadroom.Items.Add(item1); 
                formRadroom.DataSource = Calendermanager.sch_view_class_default_room((editedItem.FindControl("formRadclass"as RadComboBox).SelectedValue.GetInteger()); 
               formRadroom.DataBind(); 
            } 
            RadComboBox formRadSubject = editedItem.FindControl("formRadSubject"as RadComboBox; 
            if (formRadSubject != null
            { 
                formRadSubject.Items.Clear(); 
                RadComboBoxItem item2 = new RadComboBoxItem(); 
                item2.Text = "Select Subject"
                formRadSubject.Items.Add(item2); 
                int? faciltyid = LogonDetails.Instance.sys_lclvar_default_facility_id; 
                formRadSubject.DataSource = classmarksheetmanager.sch_view_class_subject_lookup((editedItem.FindControl("formRadclass"as RadComboBox).SelectedValue.GetInteger(), faciltyid); 
                formRadSubject.DataBind(); 
            } 
            
        } 
        void formRadSubject_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e) 
        { 
            //first reference the edited grid item through the NamingContainer attribute 
            GridEditableItem editedItem = (sender as RadComboBox).NamingContainer as GridEditableItem; 
            RadComboBox formRadTeacher = editedItem.FindControl("formRadTeacher"as RadComboBox; 
            if (formRadTeacher != null
            { 
                formRadTeacher.Items.Clear(); 
                RadComboBoxItem item1 = new RadComboBoxItem(); 
                item1.Text = "Select Teacher"
                formRadTeacher.Items.Add(item1); 
                formRadTeacher.DataSource = Calendermanager.sch_view_class_subject_teacher_lookup((editedItem.FindControl("formRadclass"as RadComboBox).SelectedValue.GetInteger(), (editedItem.FindControl("formRadSubject"as RadComboBox).SelectedValue.GetInteger()); 
                formRadTeacher.DataBind(); 
            } 
            
 
        } 
 

how to display the dropdownseleted text value  in edit mode .above example take drodowncloumns but am taking in editmode directly dropdowns.How to write the code pro-grammatically above example 
shanker bangari
Top achievements
Rank 1
 asked on 26 Jun 2010
4 answers
105 views
We've updated the ToolsFile.xml to include the following class and css Files.
 <classes>
   
    <class name = "Table- Download" value=".table" />
    <class name = "Bullet" value=".bullet" />
  </classes>

  <cssFiles>
    <item name="/Style Library/styles.css" />
    <!-- temp for phase 1-->
    <item name="/Style Library/ToolsFile.css" />
  </cssFiles>

Everything works fine in IE, but when we test it in Firefox and Chrome the "Table- Download" style is not available from the drop down.

Hope to hear from you soon.
Thanks,
Fu Yuen

Thanks.
Fu Yuen So
Top achievements
Rank 1
 answered on 26 Jun 2010
1 answer
88 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
118 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
221 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
78 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
779 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 ObjectByVal 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
282 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?