Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
72 views

Hello,

I have a problem with a pivotgrid binded to a OLAP Cube with adomd.

When I want to filter on a rowField, the filter window that should contain all possible values for the field doesn't contain all values, as you can see in the attached file.

in my example, the rowfield displays cities and in the filter window, the list of values is limited to letter F.

is there a limit for the displayed values ?

if yes, is it settable?

or is there a bug when a pivotgrid is binded to a OLAP Cube?

 

thanks

Jérome
Top achievements
Rank 1
 answered on 17 Jul 2015
1 answer
117 views

Hi,

when Pressing Tab and the Focus is on RadUpload While Clicking on the Enter key the File upload Dialog is not opened.The focus is on Select Button.The Issue is on RadUpload not in RadAsyncUpload..Please give me some solution.I Was Specified the AccessKey="W"  also.but it is not working.

 

This is my code:

 

<div class="twocolumn row">
            <label>
                File *</label>
            <div id="MainContents">
                <telerik:RadUpload AllowedMimeTypes="xml,application/x-zip" Font-Names="Arial, Helvetica, sans-serif"
                    Font-Size="14px" ReadOnlyFileInputs="true" EnableViewState="false" InitialFileInputsCount="1"
                    MaxFileInputsCount="1" ToolTip="Select a valid file to upload" Style="margin-top: -3px;"
                    OnClientFileSelected="ReferralMgmtValidateUploadedFile" runat="server" ID="RadUpload1"  AccessKey="W"  DisablePlugins="true" EnableEmbeddedScripts="true"
                    RegisterWithScriptManager="false" EnableFileInputSkinning="true"
                    ControlObjectsVisibility="None">
                    <Localization Select="SELECT"/>
                </telerik:RadUpload>
                <label id="lbl-upload-error-msg" style="color: Red; width: 100%; text-align: left;
                    font-weight: normal; margin-bottom: 5px;">
                </label>

                <script type="text/javascript" language="javascript">
                    if (isMobileSafari()) {
                        $('#MainContents').html('Upload functionality is not available for this browser.');
                    }
                </script>

            </div>
        </div>​

 

Ivan Danchev
Telerik team
 answered on 17 Jul 2015
1 answer
366 views

Hello,

I have successfully setup Custom CDN and its working perfectly fine. Also, I had enabled IIS Cache settings for browser cache. Everything works fine and browser does cache JS and CSS files just fine.

 

We are building a product which involves both large ​internet & intranet users base. We currently use Telerik 2012_1_411 version, but we will update it to latest version time to time. So, after this upgrade we cannot reach out to all internet(intranet is still ok) users to clear their browser cache, which is practically impossible in our case.

Is there a way we can handle this? Enforce users browsers to automatically get refreshed?

I was trying to manipulate the ResolveScriptReference event, by adding a dynamic query string after the name. But it gets replaced internally.

Any solution is really appreciated.

 

Thanks

Gokul

Dimitar Terziev
Telerik team
 answered on 17 Jul 2015
1 answer
129 views

Hi.
I’m working on a legacy system trying to edit an old feature.
I need to access the selected rows from a Radgrid on post back.
I’m using Telerik.Web.UI v4.0.30319
My Grid looks like this:

<telerik:RadGrid runat="server" ID="RadGridResourcesToChange" AllowPaging="True" PageSize="50" AllowSorting="False" Visible="False" AllowMultiRowSelection="True" OnNeedDataSource="RadGridResourcesToChange_NeedDataSource">
    <MasterTableView Width="100%" DataKeyNames="Resources">
        <Columns>
         <Telerik:GridClientSelectColumn UniqueName="ResourceId" />
        </Columns>
    </MasterTableView>
    <ClientSettings>
        <Selecting AllowRowSelect="True"></Selecting>
        <ClientEvents OnRowSelecting="RowSelecting" />
    </ClientSettings>
    </telerik:RadGrid>​

protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {               
                PanelAfterSearch.Visible = false;
            }
            else
            {
               RadGridResourcesToChange.Visible = true;
                            
            }
        }
 
        protected void Page_Init(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
 
            }
            else
            {
 
                SelectedIds = GetSelectedWorkdayIds().ToList();
            }
 
 
        }
 public IEnumerable<Guid> GetSelectedWorkdayIds()
        {
            
            List<Guid> ids = new List<Guid>();
            //Here is where I'm trying to access the selected rows.
            return ids;
        }

The user enters search criteria and then on post back I set the grid Visible=true, triggering the needDataSource, binding the result to the grid.
And then my problem occurs, the user can then select rows, and click a button. I would then like to access the selected rows, performing my calculation.
I have tried using:
RadGridResourcesToChange.SelectedItems
RadGridResourcesToChange.MasterTableView.Items
Everything ends up empty on post back.
/ Martin

Konstantin Dikov
Telerik team
 answered on 17 Jul 2015
3 answers
314 views

Hi Telerik Team,
I'm working with Radhtmlchart, and the label appearance's total addition of all data fields is not 100%, its always less than 100% like 99.6 or 99.7 or 99.99, but not 100%. Could you please help us in this regard. We have used the following code to add up the items and display the value in terms of percentage.

<LabelsAppearance>
<ClientTemplate>
        #=kendo.format(\'{0:P2}\', percentage)#
</ClientTemplate>
</LabelsAppearance>

I've attached the file for better understanding of our issue. Please take a look at the image I've attached.

Thank you,
Vipul

Danail Vasilev
Telerik team
 answered on 17 Jul 2015
3 answers
181 views

html5 validation "required" not working inside RadWizard.  But same is working in asp:Wizard. 

 Working     

 

<asp:Wizard ID="Wizard1" runat="server">
    <WizardSteps >
        <asp:WizardStep ID="WizardStep1" runat="server" Title="Step 1">
            <asp:TextBox ID="TextBox1"  required="" type="text" placeholder="Try it out." runat="server"></asp:TextBox>
        </asp:WizardStep>
        <asp:WizardStep ID="WizardStep2"  runat="server" Title="Step 2">
            <asp:TextBox ID="TextBox2"  required="" type="text" placeholder="Try it out." runat="server"></asp:TextBox>
        </asp:WizardStep>
    </WizardSteps>
</asp:Wizard>

 

 

NOT WORKING

 

<telerik:RadWizard ID="ADSRadWizard" runat="server">
    <WizardSteps >
        <telerik:RadWizardStep ID="WizardStep3" runat="server" Title="Step 1">
            <telerik:RadTextBox ID="RadTextBox1" required="" type="text" placeholder="Try it out." runat="server"></telerik:RadTextBox>
        </telerik:RadWizardStep>
        <telerik:RadWizardStep ID="WizardStep4"  runat="server" Title="Step 2">
            <telerik:RadTextBox ID="RadTextBox2" required="" type="text" placeholder="Try it out."  runat="server"></telerik:RadTextBox>
        </telerik:RadWizardStep>
    </WizardSteps>
</telerik:RadWizard>

Plamen
Telerik team
 answered on 17 Jul 2015
5 answers
63 views
I created calendar using RadScheduler, but the thing is that the time picker for both start and end time in advanced form only showing until 5:30 pm, is it possible to amend it to show, let's say until 6:00 pm instead?
Sankar
Top achievements
Rank 1
 answered on 17 Jul 2015
3 answers
133 views
get value in GridTemplateColumn control from another GridTemplateColumn control clickget value in GridTemplateColumn control from another GridTemplateColumn control clickget value in GridTemplateColumn control from another GridTemplateColumn control click
Yang
Top achievements
Rank 1
 answered on 17 Jul 2015
3 answers
161 views
I am using panel in RadToolTip. I have command button "btnOpen" on RadGrid. Whenever "btnOpen" is clicked it shows RadToolTip for specific row in RadGrid. Its all Working fine but not showing loading panel.
 
 
 
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
            <ClientEvents OnRequestStart="RequestStart" OnResponseEnd="ResponseEnd" />
 
            <AjaxSettings>
 
                <telerik:AjaxSetting AjaxControlID="btnOpen">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadToolTip1" LoadingPanelID="RadAjaxLoadingPanel1" />
                        <telerik:AjaxUpdatedControl ControlID="Panel1" LoadingPanelID="RadAjaxLoadingPanel1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
 
                <telerik:AjaxSetting AjaxControlID="rgCity">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadToolTip1" LoadingPanelID="RadAjaxLoadingPanel1" />
                        <telerik:AjaxUpdatedControl ControlID="Panel1" LoadingPanelID="RadAjaxLoadingPanel1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
 
            </AjaxSettings>
        </telerik:RadAjaxManager>
 
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server"></telerik:RadAjaxLoadingPanel>
        <telerik:RadToolTip ID="RadToolTip1" Animation="Slide" AnimationDuration="190" runat="server" Modal="true" HideEvent="ManualClose"
            Style="z-index: 6990" BackColor="White" Position="Center" Width="729px" Height="200px">
 
            <asp:Panel ID="Panel1" BackColor="Pink" runat="server" Height="190px">
           
 
 
                    <table align="center">
                        <tr>
                            <td>
                                <asp:Label ID="lbl_id" Text="City ID" runat="server"></asp:Label>
                                <asp:TextBox ID="Txt_id" runat="server"></asp:TextBox>
                            </td>
                             
                        </tr>
 
 
                        <tr>
                            <td>
                                <telerik:RadAsyncUpload runat="server" ID="FileUpload1" MultipleFileSelection="Disabled">
                                </telerik:RadAsyncUpload>
                            </td>
 
                        </tr>
 
 
                        <tr>
                            <td>
                                <telerik:RadButton runat="server" Skin="Silk" ID="BtnSubmit" Text="Upload files" OnClick="BtnSubmit_Click"></telerik:RadButton>
 
 
                                <asp:Label ID="lable_res" runat="server"></asp:Label>
                            </td>
 
 
                        </tr>
 
                    </table>
 
 
                    <%--<telerik:RadFormDecorator ID="rfd1" runat="server" DecoratedControls="all"></telerik:RadFormDecorator>--%>
            </asp:Panel>
        </telerik:RadToolTip>
Pavlina
Telerik team
 answered on 16 Jul 2015
3 answers
800 views

There is a RadComboBox (outside of RadGrid) and a RadGrid in my Web page.

When first time page loads, and user forgets to Select Item from RadComboBox (which is outside of RadGrid) and clicks on "Add New" button of RadGrid then this button should disable at that time and an alert should come ('Select item from RadComboBox first')

Now, when user select the item from RadComboBox, and then click on "Add New" button of RadGrid then it should perform "add" functionality //---this part is done

Below code is working fine only to disable the "Add New" button and show alert.

GridCommandItem cmditem = (GridCommandItem)RGGSTAcCode.MasterTableView.GetItems(GridItemType.CommandItem)[0];
            System.Web.UI.WebControls.Button ctrl = (System.Web.UI.WebControls.Button)cmditem.FindControl("AddNewRecordButton");
            ctrl.Enabled = false;
            ctrl.Attributes.Add("onClick", "test()");
 
            System.Web.UI.WebControls.LinkButton btn = (System.Web.UI.WebControls.LinkButton)cmditem.FindControl("InitInsertButton");
            btn.Enabled = false;
            btn.Attributes.Add("onClick", "test()");

But how to create this whole requirement using above code? Where to put this line of code, in which event, so that it should work as per need. 

Below is the whole HTML code I am using currently:

<telerik:RadComboBox ID="ddlCompany" runat="server" Height="200" Width="240"
          DropDownWidth="310" EmptyMessage="- Select Product -" HighlightTemplatedItems="true" CausesValidation="false"
          Filter="StartsWith" AppendDataBoundItems="true" AllowCustomText="true" AutoPostBack="true"
          DataTextField="Title" DataValueField="Code" OnSelectedIndexChanged="ddlCompany_SelectedIndexChanged">
        </telerik:RadComboBox>
 
        <br />
        <br />
 
                <telerik:RadGrid ID="RGGSTAcCode" runat="server"
                   ShowFooter="True" GroupingEnabled="False" ShowStatusBar="true" EmptyDataText="No record available."
                   AllowAutomaticInserts="False" AllowAutomaticUpdates="False" AllowAutomaticDeletes="true"
                   OnNeedDataSource="RGGSTAcCode_NeedDataSource" OnItemDataBound="RGGSTAcCode_ItemDataBound"
                   OnInsertCommand="RGGSTAcCode_InsertCommand" OnDeleteCommand="RGGSTAcCode_DeleteCommand"
                   OnUpdateCommand="RGGSTAcCode_UpdateCommand">
 
                  <PagerStyle Mode="NextPrevAndNumeric"></PagerStyle>
                  <mastertableview ShowHeadersWhenNoRecords="true" autogeneratecolumns="false" datakeynames="AccountCodeID" InsertItemDisplay="Top"
                    insertitempageindexaction="ShowItemOnCurrentPage" ShowFooter="True" CommandItemDisplay="Top">                                  
                         <Columns>
                             <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn"></telerik:GridEditCommandColumn>
                                                           
                             <telerik:GridTemplateColumn UniqueName="AccountCode" HeaderText="Account Code">
                                <ItemTemplate>
                                  <asp:Label ID="lblAcCode" Text='<%# Eval("AccountCode") %>' runat="server"></asp:Label>
                                </ItemTemplate>
                                <EditItemTemplate>
                                  <asp:DropDownList ID="ddlAcCode" DataTextField="AccountDescription" DataValueField="AccountCodeID" runat="server"/>
                                </EditItemTemplate>
                             </telerik:GridTemplateColumn>
 
                             <telerik:GridBoundColumn DataField="AccountDescription" HeaderText="Description" UniqueName="AccountDescription" SortExpression="AccountDescription" InsertVisiblityMode="AlwaysHidden" ReadOnly="true" ></telerik:GridBoundColumn>
                             <telerik:GridBoundColumn aggregate="SUM" DataField="Amount" HeaderText="Amount" FooterText="Total : " UniqueName="Amount" SortExpression="Amount"></telerik:GridBoundColumn>
                             <telerik:GridBoundColumn DataField="Remark" HeaderText="IFCA Remark" UniqueName="Remark" SortExpression="Remark">
                                  
                             </telerik:GridBoundColumn>   
                              
                             <telerik:GridButtonColumn ConfirmTextFormatString="Are you sure you want to Delete {0} Account Code?" ConfirmTextFields="AccountCodeID"
                             ConfirmDialogType="RadWindow" CommandName="Delete" Text="Delete" UniqueName="DeleteColumn"></telerik:GridButtonColumn>                                                                           
                      </Columns>
                      <EditFormSettings>
                       <EditColumn ButtonType="ImageButton" />
                      </EditFormSettings>
                      <CommandItemSettings AddNewRecordText="Add new record" RefreshText="Refresh"></CommandItemSettings>
                  </mastertableview>
                </telerik:RadGrid>

Please guide.

Please note that I am very new in Telerik controls so if I ask something very basic please forgive and try to guide me in a simple way.

Eyup
Telerik team
 answered on 16 Jul 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?