Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
150 views
Hi,

I tried to bind ImageUrl property with ObjectDataSource without success. I look all demo and exemple for this work and i can't find how to bind this property.

My treeView display the text and build good structure, mais i can't set ImageUrl from my object.

I tried this in the markup 
ImageUrl="Image"
<telerik:RadTreeView ID="rtvNavigation" runat="server"
    MultipleSelect="false"
    Font-Size="9pt"
    Height="94%"
    Width="100%"
    DataSourceID="ObjectDataSource1"
    DataTextField="Description"
    DataFieldID="ID"
    DataFieldParentID="ParentID"
    AllowNodeEditing="false"         
    ImageUrl="Image"       
    OnNodeClick="rtvNavigation_NodeClick">
</telerik:RadTreeView>
and onNodeDataBound event, i can't set this imageURL because the ID is always empty.

Thank you for help!




Allin
Top achievements
Rank 1
 answered on 04 Apr 2013
3 answers
69 views
Hi guys,

I'm not sure if this has already been addressed or identified, but I'd like to point out an issue that I can reproduce on your demo page:

Reproduction steps:
1. Go to your demo page: http://demos.telerik.com/aspnet-ajax/scheduler/examples/overview/defaultcs.aspx
2. Click on an available time slot to create an appointment and click 'Options' to bring up the advanced form
3. Give the appointment an arbitrary subject, and check the 'recurrence' box
4. Select and insert '1000' into the 'end after ... occurrences' box
5. Click Save
6. Reopen the appointment ('edit entire series')

Expected results: The 'end after' box still has the value of 1000.
Actual results: The 'end after' box has the value of 1.

Comments:
It works as expected for values up to 999. It seems to run into a problem when the thousands separator comes into play (i.e. the text is formatted as "1,000" when 1000 is entered into the box. As such, I imagine it may have something to do with regional settings and the way numbers are parsed and formatted. At a lower level, it seems that calling:

$find("<recurrenceEditorId>").get_recurrenceRule().get_range().get_maxOccurrences()

returns the incorrect value. Sadly I don't have time to go deeper into the definition of this function, but I would appreciate it if you could kindly let me know:
* Is this indeed a bug?
* Is it a known bug?
* Are there any workarounds?
* Any estimate on when a fix may be released?

Thanks for your time.

Cheers,
Sam
Sam
Top achievements
Rank 1
 answered on 04 Apr 2013
1 answer
139 views
Hi,

When I try to upload a file using FileExplorer, the update panel keeps showing long after the file upload.

In the Chrome console, this script error appears:

Uncaught TypeError: Cannot call method 'get_selectedItem' of null

Here's the declaration of the FileExplorer:

<telerik:RadFileExplorer ID="ExplorerExportTemplates" runat="server" Width="600px" Height="400px"
                                                            Skin="Metro" Configuration-AllowFileExtensionRename="False" Configuration-AllowMultipleSelection="False"
                                                            AllowPaging="true" EnableOpenFile="true" EnableAsyncUpload="True">
                                                            </telerik:RadFileExplorer>

Here's the code-behind:

string[] paths = new string[] { Page.ResolveUrl(fullPath) };
                ExplorerExportTemplates.Configuration.ViewPaths = paths;
                ExplorerExportTemplates.Configuration.UploadPaths = paths;
                ExplorerExportTemplates.Configuration.DeletePaths = paths;
                ExplorerExportTemplates.Configuration.EnableAsyncUpload = true;
                ExplorerExportTemplates.Configuration.MaxUploadFileSize = 104857600;
                ExplorerExportTemplates.Configuration.AllowFileExtensionRename = false;
                ExplorerExportTemplates.Configuration.AllowMultipleSelection = false;
                ExplorerExportTemplates.EnableCreateNewFolder = true;
                ExplorerExportTemplates.EnableCopy = false;
                ExplorerExportTemplates.ExplorerMode = Telerik.Web.UI.FileExplorer.FileExplorerMode.FileTree;
                ExplorerExportTemplates.Configuration.SearchPatterns = new string[] { "*.xls", "*.xlsx" };
                ExplorerExportTemplates.Configuration.ContentProviderTypeName = typeof(Telerik.Web.UI.Widgets.FileSystemContentProvider).AssemblyQualifiedName;


Any ideas?

Thanks,

Ajit
Dobromir
Telerik team
 answered on 04 Apr 2013
1 answer
82 views
Hello!

I build my grid on Runtime

protected void Page_Init(object sender, System.EventArgs e)
        {
 
RadGrid RadGrid1 = new RadGrid();
            RadGrid1.ID = "grid";
             RadGrid1.ClientSettings.Scrolling.ScrollHeight = 500;
            RadGrid1.ClientSettings.Scrolling.AllowScroll = true;
            RadGrid1.AllowAutomaticInserts = false;
            RadGrid1.AllowAutomaticUpdates = false;
...
...
...
           PlaceHolder1.Controls.Add(RadGrid1);
}

Now, i want show a LoadingPanel for every action in the Grud (load new Data, Insert, Update...)

How can i do this ?

Thank You!
Jayesh Goyani
Top achievements
Rank 2
 answered on 04 Apr 2013
1 answer
70 views
Hello,

There is a RadCombobox with check-boxes enabled in my project. There is another RadButton and on server side clicking the button, I want to display an alert that contains the checked item text from the RadCombobox for ex "You have selected Item1, Item2". Please help me with any sample solution.

Thanks in advance,
Anly.
Princy
Top achievements
Rank 2
 answered on 04 Apr 2013
2 answers
116 views
Hi

I have radgrid with custom filtering:
<script type="text/javascript">
function IconsComboBoxChanging(sender, eventArgs) {
                var item = eventArgs.get_item();
                if (item != null) {
                    var input = sender.get_inputDomElement();
                    input.value = "";
                    input.defaultValue = "";
                }
            }
function DropDownFilterLoad(sender) {
                sender.set_text("");
                var itm = sender.get_items();
                var selected = itm.getItem(sender._selectedIndex);
                var img = selected.get_imageUrl();
                var input = sender.get_inputDomElement();
                SetBackground(input, img);
            }
</script>
<telerik:RadGrid ID="RadGrid1" runat="server" AllowFilteringByColumn="true" OnNeedDataSource="CorrectionsGrid_NeedDataSource" [...]>
[...]
    <Columns>
        <telerik:GridTemplateColumn UniqueName="CorrectStatus" HeaderText="Status" HeaderStyle-Width="55px" Resizable="false" DataField="CorrectionAcceptState">
            <ItemTemplate>
                <asp:Image [...] />
            </ItemTemplate>
            <FilterTemplate>
                <telerik:RadComboBox ID="StatusFiletCB" Width="45px" AppendDataBoundItems="true" DropDownWidth="205px" NoWrap="true" runat="server" OnSelectedIndexChanged="CorrectStatusFilterChange" AutoPostBack="true" AllowCustomText="false" OnClientSelectedIndexChanged="IconsComboBoxChanging" OnClientLoad="DropDownFilterLoad">
                    <Items>
                        <telerik:RadComboBoxItem Value="0"[...] />
                        <telerik:RadComboBoxItem Value="1"[...] />
                        <telerik:RadComboBoxItem  Value="2" [...] />
                    </Items>
                </telerik:RadComboBox>
            </FilterTemplate>
        </telerik:GridTemplateColumn>
<telerik:GridTemplateColumn AllowFiltering="false" UniqueName="ActionColumn" HeaderText="" HeaderStyle-Width="60px"
    Resizable="false" Visible="false">
    <ItemTemplate>
       <asp:ImageButton CommandName="Reject" runat="server" CommandArgument='<%# Eval("CorrId") %>' Visible='<%# this.IsUserAllowedToAccept() %>' [...] />
    </ItemTemplate>
</telerik:GridTemplateColumn>



    [...]
    </Columns>
</telerik:RadGrid>

Code behinde:
protected void CorrectionsGrid_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
{
    CorrectionsGrid.DataSource = new MyDataContext().Corrections;
}
 
private int? GetValueOfCorrectionAcceptStateFilter()
{
    var regSearch = Regex.Match(CorrectionsGrid.MasterTableView.FilterExpression, @".*\(it\.CorrectionAcceptState = (?<filterVal>[1-3])\).*");
    if (regSearch.Success)
        return Int32.Parse(regSearch.Groups["filterVal"].Value);
    else
        return null;
}
 
protected void CorrectStatusFilterChange(object o, RadComboBoxSelectedIndexChangedEventArgs e)
{
    string filterExpression = CorrectionsGrid.MasterTableView.FilterExpression;
 
    var currentcFilter = GetValueOfCorrectionAcceptStateFilter();
    if (currentcFilter.HasValue)
        filterExpression = filterExpression.Replace("(it.CorrectionAcceptState = " + currentcFilter.Value + ")", string.Empty);
 
    if (Int32.Parse(e.Value) > 0)
        filterExpression = (filterExpression.Trim().Length > 0 ? filterExpression + " AND " : "")
                            + "(it.CorrectionAcceptState = " + e.Value + ")";
    CorrectionsGrid.MasterTableView.FilterExpression = filterExpression;
    CorrectionsGrid.MasterTableView.Rebind();
}

everything works fine until I set the filter and call out rejection - invalid postback or callback argument. where making a mistake?
Mariusz
Top achievements
Rank 1
 answered on 04 Apr 2013
1 answer
91 views

Hello,
I have combobox1 populated with data have multiple selection checkboxes in it…
I have another combobox2 which will get populated based on checked items in the combobox1…

I want to know how to do this from codebehind…

what events we need to use and sample code will help....

Thanks

Princy
Top achievements
Rank 2
 answered on 04 Apr 2013
4 answers
259 views
how do I put in a tooltip a button and a LinkButton that have to be used?
Fabio Cirillo
Top achievements
Rank 1
 answered on 04 Apr 2013
1 answer
106 views
Hi,

While the user upload files to the server using RadUpload, Is there any mechanism to perform file validation process for a particular file extension alone?

Thankyou,
Berk.
Princy
Top achievements
Rank 2
 answered on 04 Apr 2013
1 answer
86 views
I have a radgrid with a GridClientSelectColumn. When the control is rendered it shows two check box items (as per the uploaded image).

Why is it doing this and how can I fix it?

Thanks
Eyup
Telerik team
 answered on 04 Apr 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?