Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
121 views
Files uploaded to Azure have a file name like 2b6267b8-9a59-4452-ae74-6413ba888970_MyPicture.jpg instead of MyPicture.jpg.  I can't find any setting to change this, so I want to find out if this is normal behavior.  I'm using:

<telerik:RadCloudUpload ID="RadCloudUpload1" runat="server" MultipleFileSelection="Automatic"
    AllowedFileExtensions=".jpg,.jpeg,.gif" ProviderType="Azure" MaxFileSize="3145728">
</telerik:RadCloudUpload>


Peter Filipov
Telerik team
 answered on 18 Nov 2013
6 answers
96 views

I'm using radGrid to show 10 rows and 1st column frozen.  I'm also using GridTemplateColumns.

Using an UpdatePanel with async trigger to initiate the results shows fine the first time...10 rows displayed + first column frozen.

Then, I click the same search again but this time, only 8 rows show and I lose the frozen 1st column.  The data scrolls left/right but the headers remain in place.

Once in this broken state I click paging or sort (grdSearchResult_PageIndexChanged or grdGSearchResult_SortCommand) which rebinds the data, it fixes itself and the frozen column is back.

I really want to know why the radGrid doesn't size itself to show all 10 rows and what may be going on differently in the PageIndexChanged events.  I have my radGrid Height set  but should I be using something in the CSS to it automatically sizes to fit all the data rows?

I can't duplicate this behavior in IE though.

David
Top achievements
Rank 1
 answered on 18 Nov 2013
1 answer
442 views

I am trying to implement a solution on a website where some pages have a RadTabStrip (with the MultiPageID set) with multiple tabs (with the PageViewID set).

When navigating to a page you can set the focus be set to a specific control that may be in a RadPageView.  If that is the case what is the best way to select the tab that corresponds to the page view that contains the control?

Basically when focus is set to a control in a RadPageView how do I make sure the rad tab is selected so that control can be seen on the page?

I can find the control on the page that needs focus and then find the parent RadPageView (and RadMultiPage), but I don't know of a good way to select the RadTab that corresponds to the RadPageView (since I don't know the ID of the RadTabStrip). 

Am I forced to recursively search through the controls on to the page to find the RadTabStrip (by type) and then find the tab that has the matching PageViewID?

Thanks!

Boyan Dimitrov
Telerik team
 answered on 18 Nov 2013
1 answer
121 views
This is possibly related to this thread: http://www.telerik.com/community/forums/aspnet-ajax/async-upload/ie8-multiplefileselection-and-uploadedfilesrendering-belowfileinput-error.aspx

When I use RadSyncUpload with UploadedFilesRendering="BelowFileInput", when I click "Cancel' in any of the files currently being uploaded, it throws a javascript error.

TypeError: p.map[(o - q)] is undefined
at "}else{delete p.map[o-q].file;"

This occurs in all browsers. I tested this when the control was working in FileAPI mode and Silverlight mode. In all the cases this error comes up. In Silverlight mode the error comes up as "System.NullReferenceException: [Arg_NullReferenceException]".

I'm also using MultipleFileSelection="Automatic" and I absolutely need multiple file selection if the browser supports it.

The error does not occur when I set UploadedFilesRendering="AboveFileInput".

Telerik version: 2012.2.607.35

Is there a workaround for this?
Hristo Valyavicharski
Telerik team
 answered on 18 Nov 2013
3 answers
103 views

Hi,

Using Visual Studio 2012 RC,  I added new  sharepoint 2010 Project & try to add  New Reporting item  (Show in screen shot)

It shows me following error message:-

Error loading workflow

An error occured while loading the workflow. Please correct the following error and try reloading the document to view the workflow.

the designer could not be shown for this file because none of the classes within it can be designed. The designer inspected the following classes in the file: Report1. The base class Report1 for the class needs to be an Activity.

Stef
Telerik team
 answered on 18 Nov 2013
2 answers
413 views
Hello all.  I am having an issue with a radwindow that I haven't seen here.  It's probably something simple that I need to do, but cannot seem to figure it out.

My issue is this:

I have A radwindow

<telerik:RadWindow runat="server" ShowContentDuringLoad="False" ReloadOnShow="true" Title="Trend Report - Select Scope Objects"
    AutoSize="false" ID="RadWindowAddTrendScopeObjects" Width="500px" Height="445px" Modal="true"
    OnClientClose="OnClientCloseAddTrendScopeObjectsWindow" Behavior="Default" InitialBehaviors="None"
    Behaviors="Close,Move" DestroyOnClose="true">
</telerik:RadWindow>

I initialize the NavigateURL on page load as follows:
assessmentID = new Guid(ddlDataSource.SelectedValue);
RadWindowAddScopeObjects.NavigateUrl = addScopeURL + assessmentID.ToString() + "&LinkID1=" + cachedUser.User.UserID.ToString();                

I open it using a lnk button and the javascript below and it works like a charm

 

<asp:LinkButton ID="lnkBtnTrendSelectScopeItems" runat="server" Text="Click Here"

 

 

OnClientClick="openAddTrendScopeObjectsWindow(); return false;"></asp:LinkButton>

 

(Javascript below)



function
openAddTrendScopeObjectsWindow() {

 

 

var oWnd = $find("<%= RadWindowAddTrendScopeObjects.ClientID %>");

 

oWnd.show();

}


The problem happens when I try to modify the navigateURL and then reopen the radwindow
protected void ddlTrendAssessmentBasedScope_SelectedIndexChanged(object sender, EventArgs e)
{
    trendAssessmentID = new Guid(ddlTrendAssessmentBasedScope.SelectedValue);
    RadWindowAddTrendScopeObjects.NavigateUrl = addScopeURL + trendAssessmentID.ToString() + "&LinkID1=" + cachedUser.User.UserID.ToString();
}
If I change the dropdown, thus triggering the above code and changing the NavigateURL (verified in debug), then again clicking the lnkbutton lnkBtnTrendSelectScopeItems, the radWindow opens again with the orginal URL still in place.

Thanks in advance for your help!
Clint

Dave
Top achievements
Rank 1
 answered on 18 Nov 2013
2 answers
106 views
Good day, I'm merely trying to set the ListView in EditMode via the use of a radButton_click but nothing I've tried so far has worked.

<
telerik:RadListView ID="CommitmentsListView" runat="server" DataKeyNames="AgreementID" ItemPlaceholderID="CommitmentsContainer"
                                                                                EnableViewState="true" InsertItemPosition="FirstItem" >
    <LayoutTemplate>
        <div style="min-height: 100px">
            <asp:PlaceHolder runat="server" ID="CommitmentsContainer" />
        </div>
    </LayoutTemplate>
    <ItemTemplate>
        <div style="text-align:right;padding-right:2px;">
            <asp:Label ID="lblCommitmentNumber" runat="server" Text="Commitment Number:" Font-Bold="true" Style="margin-top:5px;font-size:0.75em;"></asp:Label>
            <br />
            <asp:Label ID="lblPurchaseOrder" runat="server" Text="Purchase Order:" Font-Bold="true" Style="margin-top:5px;font-size:0.75em;"></asp:Label>
        </div>
    </ItemTemplate>
    <EditItemTemplate>
        <div style="text-align:right;padding-right:2px;">
            <asp:Label ID="lblCommitmentNumber" runat="server" Text="Commitment Number:" Font-Bold="true" Style="margin-top:5px;font-size:0.75em;"></asp:Label>
            <br />
                    <telerik:RadComboBox ID="PurchaseOrder" runat="server" HighlightTemplatedItems="true" Style="font-weight:Bold;" 
                                    DataTextField="PurchaseOrder" DataValueField="PurchaseOrder"  Width="80px" AutoPostBack="true" >
                    </telerik:RadComboBox>                   
        </div>
 
    </EditItemTemplate>
 </telerik:RadListView>
 
<telerik:RadButton ID="EditButton" runat="server" Text='Edit' CommandName="Edit" CausesValidation="false">
    <Icon PrimaryIconCssClass="rbEdit" PrimaryIconLeft="4" PrimaryIconTop="4"></Icon>
</telerik:RadButton>
Private Sub CommitmentsListView_NeedDataSource(sender As Object, e As RadListViewNeedDataSourceEventArgs) Handles CommitmentsListView.NeedDataSource
 
    Dim myList As New List(Of BudgetCommitment)
    myList.Add(New BudgetCommitment("001AR1101-E", 2015))
 
    CommitmentsListView.DataSource = myList.ToList
 
End Sub
 
Private Sub EditButton_Click(sender As Object, e As EventArgs) Handles EditButton.Click
 
End Sub
Eyup
Telerik team
 answered on 18 Nov 2013
5 answers
319 views

Within my data source I can only retrieve month names.   I need the month column sorted by when they occur in the year not alphabetically.  

So I need the months to show January, February, etc not April, August etc
Can anyone help?   Here is how I'm referencing the month column name:

 

<telerik:PivotGridColumnField DataField="month_name" DataFormatString="{0}"  UniqueName="month_name" >

 </telerik:PivotGridColumnField>

 

Tim
Top achievements
Rank 1
 answered on 18 Nov 2013
2 answers
61 views
Our business is open Monday-Thursday 9:00am-5:00pm, Friday 9:00am-8:00pm, Saturday 8:00am-8:00pm and closed Sunday.

I see a start and end time for the scheduler, but is it possible to bind the start and end times to a dataset that has the days of the week with start and end times? This way, appointments can only be scheduled during our business hours, and not when we are closed.
Steve
Top achievements
Rank 1
 answered on 18 Nov 2013
11 answers
504 views
Greetings!

Can anyone suggest a method with which I can change a cell's BackColor when its value is edited? Using textchanged, keydown or some other event will do. The problem I have is that the grid is autogenerated and most of the column names are unknown. 

I set my cells to be editable in PreRender like so:
For Each item As GridItem In RadGridViewExcelGridTest.MasterTableView.Items
    If TypeOf item Is GridEditableItem Then
        Dim editableItem As GridEditableItem = CType(item, GridDataItem)
        editableItem.Edit = True
    End If
Next
 
RadGridViewExcelGridTest.Rebind()

And my edit mode is InPlace. I noticed the Batch edit mode has its own ClientSetting called "ClientEvents-OnBatchEditCellValueChanged", but for reasons my edit mode has to be InPlace.

The way it works now is that the grid loads as completely editable. A user can update multiple cells on multiple rows - so I'd like to provide a visual cue to let the user know which items have been edited (and have not yet been saved). I noticed on this demo a little triangle shows when you click out of a cell that was edited - and that would be fine. I just didn't see the mechanism that produces that result. My situation would also be slightly different, as my cells are always in edit mode (i.e., textbox vs label) - but the principle
would be the same. 

I tried doing this on my ItemCreated (excluding the known column names, that are either not visible or not editable):
If TypeOf e.Item Is GridEditableItem Then
    Dim item As GridDataItem = TryCast(e.Item, GridDataItem)
    For Each column As GridColumn In item.OwnerTableView.RenderColumns
        If (column.UniqueName <> "Project" And column.UniqueName <> "DepartmentNumber" And column.UniqueName <> "ProjectNumber" And column.UniqueName <> "Alias") Then
            Dim EditBox As New TextBox()
            EditBox.Text = item(column).Text
            AddHandler EditBox.TextChanged, AddressOf EditBox_TextChanged
            EditBox.AutoPostBack = True
            item(column).Controls.Clear()
            item(column).Controls.Add(EditBox)
        End If
    Next
End If

But I then get an error message that the "Editor cannot be initialized for column: " followed by the first column that should be editable (and this error appears to get thrown on the Rebind() in my PreRender, for what it's worth).
Daniel
Telerik team
 answered on 18 Nov 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?