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

Hi,

What i want to achieve is to set an aggregate function for a field (for example min) to calculate on the latest subtotal the sum.
Please check following printscreen.
Is it possible ? 

 

Regards,

Maxime LEMARE

Eyup
Telerik team
 answered on 09 Mar 2017
17 answers
942 views
I have a RadGrid with paging enabled. I select rows using a GridClientSelectColumn, When I click the save button, I want to do something with all the rows that are selected on all pages.

However, it was only looping through the rows on the current page. I tried to fix this by temporarily turning paging off, i.e.,

protected void btnSave_Click(object sender, EventArgs e)
{
    RadGrid1.AllowPaging = false;
    RadGrid1.Rebind();
     
    foreach (GridDataItem item in RadGrid1.Items)
    {
        CheckBox chk = (CheckBox)item["Select"].Controls[0];
        if (chk.Checked)
        {
...
        }
    }
 
    RadGrid1.AllowPaging = true;
    RadGrid1.Rebind();
}

This did indeed loop through every row on every page. However, every row is appearing as unchecked.

I then noticed that the selected rows are not persisted when I switch pages, so I used this method to persist them on the client side. So I have a Javascript array with the IDs of the selected rows. But is there a way to access that array in btnSave_Click?

It also looks like I can use this method to persist the selected rows on the server side. But then I'd have to select the rows with Command buttons, and I'd prefer not to do that if I don't have to.
yook
Top achievements
Rank 1
 answered on 09 Mar 2017
10 answers
679 views

I have looked at the documentation for RadPageLayout to try to understand what is the difference between Span and (SpanXs, SpanSm, SpanMd, SpanLg, SpanXl) but the documentation only covers Span and does not explain what (SpanXs, SpanSm, SpanMd, SpanLg, SpanXl) is.

With Span for columns, it just says it is the size or width in grid units of the column.  One grid equals 1/12 of the total width.

That is still not clear enough for me.

For example, what does it mean when a column has Span=4 and SpanMd=8?

Sincerely,

Keith Jackson

ruckmani
Top achievements
Rank 1
 answered on 09 Mar 2017
0 answers
136 views

Hi everyone

 

       I need to use RadCombobox With checkbox multi select then When I click the value I need to show value like attach files. Please Help me. Thank you for advance.

 

Air
Top achievements
Rank 1
 asked on 09 Mar 2017
0 answers
178 views

I've a radcomboBox with footertemplate that allows me to add new items to the radcombobox.  My RCB has onClientSelectedIndexChanged event that would fire when the selected index is changed.  When I use footerTemplate to add new item - it does not fire this event.  Can you please help.

 

<telerik:RadComboBox ID="rcbClass" runat="server" Width="400px" DropDownAutoWidth="Enabled" AllowCustomText="false" MarkFirstMatch="true" AutoPostBack="true"                                            OnClientSelectedIndexChanged="ChangeEffortClassification"
      <FooterTemplate>
           <asp:TextBox ID="tbClassDetail" runat="server" ClientIDMode="Static"></asp:TextBox>                                   
           <asp:Button ID="btnAddClass" runat="server" Text="Add Classification" OnClick="btnClass_Click" ClientIDMode="Static" CausesValidation="false" OnClientClick="return validateGroupAndSetWaiting(this,'vgRCBFooter');" />
          <asp:RequiredFieldValidator ID="rfvClassDetail" runat="server" ControlToValidate="tbClassDetail"
             ErrorMessage="New Class cannot be blank" ValidationGroup="vgRCBFooter"></asp:RequiredFieldValidator>
    </FooterTemplate>                                  
</telerik:RadComboBox>
 
protected void btnClass_Click(object sender, EventArgs e)
        {
            Page.Validate("vgRCBFooter");
            if (!Page.IsValid) return;
 
            Button btnAddClass = sender as Button;
            TextBox txtClassDetail = (TextBox)btnAddClass.NamingContainer.FindControl("tbClassDetail");
            Telerik.Web.UI.RadComboBox rcbClassDetail = (Telerik.Web.UI.RadComboBox)btnAddClass.NamingContainer.Parent;           
 
            if (!String.IsNullOrEmpty(txtClassDetail.Text))
            {
                rcbClassDetail.Items.Insert(0, new Telerik.Web.UI.RadComboBoxItem(txtClassDetail.Text));
                rcbClassDetail.SelectedIndex = 0;
                txtClassDetail.Text = String.Empty;
            }
        }
Neepa
Top achievements
Rank 1
 asked on 08 Mar 2017
4 answers
133 views

Hi,

I am trying to use your file explorer and add some metadata to each file. Kind of simple archive.

I have attached a screenshot.

When the user select a file the meta data should be displayed on the right side.

I have problems with posting back and find the selected file to display the metadata for.

Rgds

Ole Oscar Johnsen

Vessy
Telerik team
 answered on 08 Mar 2017
0 answers
93 views

I want the fields in a RadGrid EditForm to Autopostback. I am programmatically turning on Autopostback in Page_Load of the custom grid control. Here's the beginning of the grid ascx file:

<radG:RadGrid ID="G1" runat="server" EnableAJAX="True" EnableAJAXLoadingTemplate="True"
    GridLines="None" OnDeleteCommand="RadGrid2_DeleteCommand" OnInsertCommand="RadGrid2_InsertCommand"
    OnItemCommand="RadGrid2_ItemCommand" OnItemDataBound="RadGrid2_ItemDataBound"
    OnNeedDataSource="RadGrid2_NeedDataSource" OnUpdateCommand="RadGrid2_UpdateCommand"
    Skin="Web20" OnPreRender="G1_PreRender">
    <AJAXLoadingTemplate>
        &nbsp;<asp:Image ID="Image1" runat="server" ImageUrl="~/Images/loading7.gif" />
    </AJAXLoadingTemplate>
    <ClientSettings>
        <Selecting AllowRowSelect="True" />
    </ClientSettings>
    <MasterTableView AllowSorting="True" AutoGenerateColumns="False" CommandItemDisplay="Top"
        DataKeyNames="id" GridLines="Vertical">
        <EditFormSettings EditFormType="Template">
            <FormTemplate>

When the form is generated, the javascript for __doPostback is not added to the html. Is there some configuration thing that will cause Autopostback to fail to work? This is legacy code that I did not generate and I, frankly, don't understand it. But, on pages without a grid, I was able to add Autopostback in this way and it worked.

Mark
Top achievements
Rank 1
 asked on 08 Mar 2017
5 answers
133 views
Hi,

I want to have a filter function in RadFilter equivalent to "IN" of SQL.
I should be able to select a field, select "IN" and provide the value as comma separated.
Is it available?
If not, is there a way to add it programmatically?
I am using RadFilterSqlQueryProvider to get the SQL query from the RadFilter. So please provide a solution with which the RadFilterSqlQueryProvider will be able to convert filter to SQL.

Awaiting Reply,
Thanks,
Sharon
Rumen
Telerik team
 answered on 08 Mar 2017
1 answer
106 views

Hi,

I'm looking to make a few changes to the DrawRectangle tool dialog box, but am having difficulty.

Specifically, I would like to do the following.

* Change the title text (default is  "Draw Rectangle")

* Remove the FillColor, DrawColor, and LineSize controls and set these values to Black, Black, and 1 respectively.

* When opening the dialog box, the user simply has to click the page to draw the rectangle and clicks apply when done.

 

Thanks!

 

Vessy
Telerik team
 answered on 08 Mar 2017
7 answers
249 views
Hi,

Does the RadFilter control provide any function to return the filter string? for example:

(
ShipCity
= 'Irvine' AND OrderDate = '11/8/2010 12:00:00 AM')

I tried SaveSettings but it returns a unreadable string.

Additionally, if I have a string, how can I recreate the filter using my string? Is there any API I can use?

Thanks and have a great day.
Bruce
Rumen
Telerik team
 answered on 08 Mar 2017
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?