Telerik Forums
UI for ASP.NET AJAX Forum
8 answers
420 views
Hi,

I have a problem with RadTextBox, version 2012.3.1113.40. I cannot paste into the textbox when setting TextMode="MultiLine" and  MaxLength. This issue happens with IE 10 only.

Thanks.
Maria Ilieva
Telerik team
 answered on 16 Dec 2013
2 answers
143 views
Hi! 

Anyone know if I need to specify some property specifies to run the automatic calculation of the position of notifications?
My notifications are on the MasterPage, when I invoke the notification as it overlaps the previous one.
I wish the notifications is displayed as in the example:
http://demos.telerik.com/aspnet-ajax/notification/examples/overview/defaultcs.aspx

thak you.
Sandro Pinheiro.

SANDRO
Top achievements
Rank 2
 answered on 16 Dec 2013
1 answer
76 views
Hi,
how to set the pager at the top of the grid?
Shinu
Top achievements
Rank 2
 answered on 16 Dec 2013
4 answers
146 views
I have a RadAsyncUpload control embedded inside a CommandItemTemplate, we are upgrading from RadUpload. My problem is that the button appears in the command strip of the grid, but clicking the button does not bring up the FileOpen dialog. As far as I can tell, nothing happens at all. We are subscribed to the OnItemCommand event but we don't land there when clicking the button. This works OK with the RadUpload control.
Any suggestions? Code snippet below:

<CommandItemTemplate>
                        <table class="buttonsTable">
                        <tr>
                        <td class="uploadButton">
                            <telerik:RadAsyncUpload ID="ulIosRedemptionInfo" runat="server"
                                AllowedFileExtensions="xls"
                                MaxFileInputsCount="1"
                                ControlObjectsVisibility="None"
                                OnClientFileUploaded="clientFileUploaded"
                                OnFileUploaded="dgdRedemptionFileUploaded">
                                <Localization Select="Add" />
                            </telerik:RadAsyncUpload>
                            <%--                          
                            <telerik:RadUpload AllowedFileExtensions=".xls" ID="ulIosRedemptionInfo"
                                runat="server" ControlObjectsVisibility="None"
                                OnClientFileSelected="iosRedemptionCodeFileSelected">
                                <Localization Select="Add" />
                            </telerik:RadUpload>
                            --%>
                        </td>
                        <td>
                            <asp:LinkButton ID="lbtnRefresh" runat="server" OnClick="lbtnRefresh_Click" Visible="false"><img style="border:0px;vertical-align:middle;position:relative;padding:0;" alt="" src="<%=this.ResolveUrl("~/Images/toolbar/refresh_grey_16.png")%>" /> Refresh</asp:LinkButton
                            <asp:LinkButton ID="lbtnInspect" runat="server" OnClientClick="showInspectWindow(); return false;" Visible="false"><img style="border:0px;vertical-align:middle;position:relative;padding:0;" alt="" src="<%=this.ResolveUrl("~/Images/toolbar/inspect.png")%>" /> Inspect</asp:LinkButton>                                
                            <asp:LinkButton ID="lbtnDelete" runat="server" Visible="false" OnClick="lbtnDelete_Click"
                                OnClientClick="return blockConfirm('Are you sure you want to delete these purchase orders?', event, 450, 100,'','Application Policy > Redemption Code');"><img style="border:0px;vertical-align:middle;position:relative;padding:0;" alt="" src="<%=this.ResolveUrl("~/Images/toolbar/delete.png")%>" /> Delete</asp:LinkButton>
                        </td>
                        </tr>
                        </table>
                        </CommandItemTemplate>
Hristo Valyavicharski
Telerik team
 answered on 16 Dec 2013
1 answer
101 views
Hi 
how to identify if the grid is in insert or editmode for inplace edit in the ItemCreated event?
Shinu
Top achievements
Rank 2
 answered on 16 Dec 2013
3 answers
178 views
Hello,
    I would like to use a simple version of the RadLinearGauge that just shows the bar without all the scale ticks and stuff. This is easy enough to do by setting the visibility of all the bits I don't want to false. I need three of these on my page, one with a green bar, one with an amber bar and one with a red bar. The snag is that I cannot see a way to change the colour of the bar.

One glimmer of hope was offered in the Telerik demo (here) because when you switch skins (e.g. to "Glow"), then the colour of the bar does change. So I thought I would build three skins using the Telerik Visual Style Builder, but the Gauge control doesn't appear in the list of controls to skin.

Can anybody help?
Danail Vasilev
Telerik team
 answered on 16 Dec 2013
1 answer
869 views
I have problem inserting and updating Radgrid from code behind manually 
In Inserting I cannot get the data from grid using ExtractValuesFromItem
In updating I get the old data not the updated data using ExtractValuesFromItem also 
here's the source code

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="grdMain">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="grdMain"></telerik:AjaxUpdatedControl>
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
   <telerik:RadGrid ID="grdMain" runat="server" OnInsertCommand="grdMain_InsertCommand" OnUpdateCommand="grdMain_UpdateCommand" >
            <MasterTableView EditMode="InPlace" CommandItemDisplay="Top"  AutoGenerateColumns="False" >
            <Columns>
                 <telerik:GridBoundColumn  DataField="Id" DataType="System.Int32"
                   HeaderText="Id" Visible="true" UniqueName="Id" ReadOnly="true">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="MinValue"
 
DataType="System.Int32"
                    FilterControlAltText="Filter MinValue column"
 
HeaderText="MinValue"
                    SortExpression="MinValue" UniqueName="MinValue">
                      <ColumnValidationSettings
 
EnableRequiredFieldValidation="true" RequiredFieldValidator-ControlToValidate="">
                        <RequiredFieldValidator ForeColor="Red"
 
ErrorMessage="*"></RequiredFieldValidator>
                      </ColumnValidationSettings>
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="MaxValue"
 
DataType="System.Int32"
                    FilterControlAltText="Filter MaxValue column"
 
HeaderText="MaxValue"
                    SortExpression="MaxValue" UniqueName="MaxValue">
                   <ColumnValidationSettings
 
EnableRequiredFieldValidation="true">
                        <RequiredFieldValidator ForeColor="Red"
 
ErrorMessage="*"></RequiredFieldValidator>
                      </ColumnValidationSettings>
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="ResultDate"
 
DataType="System.DateTime"
                    FilterControlAltText="Filter ResultDate column"
 
HeaderText="ResultDate"
                    SortExpression="ResultDate" UniqueName="ResultDate">
                      <ColumnValidationSettings
 
EnableRequiredFieldValidation="true">
                        <RequiredFieldValidator ForeColor="Red"
 
ErrorMessage="*"></RequiredFieldValidator>
                      </ColumnValidationSettings>
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="ResultValue"
 
DataType="System.Int32"
                    FilterControlAltText="Filter ResultValue column"
 
HeaderText="ResultValue"
                    SortExpression="ResultValue" UniqueName="ResultValue">
                      <ColumnValidationSettings
 
EnableRequiredFieldValidation="true">
                        <RequiredFieldValidator ForeColor="Red"
 
ErrorMessage="*"></RequiredFieldValidator>
                      </ColumnValidationSettings>
                </telerik:GridBoundColumn>
                 <telerik:GridEditCommandColumn uniqueName="EditCommandColumn"></telerik:GridEditCommandColumn>
            </Columns>
        </MasterTableView>
    </telerik:RadGrid>


protected void grdMain_InsertCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e)
    {
        AnalyzerResultBO _BO = new AnalyzerResultBO();  //Business object
        GridEditableItem editedItem = e.Item as GridEditableItem;
        Hashtable InputValues = new Hashtable();
        //The GridTableView will fill the values from all editable columns in the hash
          e.Item.OwnerTableView.ExtractValuesFromItem(InputValues, editedItem);
 
        _BO.MaxValue = int.Parse(InputValues["MaxValue"].ToString());
        _BO.MinValue = int.Parse(InputValues["MinValue"].ToString());
        _BO.ResultValue = int.Parse(InputValues["ResultValue"].ToString());
        _BO.ResultDate = InputValues["ResultDate"].ToString();
 
 
    }
 
    protected void grdMain_UpdateCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e)
    {
        AnalyzerResultBO _BO = new AnalyzerResultBO(); //Business Object
        GridEditableItem editedItem = e.Item as GridEditableItem;
        Hashtable InputValues = new Hashtable();
        //The GridTableView will fill the values from all editable columns in the hash
        e.Item.OwnerTableView.ExtractValuesFromItem(InputValues, editedItem);
 
        _BO.MaxValue = int.Parse(InputValues["MaxValue"].ToString());
        _BO.MinValue = int.Parse(InputValues["MinValue"].ToString());
        _BO.ResultValue = int.Parse(InputValues["ResultValue"].ToString());
        _BO.ResultDate = InputValues["ResultDate"].ToString();
    }


Princy
Top achievements
Rank 2
 answered on 16 Dec 2013
3 answers
310 views
Hi Guys,

I have a requirement to display the order of the appointment in MonthView based on my own defined "Category" attribute.
Take of example, Cat A will displayed first follow by Cat B.
I have tried using AppointmentComparer but it does not seem to work in MonthView.
I am using Telerik version 2011.1.315.40.
How can I achieve this?

Thanks and appreciate for the help.

Plamen
Telerik team
 answered on 16 Dec 2013
1 answer
250 views
Hi,

I'm experiencing weird problem related to Telerik uploader. In Edit mode RadAsyncUpload is not visible...I've tried many way to make it working, and i've discover strange behaviour, when i've added new uploader below grid, both are visible. But when i set visiblity to false on additional Uploader - edit mode uploader is again not visible...

<telerik:RadGrid runat="server" ID="RadGrid1"
    AutoGenerateColumns="False" ShowStatusBar="True" GridLines="Both"
    OnItemCreated="RadGrid1_ItemCreated" PageSize="100" OnInsertCommand="RadGrid1_InsertCommand"
    OnNeedDataSource="RadGrid1_NeedDataSource" OnDeleteCommand="RadGrid1_DeleteCommand"
    OnUpdateCommand="RadGrid1_UpdateCommand" OnItemCommand="RadGrid1_ItemCommand" Skin="Glow" CellSpacing="1">
 
 
 
    <MasterTableView Width="100%" CommandItemDisplay="Top" DataKeyNames="ImageID">
 
 
 
        <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column"></RowIndicatorColumn>
 
        <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column" Created="True"></ExpandCollapseColumn>
 
        <Columns>
 
            <telerik:GridEditCommandColumn ButtonType="LinkButton">
 
                <HeaderStyle Width="36px"></HeaderStyle>
 
            </telerik:GridEditCommandColumn>
 
            <telerik:GridTemplateColumn HeaderText="Image Name" UniqueName="ImageName" SortExpression="Name">
 
                <ItemTemplate>
 
                    <asp:Label runat="server" ID="lblName" Text='<%# Eval("ImageName") %>'></asp:Label>
 
                </ItemTemplate>
 
                <EditItemTemplate>
 
                    <telerik:RadTextBox runat="server" Width="250px" ID="txbName" Text='<%# Eval("ImageName") %>'>
                    </telerik:RadTextBox>
 
                    <asp:RequiredFieldValidator ID="Requiredfieldvalidator1" runat="server" ControlToValidate="txbName"
                        ErrorMessage="Please, enter a name!" Display="Dynamic" SetFocusOnError="true"></asp:RequiredFieldValidator>
 
                </EditItemTemplate>
 
                <HeaderStyle Width="30%"></HeaderStyle>
 
            </telerik:GridTemplateColumn>
 
            <telerik:GridTemplateColumn HeaderText="Description" UniqueName="Description" DataField="Description">
 
                <ItemTemplate>
 
                    <asp:Label ID="lblDescription" runat="server" Text='<%# TrimDescription(Eval("ImageDescription") as string) %>'></asp:Label>
 
                </ItemTemplate>
 
                <EditItemTemplate>
 
                    <telerik:RadTextBox ID="txbDescription" Width="300px" runat="server" TextMode="MultiLine"
                        Text='<%# Eval("ImageDescription") %>' Height="150px">
                    </telerik:RadTextBox>
 
                </EditItemTemplate>
 
                 
            </telerik:GridTemplateColumn>
 
            <telerik:GridTemplateColumn DataField="ImageData" HeaderText="Image file" UniqueName="Upload">
 
                <ItemTemplate>
                    <telerik:RadBinaryImage runat="server" ID="RadBinaryImage1" DataValue='<%#Eval("ImageData") %>'
                        AutoAdjustImageControlSize="false" Height="80px" Width="80px" ToolTip='<%#Eval("ImageName", "Photo of {0}") %>'
                        AlternateText='<%#Eval("ImageName", "Photo of {0}") %>'></telerik:RadBinaryImage>
                </ItemTemplate>
 
                <EditItemTemplate>                
                    <telerik:RadAsyncUpload runat="server" ID="AsyncUpload1" Visible="true" EnableFileInputSkinning="false" OnClientFileUploaded="OnClientFileUploaded" BorderColor="Blue" OnFileUploaded="AsyncUpload1_FileUploaded1"
                        AllowedFileExtensions="jpg,jpeg,png,gif" MaxFileSize="1048576" onvalidatingfile="RadAsyncUpload1_ValidatingFile" Skin="Glow">
                    </telerik:RadAsyncUpload>                   
                </EditItemTemplate>
 
            </telerik:GridTemplateColumn>
 
            <telerik:GridButtonColumn Text="Delete" CommandName="Delete" ButtonType="ImageButton">
 
               <%-- <HeaderStyle Width="36px"></HeaderStyle>--%>
 
            </telerik:GridButtonColumn>
 
        </Columns>
 
        <EditFormSettings>
 
            <EditColumn ButtonType="LinkButton">
            </EditColumn>
 
        </EditFormSettings>
 
 
    </MasterTableView>
 
 
 
</telerik:RadGrid>
<br />
  
    <telerik:RadAsyncUpload   runat="server"  BackColor="Transparent" Visible="False" ID="AsyncUpload2" 
        AllowedFileExtensions="jpg,jpeg,png,gif" >
    </telerik:RadAsyncUpload>
  
 
 </div>
Nencho
Telerik team
 answered on 16 Dec 2013
3 answers
109 views
Hi,

See attached screenshot with serious bug IE11 from Telerik website.

Marc
Ianko
Telerik team
 answered on 16 Dec 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?