Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
358 views
Since we updated our RadControls to the latest version, we noticed the clientside set_autoPostBack functionality has changed.

 
If you want a confirmation from the user before the button is posted, we set the autopostback to false. Once all is confirmed we put it back on true.

Like:
<head runat="server">
    <script>
        function ConfirmButton(button, args) {
            button.set_autoPostBack(false);
             
            if( confirm('Are you sure?'))
                button.set_autoPostBack(true);
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
        <telerik:radscriptmanager runat="server" />
        <asp:Literal runat="server" ID="ltStatus" /><br/>
        <telerik:radbutton id="btnCredit" runat="server" text="DoPostback?" onclientclicked="ConfirmButton" onclick="btnCredit_OnClick" />
    </form>
</body>

When you confirm, the button doesn't get postbacked.
Introducing a var with the confirmvalue will work, but why is this ?

<script>
    function ConfirmButton(button, args) {
        var setPostback = false;
        if (confirm('Are you sure?'))
            setPostback = true;
 
        button.set_autoPostBack(setPostback);
    }
</script>


Our previous Telerik Version was 2013.1.504.40

Thanks in advance

Danail Vasilev
Telerik team
 answered on 04 Nov 2014
3 answers
461 views
When creating a stacked bar chart with the labels on each colored section, the label should not be displayed if the value is zero.

I have attached an example of how Excel would create this chart and the result that I get using RadHtmlChart. Is there at least a workaround that I could do to clear out the zero labels?
Danail Vasilev
Telerik team
 answered on 04 Nov 2014
1 answer
193 views
Hello,

Is it possible to hide markers on this type of chart and to highlight them only on mouseover ?
I saw on the forum that it is possible with kendo but I would like to know with ASP.NET ajax charts

Thanks a lot.
Danail Vasilev
Telerik team
 answered on 04 Nov 2014
7 answers
238 views
Hi,

    We have a issue after  Upgrading the Telerik dll Version(2012.2.724.40) (Web.UI,Web.Design,Web.UI.Skins) to Version(2013.3.1114.40)
in new version(2013.3.1114.40) Rad-grid header is not shown in IE.This working fine in FireFox and Chrome.

Sample html:



        <telerik:RadGrid    ID="radMailboxGrid" GridLines="Horizontal" OnItemDataBound="OnRadGridOnItemDataBound"
            runat="server" AutoGenerateColumns="false" Height="250px" Width="100%" EnableEmbeddedSkins="false"
            AllowSorting="True"  OnPreRender="OnRadGridOnPrerender" >
           
            <ClientSettings EnableRowHoverStyle="true" EnablePostBackOnRowClick="false">
                <Scrolling AllowScroll="True" UseStaticHeaders="true" SaveScrollPosition="true" />
                <Selecting AllowRowSelect="true" />
                <ClientEvents OnRowSelected="RowDblClick" />
                
            </ClientSettings>
            <HeaderStyle BackColor="#CCCCCC" />
            <MasterTableView AllowSorting="true" DataKeyNames="EmailID" TableLayout="Fixed" Width="100%"
                ItemStyle-CssClass="Hand">
                    <NoRecordsTemplate>
      <div>
        "No emails to display."</div>
    </NoRecordsTemplate>
                <Columns>
            
                    <telerik:GridTemplateColumn HeaderStyle-Width="2%" ItemStyle-Width="2%">
                        <ItemTemplate>
                            
                                <img runat="server" id="imgmail" style='border: 0px;padding-left:2px; ' />
                           
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridTemplateColumn ItemStyle-Width="2%" HeaderStyle-Width="2%" SortExpression="EmailPriorityID"
                        HeaderImageUrl="/Images/candidate/layout/emailPriority.gif">
                        <ItemTemplate>
                            <img runat="server" id="imgPriority" style='border: 0px;' />
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridTemplateColumn ItemStyle-Width="2%" HeaderStyle-Width="2%" SortExpression="HasAttachments"
                        HeaderImageUrl="/images/candidate/layout/Attachment.png">
                        <ItemTemplate>
                            <img runat="server" id="imgAttachment" style='border: 0px;' />
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridBoundColumn ItemStyle-Width="40%" HeaderStyle-Width="40%" SortExpression="EmailSubject"
                        HeaderText="Subject" DataField="EmailSubject">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn ItemStyle-Width="40%" HeaderStyle-Width="40%" SortExpression="EmailFrom"
                        HeaderText="From" DataField="EmailFrom">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn ItemStyle-Width="14%" HeaderStyle-Width="14%" SortExpression="ModifiedDisplayDate"
                        HeaderText="Received" DataField="ModifiedDisplayDate">
                    </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn Display="false" DataField="EmailID">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn Display="false" DataField="IsCoach">
                    </telerik:GridBoundColumn>
                </Columns>
            </MasterTableView>
        </telerik:RadGrid>

Please give me a solution..
Thanks
Venelin
Telerik team
 answered on 04 Nov 2014
1 answer
290 views
Hi guys,

we are using radgrid to display data from database.
Now problem is that, if i click on Paging forward arrow or backward arrow my page is not working. Only if i click on number for the next page then only i am getting the result. can any one help me on this ..
 
Below is the code which use for grid view. Please help it's very urgent.

 <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
     <telerik:RadAjaxLoadingPanel ID="RadLoadingPanel1" runat="server" />
         <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel1">
               <AjaxSettings>
                    <telerik:AjaxSetting AjaxControlID="radProductsGrid">
                    <UpdatedControls>
                    <telerik:AjaxUpdatedControl  LoadingPanelID="RadAjaxLoadingPanel1">
                    </telerik:AjaxUpdatedControl>
                    </UpdatedControls>
                    </telerik:AjaxSetting>
               </AjaxSettings>
         </telerik:RadAjaxManager>
     <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server">
     <asp:Image ID="Image1" runat="server" ImageUrl="image/loader_gif.gif"></asp:Image>
   </telerik:RadAjaxLoadingPanel>
    <telerik:RadFormDecorator ID="FormDecorator1" runat="server" DecoratedControls="Buttons" >
    </telerik:RadFormDecorator> 


<telerik:RadGrid ID="RadGrid1" EnableViewState="True" runat="server" AllowPaging="true" ShowFooter="true" AllowSorting="True" AllowFilteringByColumn="true" GridLines="None" AutoGenerateColumns="false" Skin="Sunset" OnItemCommand ="RadGrid1_ItemCommand" PageSize ="10">
        <%--<HeaderStyle BackColor="DarkBlue" />--%>
         <ItemStyle Wrap="false"></ItemStyle>
          <GroupingSettings CaseSensitive="false" />
            <ClientSettings>
                <Scrolling AllowScroll="True" UseStaticHeaders="true" />
            </ClientSettings>
              <%--<AlternatingItemStyle BackColor="LightBlue" />--%>
           <MasterTableView AllowMultiColumnSorting="true" TableLayout="Fixed" AutoGenerateColumns="false" CommandItemDisplay="Top">
                 <CommandItemTemplate>
                <div style="padding: 5px 5px; background-color:#FFFFFF; border:0px;">
                     <asp:Label CssClass="lblrepname" ID="Label1" runat="server" Text="Primary Insurance Aging"></asp:Label>
                <%--<asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="image/down.png"
               OnClick="ImageButton1_Click" AlternateText="Html" /> Download--%>
                   <%-- <asp:linkbutton id="btnEditSelected" runat="server" CommandName="EditSelected" Visible='<%# RadGrid1.EditIndexes.Count == 0 %>'><img style="border:0px;vertical-align:middle; text-align:right;" alt="" src="image/down.png" /> Edit selected</asp:LinkButton> --%>

                </div>
                    </CommandItemTemplate>


               <Columns>
                <telerik:GridBoundColumn DataField="Practice_Short_Name" HeaderStyle-CssClass="Headalign" AllowFiltering="true" AutoPostBackOnFilter="true" FilterControlAltText="Practice_Short_Name" Visible ="false" ShowFilterIcon ="false" CurrentFilterFunction="EqualTo"
                    HeaderText="Practice Short Name" UniqueName="PSN">
                </telerik:GridBoundColumn>

               <telerik:GridBoundColumn DataField="Carrier_Name" HeaderStyle-CssClass="Headalign" FilterControlAltText="Carrier_Name" AutoPostBackOnFilter="true" CurrentFilterFunction="EqualTo" ShowFilterIcon="false" AllowFiltering="true" AllowSorting="true"
                    HeaderText="Carrier Name" UniqueName="AS">
                </telerik:GridBoundColumn>

               <telerik:GridTemplateColumn  AllowSorting="true" HeaderStyle-CssClass="Headalign" SortExpression="No_Of_Vouchers" FilterControlWidth="100px" ShowFilterIcon="False" CurrentFilterFunction="EqualTo" AutoPostBackOnFilter="true" DataField="No_Of_Vouchers" HeaderText = "Number of Claims"  > 
                        <ItemStyle HorizontalAlign ="Center" />
                        <ItemTemplate>
                            <asp:Label ID="lblclaimno" runat="server"   Text='<%#Convert.ToInt32(Eval("No_Of_Vouchers")) %>' ></asp:Label>
                        </ItemTemplate>
                       
                    </telerik:GridTemplateColumn>
                      <telerik:GridTemplateColumn DataField="Acer_Actual_Balance" HeaderStyle-CssClass="Headalign" FilterControlAltText="Acer_Actual_Balance"
                    HeaderText="Actual Balance" UniqueName="lblaceractual"  ShowFilterIcon ="false" AllowSorting ="true" SortExpression ="Acer_Actual_Balance">
                             <ItemStyle HorizontalAlign ="Right" />
                              <ItemTemplate>
                             <asp:Label ID="lblaceractual" runat="server"    Text='<%#String.Format("{0:C0}",Convert.ToInt32(Eval("Acer_Actual_Balance"))) %>' ></asp:Label>
                           </ItemTemplate>
                </telerik:GridTemplateColumn>
                  
                    <telerik:GridTemplateColumn  AllowSorting="true" HeaderStyle-CssClass="Headalign" SortExpression="Zero_To_Thirty_Days" AutoPostBackOnFilter="true" DataField="Zero_To_Thirty_Days" HeaderText = "0 to 30 Days" ShowFilterIcon ="false" AllowFiltering="false"> 
                        <ItemStyle HorizontalAlign ="Right" />
                        <ItemTemplate>
                           <asp:LinkButton ID="Lnkzero" runat="server"  ForeColor ="Blue"  CommandArgument='<%#Eval("Practice_Short_Name") %>' CommandName="ZeoDays" Text ='<%#String.Format("{0:C0}",Convert.ToInt32(Eval("Zero_To_Thirty_Days")))%>'  ></asp:LinkButton>
                        </ItemTemplate>
                       
                    </telerik:GridTemplateColumn>
                      
                    <telerik:GridTemplateColumn  HeaderText="31 to 60 Days" HeaderStyle-CssClass="Headalign" allowfiltering="false" AllowSorting="true" SortExpression="Thirtyone_To_Sixty_Days" AutoPostBackOnFilter="true" DataField="Thirtyone_To_Sixty_Days" ShowFilterIcon="false" >
                        <ItemStyle HorizontalAlign ="Right" />
                        <ItemTemplate>
                                <asp:LinkButton ID="Lnkthirtydays" runat="server"  ForeColor ="Blue"  CommandArgument='<%#Eval("Practice_Short_Name") %>' CommandName="ThirtyDays" Text ='<%#String.Format("{0:C0}",Convert.ToInt32(Eval("Thirtyone_To_Sixty_Days")))%>'  ></asp:LinkButton>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                     <telerik:GridTemplateColumn  HeaderText="61 to 90 Days" HeaderStyle-CssClass="Headalign"  AllowSorting="true" AllowFiltering="false" SortExpression="Sixtyone_To_Ninety_Days" AutoPostBackOnFilter="true" DataField="Sixtyone_To_Ninety_Days" ShowFilterIcon ="false" >
                            <ItemStyle HorizontalAlign ="Right" />
                        <ItemTemplate>
                                 <asp:LinkButton ID="Lnksixty" runat="server"  ForeColor ="Blue"  CommandArgument='<%#Eval("Practice_Short_Name") %>' CommandName="sixtyDays" Text ='<%#String.Format("{0:C0}",Convert.ToInt32(Eval("Sixtyone_To_Ninety_Days")))%>'  ></asp:LinkButton>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                     <telerik:GridTemplateColumn  DataField="Ninetyone_Days_Plus" HeaderStyle-CssClass="Headalign" FilterControlAltText="Ninetyone_Days_Plus" ShowFilterIcon ="false" AllowFiltering ="false" AllowSorting ="true" SortExpression ="Ninetyone_Days_Plus"
                    HeaderText="90+Days" UniqueName="nintyplus"  > 
                      <ItemStyle HorizontalAlign ="Right" />
                           <ItemTemplate>
                                <asp:LinkButton ID="Lnkninty" runat="server"  ForeColor ="Blue"  CommandArgument='<%#Eval("Practice_Short_Name") %>' CommandName="NinetyPlus" Text ='<%#String.Format("{0:C0}",Convert.ToInt32(Eval("Ninetyone_Days_Plus")))%>' ></asp:LinkButton>
                           </ItemTemplate>
                       </telerik:GridTemplateColumn>
            
                </Columns>
               
            </MasterTableView>

        </telerik:RadGrid>





Maria Ilieva
Telerik team
 answered on 04 Nov 2014
33 answers
1.4K+ views
Based on localization documentation, to use a global resource file for a specific language, you must set the Culture property on the grid itself in each page.  We have over 80% of our pages and controls that contain RadGrids.  This is not feasible as the application's Culture is dynamic - selected by the user at login.

Is there a way to set the Culture for ALL grids in ONE place based on user-input? 

Thanks.
Michael
Top achievements
Rank 2
 answered on 04 Nov 2014
1 answer
134 views
Hello,

I have used RadListBox and RadEditor for Drag and drop functionality.

Scenario 1: I dragged "SomeText" from RadListBox and dropped in the RadEditor. When i press BACKSPACE, it only removes the "t" from the dropped Item "SomeText" and it becomes "SomeTex" in the RadEditor.

What I want is When its is dropped in the editor it should be treated as a complete object and if i press BACKSPACE, the whole item "SomeText" Should be removed from the RadEditor instead of just "t". How Can i do it.. .. ..

Scenario 2 : Is it possible to drag the item and drop it on the current Mouse position in the RadEditor, instead of Cursor position.

 
Ianko
Telerik team
 answered on 04 Nov 2014
3 answers
121 views
Dear Sir or Madam,

I downloaded the current Telerik UI for ASP.NET AJAX  installer package (MSI)
from your website.
After finishing the installation I recognized that inside the target installation folder
there is no sub folder containing the demo solution / source codes.
(whereas e.g. in the MVC version it is available)

I furthermore found no download link to get the demo solution / source codes
independently. How to proceed now?

Thanks a lot and best wishes from Germany
Jens
Manjesh
Top achievements
Rank 1
 answered on 03 Nov 2014
5 answers
250 views
Hi,

I have 2 RadAutoCompleteBox and a button.

I want the button to be disabled until both RadAutoCompleteBox have 1 entry.
But I cannot seems to find how to do that.

Any help would be welcomed.
Mickael
Top achievements
Rank 1
 answered on 03 Nov 2014
2 answers
666 views
I do not want the row to be selected by clicking on it. I would like it to only be selected when the GridClientSelectColumn checkbox has been checked or unchecked. And is it possible to not highlight the row at all when it is selected?

<telerik:RadGrid ID="gridFundingBills" runat="server" Width="1100px" AllowMultiRowSelection="True"
                CssClass=" MyGridClass"
                AutoGenerateColumns="False"
                OnNeedDataSource="gridFundingBills_NeedDataSource"
                OnItemDataBound="gridFundingBills_ItemDataBound"
                 OnItemCreated="gridFundingBills_ItemCreated" >
                <MasterTableView DataKeyNames="FundingDtlID" EditMode="InPlace"
                    NoMasterRecordsText="There are no open funding bills at this time">
                    <Columns>
                        <telerik:GridBoundColumn DataField="CustomerNm" FilterControlAltText="Filter CustomerNm column" HeaderText="Property" SortExpression="CustomerNm" UniqueName="CustomerNm">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="VendorNm" FilterControlAltText="Filter VendorNm column" HeaderText="Vendor" SortExpression="VendorNm" UniqueName="VendorNm">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="BankAcct" FilterControlAltText="Filter BankAcct column" HeaderText="Bank" ReadOnly="True" SortExpression="BankAcct" UniqueName="BankAcct">
                        </telerik:GridBoundColumn>
                        <telerik:GridHyperLinkColumn UniqueName="BillNo" HeaderText="Bill Reference Number" DataTextField="BillNo" DataNavigateUrlFields="BillUrl" DataNavigateUrlFormatString="http://{0}" Target="_blank">
                        </telerik:GridHyperLinkColumn>
                        <telerik:GridBoundColumn DataField="BillURL" FilterControlAltText="Filter BillURL column" ReadOnly="True" SortExpression="BillURL" UniqueName="BillURL" Visible="false">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="BillPeriod" FilterControlAltText="Filter BillPeriod column" HeaderText="Bill Period" ReadOnly="True" SortExpression="BillPeriod" UniqueName="BillPeriod" ItemStyle-Width="150px" HeaderStyle-Width="150px">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="DueDt" DataType="System.DateTime" FilterControlAltText="Filter DueDt column" HeaderText="Due Date" SortExpression="DueDt" UniqueName="DueDt" DataFormatString="{0:d}" ItemStyle-Width="75px" HeaderStyle-Width="75px">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="TotalAmt" DataType="System.Decimal" FilterControlAltText="Filter TotalAmt column" HeaderText="TotalAmt" SortExpression="Total Due" UniqueName="TotalAmt" DataFormatString="{0:F}" HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="75px" HeaderStyle-Width="75px">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="RemainingAmt" DataType="System.Decimal" FilterControlAltText="Filter RemainingAmt column" HeaderText="Remaining Balance" ReadOnly="True" SortExpression="RemainingAmt" UniqueName="RemainingAmt" DataFormatString="{0:F}" HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="75px" HeaderStyle-Width="75px">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="FundingDtlID" DataType="System.Guid" FilterControlAltText="Filter FundingDtlID column" HeaderText="FundingDtlID" ReadOnly="True" SortExpression="FundingDtlID" UniqueName="FundingDtlID" Visible="false">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="SourceBankAcctID" DataType="System.Guid" FilterControlAltText="Filter BankAcctID column" HeaderText="BankAcctID" ReadOnly="True" SortExpression="BankAcctID" UniqueName="BankAcctID" Visible="false">
                        </telerik:GridBoundColumn>
                        <telerik:GridTemplateColumn HeaderText="Amount Approved" UniqueName="AmtApproved" HeaderStyle-Width="55px"
                            ItemStyle-Width="55px" HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right">
                            <ItemTemplate>
                                <asp:TextBox ID="AmountApproved" runat="server" Width="55px" OnTextChanged="AmountApproved_TextChanged"
                                    AutoPostBack="true" CssClass="numericAlign"></asp:TextBox>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridClientSelectColumn UniqueName="ClientSelectColumn" HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right">
                        </telerik:GridClientSelectColumn>
                    </Columns>
                </MasterTableView>
                <ClientSettings AllowKeyboardNavigation="true" EnableRowHoverStyle="true" EnablePostBackOnRowClick="true">
                    <ClientEvents OnRowSelected="handleTextBoxValue" OnRowDeselected="handleTextBoxValue" OnActiveRowChanged="sumAmtApproved" />
                    <Selecting AllowRowSelect="true" />
                </ClientSettings>
            </telerik:RadGrid>
Thomas Derenthal
Top achievements
Rank 1
 answered on 03 Nov 2014
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?