Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
236 views

Hi,

 Why I'm having 2 browses buttons by default? See attachment.

How can I display 1 browse button?

Thanx

 

<telerik:RadAsyncUpload runat="server" ID="RadAsyncUpload1" AllowedFileExtensions="jpg,jpeg,png,gif" Localization-DropZone=""> 
    </telerik:RadAsyncUpload>

Dimitar
Telerik team
 answered on 28 May 2015
1 answer
305 views

Hi,

I am trying to set RoundCorners for my ComboBox. here is my code and CSS and image

 ASPX

<telerik:RadComboBox ID="RadcFilter" AllowCustomText="false" Font-Size="10pt"  SelectOnTab="true" HighlightTemplatedItems="true" MarkFirstMatch="true" ChangeTextOnKeyBoardNavigation="false" OnClientKeyPressing="radComboKeyPress"  OnClientFocus="OnClientFocus"  Filter="StartsWith" Skin="Simple"  runat="server" Width="300px" Height="150px"   EmptyMessage="Filter By ..." AutoPostBack="true" >
</telerik:RadComboBox>

 

CSS

<style type="text/css">  
         
       html, body, form 
       
          height: 100%; 
          margin: 0px; 
          padding: 0px; 
       }
       div.RadComboBox_Simple,
       div.RadComboBox_Simple .rcbInput
       {
            
           line-height: 17px;
           
       }
       div.RadComboBox_Simple table tr td.rcbInputCell
       {
           height: 27px;
           line-height: 27px;
       }
       div.RadComboBox_Simple td.rcbArrowCell a
       {
           height: 27px;
       }
       div.RadComboBox_Simple table tr td.rcbArrowCell
       {
           background-image: url('images/rcbSimpleSprite.png');
           background-repeat: no-repeat;
           background-position: 0 50%;
       }
       div.RadComboBox_Simple td.rcbArrowCell { background-position: 0 50%; }
       div.RadComboBox_Simple .rcbHovered .rcbArrowCell { background-position: -20px 50%; }
       div.RadComboBox_Simple .rcbFocused .rcbArrowCell { background-position: -40px 50%; }
       div.RadComboBox_Simple .rcbDisabled .rcbArrowCell { background-position: -60px 50%; }
        
       div.RadComboBox_Simple table td.rcbInputCell
       {
           border-radius: 7px 0 0 7px !important;
           border : 1px solid gray;
       }
        
       div.RadComboBox_Simple table td.rcbArrowCell
       {
           border-radius:0 7px 7px 0 !important;
           border : 1px solid gray;
       }
</style>

 

JavaScript

<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
 
       <script type="text/jscript">
               function radComboKeyPress(comboBox, eventArgs) {
 
               var keyCode = eventArgs.get_domEvent().keyCode;
               if (keyCode == 9) {
                   try {
                       comboBox.get_highlightedItem().select();
                   }
                   catch (err) {
                       return;
                   }
               }
           }
 
           function OnClientFocus(sender, args) {
               sender.showDropDown();
           }
</script>
 
</telerik:RadCodeBlock>

Dimitar
Telerik team
 answered on 28 May 2015
7 answers
162 views
Can someone tell me where I can find a list of supported file types for the media player?
Maria Ilieva
Telerik team
 answered on 28 May 2015
5 answers
154 views

Hi 

I have a SQLDatasource which uses a query to make a join across databases.  The data returned is should be used to create the bar chart.  However, no matter what I do, it fails to display anything.

 As a check that the sqldatasource is fetching the data, I'm also binding it to radgrid on the page.  The grid is working just fine and showing all the data.  However the chart shows nothing.

The main parts from my page:-

<p>
    <asp:DropDownList ID="PocList" runat="server" AutoPostBack="True" DataSourceID="LinqDataSource1" DataTextField="outlet_name" DataValueField="outlet_id"></asp:DropDownList>
</p>
 
<p>
    <asp:DropDownList ID="MonthList" runat="server" AutoPostBack="true">
        <asp:ListItem Value="1" Text="January"/>
        <asp:ListItem Value="2" Text="February"/>
        <asp:ListItem Value="3" Text="March"/>
        <asp:ListItem Value="4" Text="April"/>
        <asp:ListItem Value="5" Text="May"/>
        <asp:ListItem Value="6" Text="June"/>
        <asp:ListItem Value="7" Text="July"/>
        <asp:ListItem Value="8" Text="August"/>
        <asp:ListItem Value="9" Text="September"/>
        <asp:ListItem Value="10" Text="October"/>
        <asp:ListItem Value="11" Text="November"/>
        <asp:ListItem Value="12" Text="December"/>
    </asp:DropDownList>
</p>
 
<asp:LinqDataSource ID="LinqDataSource1" runat="server" ContextTypeName="WebApplication1.RewardsDataClassesDataContext" EntityTypeName="" OrderBy="outlet_name" Select="new (outlet_id, outlet_name)" TableName="outlet_accounts">
</asp:LinqDataSource>
 
<telerik:RadHtmlChart ID="PocChart" runat="server" DataSourceID="SqlDataSource1"  >
    <PlotArea>
        <Series>
            <telerik:ColumnSeries DataFieldY="totalValue">
                <TooltipsAppearance Color="White" DataFormatString="${0}"></TooltipsAppearance>
            </telerik:ColumnSeries>
        </Series>
        <XAxis DataLabelsField="brandname">
            <LabelsAppearance RotationAngle="75"/>
            <MajorGridLines Visible="false"/>
            <MinorGridLines Visible="false"/>
        </XAxis>
        <YAxis>
            <LabelsAppearance DataFormatString="${0}"></LabelsAppearance>
            <TitleAppearance Text="Total Points Value"></TitleAppearance>
            <MinorGridLines Visible="false"></MinorGridLines>
        </YAxis>
    </PlotArea>
</telerik:RadHtmlChart>
 
 
<telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="SqlDataSource1" GroupPanelPosition="Top">
    <MasterTableView AutoGenerateColumns="False" DataSourceID="SqlDataSource1">
        <Columns>
            <telerik:GridBoundColumn DataField="month" DataType="System.Int32" FilterControlAltText="Filter month column" HeaderText="month" SortExpression="month" UniqueName="month">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="brand_id" DataType="System.Int32" FilterControlAltText="Filter brand_id column" HeaderText="brand_id" SortExpression="brand_id" UniqueName="brand_id">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="brandname" FilterControlAltText="Filter brandname column" HeaderText="brandname" SortExpression="brandname" UniqueName="brandname">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="value" DataType="System.Int32" FilterControlAltText="Filter value column" HeaderText="value" ReadOnly="True" SortExpression="value" UniqueName="value">
            </telerik:GridBoundColumn>
        </Columns>
    </MasterTableView>
</telerik:RadGrid>
 
 
 
 
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:Appreciation_WarehouseConnectionString %>" SelectCommand="SELECT omba.month, omba.brand_id, bd.brand_name AS brandname, SUM(omba.total_value) AS totalValue FROM outlet_month_brand_aggregation AS omba INNER JOIN appreciation_rewards.dbo.brand AS bd ON omba.brand_id = bd.brand_id WHERE (omba.outlet_id = @oid) AND (omba.month = @month) GROUP BY omba.brand_id, omba.month, bd.brand_name ORDER BY omba.month, brandname">
    <SelectParameters>
        <asp:ControlParameter ControlID="PocList" DefaultValue="6782" Name="oid" PropertyName="SelectedValue" Type="Int32" />
        <asp:ControlParameter ControlID="MonthList" DefaultValue="1" Name="month" PropertyName="SelectedValue" Type="Int32" />
    </SelectParameters>
</asp:SqlDataSource>

Danail Vasilev
Telerik team
 answered on 28 May 2015
3 answers
99 views
radgrid each record updated on outside button click and simultaneously show each record update status visually on UI
Maria Ilieva
Telerik team
 answered on 28 May 2015
5 answers
193 views

So I'm using Telerik's gui system and would like to insert a dropdown inside another one but I don't know how to do that.

 

This is what I've got so far

<telerik:RadToolBarDropDown runat="server" ToolTip="DropDown1" ImageUrl="~/Images/test.png">
    <Buttons>

          <telerik:RadToolBarButton runat="server" Text="Click me!" Value="TOGGLE_WALLS" CheckOnClick="true" ImageUrl="~/Images/checkmark.png"/>

    </Buttons>
</telerik:RadToolBarDropDown>

 More or less, a dropdown inside a dropdown.

Is it possible? Do Telerik support this?

Ivan Danchev
Telerik team
 answered on 28 May 2015
6 answers
127 views
Hi

When I Export to Excel from a  RadGrid then everything is fine, but if I Export RadGrid with
GridTemplateColumn and RadComboBox as an  ItemTemplate, then the Value of the RadComboBox is not shown.
Can some one tell me how to make a work arround the problem so in the Excel document the Text of the Selected value of the RadComBox is displayed.
Jaspal
Top achievements
Rank 1
 answered on 28 May 2015
4 answers
258 views
I have a RadGrid in which I associated EditBatchCommand event.
In this event , I must do insert/update/delete.
I have 2 buttons in my RadGrid page, insert button and update button, insert button will add new row and update button will update all changes.

I have associated client events as follows to these buttons, 

  if (UpdateButton.Visible)
                {
                    script = @"function SaveChanges_" + grid.ClientID + @"(sender,args) {
            var grid = $find('" + grid.ClientID + @"');
            var changes = grid.get_batchEditingManager()._extractChangesString(grid.get_masterTableView())
            if(changes.length > 0)
                grid.get_batchEditingManager().saveChanges(grid.get_masterTableView());
        }";
                    ScriptManager.RegisterStartupScript(this.Page, this.Page.GetType(), "saveGrid", script, true);                    UpdateButton.AutoPostBack = false;
                    UpdateButton.OnClientClicked = "SaveChanges_" + grid.ClientID;
                    this.Page.Form.DefaultButton = UpdateButton.UniqueID;                } 
        
       if (InsertButton.Visible)
                {
                    script = @"function InsertRow_" + grid.ClientID + @"(sender,args) {
            var grid = $find('" + grid.ClientID + @"');
            grid.get_batchEditingManager().addNewRecord(grid.get_masterTableView());
        }";
                    ScriptManager.RegisterStartupScript(this.Page, this.Page.GetType(), "insertRow", script, true);
                    InsertButton.AutoPostBack = false;
                    InsertButton.OnClientClicked = "InsertRow_" + grid.ClientID;
                }

I have updated 1 line in my grid.
In my event "BatchEditCommand", I am having 1 commands with type "update" and I am able to get values with command.NewValues.
But when I insert a line in my grid.
In my event "BatchEditCommand", I am not getting type "insert". I am having only one command with type "update" with command.NewValues = null.
I am having this problem only after updating to new version Q3 2014. The old version of Telerik worked well and I had a command of type "insert" and I was able to get the data of newly added row with command.NewValues.
How can get the datas of my newly added row?
Thanks in advance. 

Konstantin Dikov
Telerik team
 answered on 28 May 2015
1 answer
83 views

Hi,

I'm having two problems with a rad editor.  One is that I cannot right click inside the content area.. the regular browser context menu is suppressed for some reason.  I can right click on the demo rad editors so I'm not sure what could cause it not to work in mine.

 The other problem is with spell check.  The spell checker isn't doing a good job of placing the context menu next to the related word..  you have to manually scroll down to find each word as it goes.  Any ideas?  Thanks a lot.  

Ianko
Telerik team
 answered on 28 May 2015
1 answer
94 views

Hi,

 We use this nice tool to upload file directly to FTP writing custom handler but encountered an issue.

 If the customer encounters network glitch and lose connection, is it possible to resume the file upload rather than start from all over again?

 

Thanks,

Charlie

Hristo Valyavicharski
Telerik team
 answered on 28 May 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?