Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
131 views
I have a RadScheduler with a DOCK type edit form.  I added a resource combobox that lists all our PO's.  I added a selectedindexchanged to this ddl so I can fill some textboxes based on the selectedValue.  My codebehind fires but I can't seem to reference the textbox fields....like Subject, description etc.

Code Behind example:
Protected Sub ddlPO_SelectedIndexChanged(sender As Object, e As RadComboBoxSelectedIndexChangedEventArgs) Handles ddlPO.SelectedIndexChanged
'getting the ddlPO value works fine I just don't know the code needed to fill in the current textboxes like subject

' i'll lookup the extra info from another datasource
Dim objDetail As New ItemController
Dim objDetailInfo As AE_Fiber_InventoryDetailsInfo

objDetailInfo = objDetail.GetAE_Fiber_InventoryDetails(ddlPO.SelectedValue())
If Not objDetailInfo Is Nothing Then
'''this is where I want to update my current appointment fields and/or another dropdown
 ''' this needs to happen in Insert/Edit

'''.subject = objDetailInfo.Location

End If

Thanks
Doug



End Sub

Plamen
Telerik team
 answered on 17 Feb 2014
3 answers
129 views
In Combo box options, when I click on empty space on the dropdown items (other than checkbox and label) the item text is showing in the textbox eventhough check box is not selected.
Added image for your reference.
And I tried to find the length of the checked items while drop down closed and if its 0 then am manually clearing out the textbox control.
Saying that, checked item length is always returns 0.
Code for your reference.

function OnClientDropDownClosing(sender, eventArgs) {
            var combo = $find("<%= rcbPatientType.ClientID %>");
                if (combo.get_checkedItems().length < 1) {
                    combo.set_text("");
                            }
                }
In the image you can see the spot I have marked where I click, at that time 'All ' checkbox is not checked but its shown in textbox
Now what I want is, either click on empty space should not work otherwise the item checkbox should be checked on clicking the equivalent empty space
Plamen
Telerik team
 answered on 17 Feb 2014
1 answer
82 views
   <Columns>
                    <telerik:GridHyperLinkColumn Text="Edit" AllowFiltering="false" DataNavigateUrlFields="ReservationId"
                        DataNavigateUrlFormatString="/admin/order/details?id={0}&action=edit" />
                    <telerik:GridHyperLinkColumn Text="View" AllowFiltering="false" DataNavigateUrlFields="ReservationId"
                        DataNavigateUrlFormatString="/admin/OrderPreview.ashx?id={0}" Target="_blank" />
                    <telerik:GridBoundColumn UniqueName="ReservationId" HeaderText="Reservation Id" DataField="ReservationId"
                        Exportable="True" CurrentFilterFunction="EqualTo" ShowFilterIcon="false" AutoPostBackOnFilter="True"
                        FilterControlWidth="100%" Display="True" Visible="True">
                    </telerik:GridBoundColumn>
</Columns>

RadGrid2.MasterTableView.Columns[0].Visible = false;
RadGrid2.MasterTableView.Columns[1].Visible = false;

RadGrid2.MasterTableView.Columns[0].Display = false;
RadGrid2.MasterTableView.Columns[1].Display = false;

Column 3 still cannot display when exported to Excel File because they have the same DataField.
Any idears? Thank you so much!

Princy
Top achievements
Rank 2
 answered on 17 Feb 2014
1 answer
126 views
Hello!

I have the following objects and datastructure that I would like to bind to the TreeView and have displayed. The classes and datastructure is simplified, but I'm sure you'll get the idea.

public class Folder : TreeComponent
{
    public int Id { get; set; }
    public int ParentId { get; set; }
    public string Name { get; set; }
    public List<TreeComponent> Children { get; set; }
}
 
public class File : TreeComponent
{
    public int Id { get; set; }
    public int ParentId { get; set; }
    public string Name { get; set; }
}

Now, I have a generic list of List<TreeComponent> in which I have some "Folders" and some "Files". The "Folders" also contain "Subfolders" and other "Files". Graphically it looks something like this:

-Folder1 (level1)
    - Folder2 (level2
        - File1 (level 3)
    - File2 (level2)
- Folder3 (level1)
...etc.

So with that datastructure I bind to the TreeView:

this.RadTreeViewAreas.DataFieldID = "Id";
this.RadTreeViewAreas.DataFieldParentID = "ParentId";
this.RadTreeViewAreas.DataTextField = "Name";
this.RadTreeViewAreas.DataSource = this.treeComponentList
this.RadTreeViewAreas.DataBind();

...but only "level 1" nodes are displayed. I guess the TreeView does not support lists with childlists. What is the easiest way to display those subfolders and files. It's not an obtion to "flatten" the initial list it has to stay like it is!

Best regards

Claus
Bozhidar
Telerik team
 answered on 17 Feb 2014
1 answer
113 views
Hi,

I'm using Telerik controls (version 2013.2.717.40) alongside a jQuery plugin called handsontable within a DNN7 application. My page with the Telerik controls and plugin all work fine in in IE9+, Chrome and Firefox however there's an issue with IE8. In summary, even if I include just a reference to the handsontable javascript files in the head of my page using regular script tags (without actually including any code to render the table) and there's a postback then the page stops responding. I've attached a screenshot of where in the javascript is falling over (please see line highlighted in yellow). It seems to be falling over when it encounters something relating to opacity / filter. I appreciate that this is not entirely a Telerik related issue (as the page works in IE8 if I exclude the plugin - which isn't an option) but I'm wondering whether someone might know what might be causing it.


Thanks
Angel Petrov
Telerik team
 answered on 17 Feb 2014
1 answer
133 views
Hi All ,
            I have a radgrid which have child grid in which I have Footer template when I am exporting it by using "OnExcelMLExportRowCreated"   event I am unable to get  these items from footer template . and also unable  to get  the items of groupFooter template

 <telerik:GridTemplateColumn HeaderText="column" UniqueName="column" SortExpression="Subtotal" FooterStyle-HorizontalAlign="Right" FooterAggregateFormatString="{0:0.000}">
                                                                <HeaderStyle Wrap="false" Width="230px" />
                                                                <ItemStyle Wrap="false" HorizontalAlign="Right" />
                                                                <ItemTemplate>
                                                                    <asp:Label runat="server" ID="requestTotalLabel" Text='<%#Eval("total") %>'></asp:Label>
                                                                </ItemTemplate>
                                                                <FooterTemplate>
                                                                    <table width="100%">
                                                                        <tr>
                                                                            <td style="white-space: nowrap">
                                                                                <asp:Label runat="server" ID="requestTotalLabel" Text="request column:"></asp:Label>
                                                                            </td>
                                                                            <td>
                                                                                <telerik:RadNumericTextBox runat="server" ID="requestTotalRadNumericTextBox" ReadOnly="true"
                                                                                    Width="100px" EnabledStyle-HorizontalAlign="Right" NumberFormat-DecimalDigits="3" CssClass="AlignedRadNumericTextBox">
                                                                                </telerik:RadNumericTextBox>
                                                                            </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td style="white-space: nowrap">
                                                                                <asp:Label runat="server" ID="addressLabel" Text="address:"></asp:Label>
                                                                            </td>
                                                                            <td>
                                                                                <telerik:RadNumericTextBox runat="server" ID="addressRadNumericTextBox" ReadOnly="true"
                                                                                    Width="100px" EnabledStyle-HorizontalAlign="Right" NumberFormat-DecimalDigits="3" CssClass="AlignedRadNumericTextBox">
                                                                                </telerik:RadNumericTextBox>
                                                                            </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td style="white-space: nowrap">
                                                                                <asp:Label runat="server" ID="TaxesLabel" Text="Taxes:"></asp:Label>
                                                                            </td>
                                                                            <td>
                                                                                <telerik:RadNumericTextBox runat="server" ID="TaxesRadNumericTextBox" ReadOnly="true"
                                                                                    Width="100px" EnabledStyle-HorizontalAlign="Right" NumberFormat-DecimalDigits="3" CssClass="AlignedRadNumericTextBox">
                                                                                </telerik:RadNumericTextBox>
                                                                            </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td colspan="2">
                                                                                <hr />
                                                                            </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td style="white-space: nowrap">
                                                                                <asp:Label runat="server" ID="requestTotalLabel" Text="request Total:"></asp:Label>
                                                                            </td>
                                                                            <td>
                                                                                <telerik:RadNumericTextBox runat="server" ID="requestTotalRadNumericTextBox" ReadOnly="true"
                                                                                    Width="100px" EnabledStyle-HorizontalAlign="Right" NumberFormat-DecimalDigits="2" CssClass="AlignedRadNumericTextBox">
                                                                                </telerik:RadNumericTextBox>
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                </FooterTemplate>
                                                            </telerik:GridTemplateColumn>


on code behind I am accessing it as 
 foreach (GridGroupFooterItem item in RadGrid.MasterTableView.GetItems(GridItemType.GroupFooter))
            {
                //set the colspan, so that the template cells are aligned with the grid columns
                for (int i = 0; i <= item.Cells.Count - 1; i++)
                {
                    (item.Cells[i] as TableCell).ColumnSpan = 1;
                }
                //color the footer labels based on the group index
                //SetFooterLabelsColor(item);
            }
 foreach (GridGroupFooterItem item in OrderLineItemsRadGrid.MasterTableView.GetItems(GridItemType.GroupFooter))
            {
                //set the colspan, so that the template cells are aligned with the grid columns
                for (int i = 0; i <= item.Cells.Count - 1; i++)
                {
                    (item.Cells[i] as TableCell).ColumnSpan = 1;
                }
              
            }



thanks





Angel Petrov
Telerik team
 answered on 17 Feb 2014
1 answer
692 views
Hi,

is there any event that is fired if value of combobox with checkboxes was changed? ( I need it to load items to dependent comboboxes) And I cannot use ItemChecked event, I need event that is fired after user closes dropdown, not event that is fired after each item is checked. TextChanged event is also useless in this situation because it works only if I select 1 item in combobox. SelectIndexChanged also doesn't work for more than one item.

So is there any way how to do that or do I have to use client-side events?

Thanks,
Karel Bem
Shinu
Top achievements
Rank 2
 answered on 17 Feb 2014
1 answer
119 views
How set Regular Expression Validator to a GridHTMLEditorColumn using Sub RadGrid1_ItemCreated?
And tips how i get MaxLength to work in GridHTMLEditorColumn?
Princy
Top achievements
Rank 2
 answered on 17 Feb 2014
1 answer
143 views
Hi
I am using RadWindow which contains RadAsyUpload in asp.net update panel , image control and button when i select image in RadasyUpload image get uploaded and preview is displaying in image control, but problem is that when image uploaded RadWindow get close and to view image i have to open Radwindow again , how could i keep open RadWindow after displaying image and close it when i click on close button
Princy
Top achievements
Rank 2
 answered on 17 Feb 2014
1 answer
243 views
I used image button in TemplateColumn I want to get DataKeyNames(id)  value of row when Image button clicked  to view PDF file that  stored in server and has the same name as id of row in new tab, how can I do this 
Thanks
Princy
Top achievements
Rank 2
 answered on 17 Feb 2014
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?