Telerik Forums
UI for ASP.NET AJAX Forum
8 answers
591 views
I added a GridClientSelectColumn column to my RadGrid.  On the ItemDataBound event, I disable that checkbox depending on certain other values of the row.  So the checkbox is correctly rendered as disabled.  However, the checkbox in the grid's header, that allows the user to select/deselect all ignores that state of the checkbox. 

So, if I click the checkbox in the header, it checks all the checkboxes, even if they are disabled.

Is there a way around this?  Or will I have to manually put in my own checkbox column, javascript, etc.  to manage it?
Doncho
Telerik team
 answered on 10 Jul 2020
6 answers
330 views
Is there a way to get the password strength score on the server side? I know that I could just populate a hidden text box with the score and have is posted back to the server, but I was wondering if there was a more elegant solution.
liu
Top achievements
Rank 1
Veteran
 answered on 09 Jul 2020
4 answers
212 views
Hi All,

Do Telerik have any plans to create a password strength indicator control for their suite?
I know there are some very good examples out there but it would be nice if there was a Telerik one that could be styled and used in the same way as the rest of the RadControls suite.
Just an idea.

Thanks,

Andy
Doncho
Telerik team
 answered on 09 Jul 2020
4 answers
204 views
Hi,
I'm trying to use the Password Strength on a password input but for some reason the strength indicator is not showing when the input is inside a Div or panel.
if i move it outside i see it just fine. I need this inside the div/panel so it looks right. 

any ideas?

could i maybe create my own images and force them to show in the panel?

Rs
Doncho
Telerik team
 answered on 09 Jul 2020
6 answers
344 views
I'm trying to load a ReportViewer report inside a RadPanelItem on a RadPanelBar_ItemClick event so that it doesn't load on pageload but only when the user expands that PanelItem.  This seems to work but it causes the page to postback and the user sees the screen refresh.  I'd like to avoid this by using an updatepanel.  But when I wrap the contents of my RadPanelItem in an updatepanel, I get the "Generating Report" and pinwheel but when it's done, nothing is displayed.

<telerik:RadPanelBar runat="server" ID="RadPanelBar" ExpandMode="MultipleExpandedItems" Width="100%" ExpandAnimation-Type="InBack" OnItemClick="RadPanelBar_ItemClick">
    <Items>
        <telerik:RadPanelItem Text="myReport" Value="myReport">
            <ContentTemplate>
                <div style="height: 500px">
                    <asp:UpdatePanel ID="UpdatePanel3" runat="server" style="width:100%">
                        <Triggers>
                           <asp:AsyncPostBackTrigger ControlID="RadPanelBar" />
                         </Triggers>
                        <ContentTemplate>
                            <telerik:ReportViewer ID="ReportViewer1" runat="server" Width="100%" Height="95%" ToolbarVisible="false"></telerik:ReportViewer>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </div>
            </ContentTemplate>
        </telerik:RadPanelItem>
    </Items>
</telerik:RadPanelBar>
 
 
 
protected void RadPanelBar_ItemClick(object sender, RadPanelBarEventArgs e)
{
    if (e.Item.Value == "myReport")
    {
        TheReport report01 = new TheReport();
        chargeReport.ReportParameters["ID"].Value = this._myID;
        ReportViewer1.ReportSource = report01;
        ReportViewer1.Visible = true;
    }
}

I could be just missing something simple but I've been looking at this for a while now and nothing.
n/a
Top achievements
Rank 1
Veteran
 answered on 09 Jul 2020
4 answers
447 views
I need to know how to convert the Rad grid to html in order to add the Radgrid in emailbody.
Vessy
Telerik team
 answered on 09 Jul 2020
3 answers
2.9K+ views
Hi,
In my aspx page i am using

radcombobox

 and in save function of javascript in the same page i want to get selected items text and value of that combobox.But i am not able to receive it.
i used all methods..Text,GetText,.SelectedItem.Text it says 'undefined' always.

Can anyone help me out??
Peter Milchev
Telerik team
 answered on 09 Jul 2020
1 answer
99 views

Basically, I just took an demo of the RadGrid object and modified the code to allow me to bulk enter donations into our membership database.

My problem is that as soon as I select a value from either of the dropdowns and change focus to another object, the selected value is lost.

 

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

        <style type="text/css">
        li.rlbItem .rlbText {
            color: red;
        }
         
        .message {
            line-height: 37px;
        }
 
        .RadGrid .rgRow,
        .RadGrid .rgAltRow {
            height: 30px;
        }
 
        .RadGrid_Silk .rgRow,
        .RadGrid_Silk .rgAltRow,
        .RadGrid_Glow .rgRow,
        .RadGrid_Glow .rgAltRow {
            height: 36px;
        }
 
        .RadGrid_MetroTouch .rgRow,
        .RadGrid_MetroTouch .rgAltRow,
        .RadGrid_BlackMetroTouch .rgRow,
        .RadGrid_BlackMetroTouch .rgAltRow {
            height: 46px;
        }
    </style>
        <telerik:RadAjaxManager runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadGrid1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />
                    <telerik:AjaxUpdatedControl ControlID="SavedChangesList" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="ConfigurationPanel1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />
                    <telerik:AjaxUpdatedControl ControlID="ConfigurationPanel1"/>
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <telerik:RadAjaxLoadingPanel runat="server" ID="RadAjaxLoadingPanel1"></telerik:RadAjaxLoadingPanel>
    <telerik:RadFormDecorator RenderMode="Lightweight" ID="RadFormDecorator1" runat="server" DecorationZoneID="demo" DecoratedControls="All" EnableRoundedCorners="false" />
    <div id="demo" class="demo-container no-bg">
        <h1>Donations</h1>
        <telerik:RadListBox RenderMode="Lightweight" runat="server" ID="SavedChangesList" Width="600px" Height="200px" Visible="false"></telerik:RadListBox>
        <telerik:RadGrid RenderMode="Lightweight" ID="RadGrid1" GridLines="None" runat="server" AllowAutomaticDeletes="True"
            AllowAutomaticInserts="True" PageSize="10" OnItemDeleted="RadGrid1_ItemDeleted" OnItemInserted="RadGrid1_ItemInserted"
            OnItemUpdated="RadGrid1_ItemUpdated" AllowAutomaticUpdates="True" AllowPaging="True"
            AutoGenerateColumns="False" OnBatchEditCommand="RadGrid1_BatchEditCommand" DataSourceID="SqlDataSourceDonations">
            <MasterTableView CommandItemDisplay="TopAndBottom" DataKeyNames="DonationID"
                DataSourceID="SqlDataSourceDonations" HorizontalAlign="NotSet" EditMode="Batch" AutoGenerateColumns="False">
                <BatchEditingSettings EditType="Cell" HighlightDeletedRows="true"/>
                <SortExpressions>
                    <telerik:GridSortExpression FieldName="Envelope" SortOrder="Ascending" />
                </SortExpressions>
                <Columns>
                    <telerik:GridBoundColumn DataField="DonationID" HeaderStyle-Width="0px" HeaderText="DonationID"
                        SortExpression="DonationID" UniqueName="DonationID" ReadOnly="true" Visible="false">
                    </telerik:GridBoundColumn>
                    <telerik:GridNumericColumn DataField="Envelope" HeaderStyle-Width="80px" HeaderText="Envelope"
                        SortExpression="Envelope" UniqueName="Envelope">
                        <ColumnValidationSettings EnableRequiredFieldValidation="true">
                            <RequiredFieldValidator ForeColor="Red" Text="*This field is required" Display="Dynamic">
                            </RequiredFieldValidator>
                        </ColumnValidationSettings>
                    </telerik:GridNumericColumn>
                    <telerik:GridBoundColumn DataField="Donor" HeaderStyle-Width="350px" HeaderText="Donor"
                        SortExpression="Donor" UniqueName="Donor" ReadOnly="true">
                    </telerik:GridBoundColumn>

                    <telerik:GridDropDownColumn DataField="Fund" HeaderStyle-Width="250px" HeaderText="Fund" ListTextField="Fund" ListValueField="Fund"  DataSourceID="SqlDataSourceFunds" DropDownControlType="DropDownList"
                        SortExpression="Fund" UniqueName="Fund">
                        <ColumnValidationSettings EnableRequiredFieldValidation="true">
                            <RequiredFieldValidator ForeColor="Red" Text="*This field is required" Display="Dynamic">
                            </RequiredFieldValidator>
                        </ColumnValidationSettings>
                    </telerik:GridDropDownColumn>
                    <telerik:GridDateTimeColumn DataField="DonationDate" HeaderStyle-Width="120px" HeaderText="Donation Date"
                        SortExpression="DonationDate" UniqueName="DonationDate" DataFormatString="{0:yyyy-MM-dd}">
                        <ColumnValidationSettings EnableRequiredFieldValidation="true">
                            <RequiredFieldValidator ForeColor="Red" Text="*This field is required" Display="Dynamic">
                            </RequiredFieldValidator>
                        </ColumnValidationSettings>
                    </telerik:GridDateTimeColumn>
                    <telerik:GridNumericColumn DataField="DonationAmount" HeaderStyle-Width="120px" HeaderText="Donation Amount"
                        SortExpression="DonationAmount" UniqueName="DonationAmount" DataFormatString="{0:C2}">
                        <ColumnValidationSettings EnableRequiredFieldValidation="true">
                            <RequiredFieldValidator ForeColor="Red" Text="*This field is required" Display="Dynamic">
                            </RequiredFieldValidator>
                        </ColumnValidationSettings>
                    </telerik:GridNumericColumn>
                    <telerik:GridDropDownColumn DataField="PaymentType" HeaderStyle-Width="150px" HeaderText="Payment Type" ListTextField="PaymentType" ListValueField="PaymentType"  DataSourceID="SqlDataSourcePaymentTypes" DropDownControlType="DropDownList"
                        SortExpression="PaymentType" UniqueName="PaymentType">
                        <ColumnValidationSettings EnableRequiredFieldValidation="true">
                            <RequiredFieldValidator ForeColor="Red" Text="*This field is required" Display="Dynamic">
                            </RequiredFieldValidator>
                        </ColumnValidationSettings>
                    </telerik:GridDropDownColumn>
                    <telerik:GridButtonColumn ConfirmText="Delete this Donation?" ConfirmDialogType="RadWindow"
                        ConfirmTitle="Delete" HeaderText="Delete" HeaderStyle-Width="50px" 
                        CommandName="Delete" Text="Delete" UniqueName="DeleteColumn">
                    </telerik:GridButtonColumn>
                </Columns>
            </MasterTableView>
            <ClientSettings AllowKeyboardNavigation="true"></ClientSettings>
        </telerik:RadGrid>
    </div>
    <asp:SqlDataSource ID="SqlDataSourceDonations" runat="server" ConnectionString="<%$ AppSettings: LocalConnectionInfo %>"
        DeleteCommand="Exec UpdateDonation;" 
        InsertCommand="Exec UpdateDonation 'NEW', @Envelope, '', null, null, @DonationDate, @DonationAmount, null, null, null, @Fund, null, null, 'Monetary', null, @PaymentType;"
        SelectCommand="Exec GetDonation @EnvelopeNumber=-1;"
        UpdateCommand="Exec UpdateDonation @DonationID, @Envelope, '', null, null, @DonationDate, @DonationAmount, null, null, null, @Fund, null, null, 'Monetary', null, @PaymentType;">
        <DeleteParameters>
        </DeleteParameters>
        <InsertParameters>
            <asp:Parameter Name="Envelope" Type="Int16"></asp:Parameter>
            <asp:Parameter Name="Fund" Type="String"></asp:Parameter>
            <asp:Parameter Name="DonationDate" Type="DateTime"></asp:Parameter>
            <asp:Parameter Name="DonationAmount" Type="Decimal"></asp:Parameter>
            <asp:Parameter Name="PaymentType" Type="String"></asp:Parameter>
        </InsertParameters>
        <UpdateParameters>
            <asp:Parameter Name="DonationID" Type="String"></asp:Parameter>
            <asp:Parameter Name="Envelope" Type="Int16"></asp:Parameter>
            <asp:Parameter Name="Fund" Type="String"></asp:Parameter>
            <asp:Parameter Name="DonationDate" Type="DateTime"></asp:Parameter>
            <asp:Parameter Name="DonationAmount" Type="Decimal"></asp:Parameter>
            <asp:Parameter Name="PaymentType" Type="String"></asp:Parameter>
        </UpdateParameters>
    </asp:SqlDataSource>

    <asp:SqlDataSource ID="SqlDataSourceFunds" runat="server" ConnectionString="<%$ AppSettings: LocalConnectionInfo %>"
        SelectCommand="Exec GetValidFunds;">
    </asp:SqlDataSource>

    <asp:SqlDataSource ID="SqlDataSourcePaymentTypes" runat="server" ConnectionString="<%$ AppSettings: LocalConnectionInfo %>"
        SelectCommand="Exec GetValidPaymentTypes;">
    </asp:SqlDataSource>

</asp:Content>

Attila Antal
Telerik team
 answered on 09 Jul 2020
1 answer
98 views

Hi,

 

how can I export both pivotgrid and radgrid to one Excel worksheet?

I know how to export each of them separately but together- nothing worked for me.

 

thanks

Attila Antal
Telerik team
 answered on 09 Jul 2020
8 answers
363 views
I have a Radgrid that has AllowMultiRowSelection="True". However in my code behind I have logic to disable and hide certain rows.

In RadGrid1_ItemDataBound I have this snippet of code to disable and hide rows that should not be checked.
((e.Item as GridDataItem)["ClientSelectColumn"].Controls[0] as CheckBox).Enabled = false;
((e.Item as GridDataItem)["ClientSelectColumn"].Controls[0] as CheckBox).Visible = false;

The issue I am having is that even though the checkbox is not enabled and hidden for certain rows when I click on the checkbox in the header of the RadGrid, even the rows in the RadGrid that don't have a checkbox are highlighted. 

I only want the rows in the RadGrid to highlight the ones with checkboxes when a user selects the checkbox in the header and not the ones that I have hidden the checkbox.  What is the best and most practical way to achieve this scenario?

Albert Shenker
Top achievements
Rank 1
Veteran
Iron
 answered on 07 Jul 2020
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?