Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
88 views

I have a RadGrid control with server side filtering enabled such that you can enter text and then select Contains, Equals, etc.

http://demos.telerik.com/aspnet-ajax/grid/examples/functionality/filtering/basic-filtering/defaultcs.aspx

I need to be able to have filter as a dropdown list with only the available options in the current grid.

For example if the grid's Country field contains only two countries, England and USA then the filter dropdown for the Country field should only display England and USA.

Is this functionality possible?

Silviu
Top achievements
Rank 1
 asked on 09 Mar 2017
1 answer
124 views

I have created a custom theme with the Theme Builder but I have notice that many, if not all, of the URL references in the css files contain server-side code blocks. Since I am adding links to these files directly the server side code does not get executed.

 

Example from the SearchBox css file:

.RadSearchBox_BP_FormDefault .rsbLoadingIcon {   

    background-image: url('<%=WebResource("Telerik.Web.UI.Skins.BP_FormDefault.Common.loading_small.gif")%>'); 

}

The example linked in several of the existing threads does not provide any information.

http://docs.telerik.com/devtools/aspnet-ajax/controls/grid/appearance-and-styling/modifying-existing-skins#creating-a-custom-skin-basic-steps

 

 

 

Magdalena
Telerik team
 answered on 09 Mar 2017
0 answers
86 views

I have a very simple grid

 

<telerik:RadGrid ID="GrdCourses" runat="server" OnNeedDataSource="GrdCourses_NeedDataSource" OnDetailTableDataBind="GrdCourses_DetailTableDataBind" AutoGenerateColumns="false" MasterTableView-ExpandCollapseColumn-HeaderStyle-Width="50px">
    <ClientSettings AllowDragToGroup="false">
        <Scrolling AllowScroll="true" UseStaticHeaders="True" />
        <Resizing AllowColumnResize="true" />
    </ClientSettings>
    <MasterTableView DataKeyNames="ProductPlanID">
        <Columns>

 

I was thinking that MasterTableView-ExpandCollapseColumn-HeaderStyle-Width property was there to set the width of the ExpandCollapse column... but it has no effect at all.

The skin has been set to tBoostrap in the web.config.

No other CSS are applied

I'm using v 2017.1.228

 

Anyone knows a workaround to this bug?

marco
Top achievements
Rank 2
 asked on 09 Mar 2017
0 answers
126 views

We have a project that has been built over many years and uses a master page with content pages to deliver to the browser. We are embarking on project to migrate web pages to a new fresh look. To achieve this look or as near as I need to make use of using custom skins which will be applied in the code-behind.

Now this is where the problem arises; I have spent more than 8 hours trying to make this happen; I copied from the telerik skins folder the Metro skin and changed this to our product name INONI. In my testing I thought I would apply it to the RadWindow control; I so I edited the CSS and change the styles ending with _Metro to _INONI in keeping with skin. Using the code-behind method I used it with my project and clicked a button with uses the radopen java script method this opened to what can only be described as a ghost version of the window.

Using the same method but configuring the project to use in-built Metro skin this works fine. I have constructed a mockup project (30mb unfortunately zipped) with all the elements to show you what I mean but I am unable to attach this to the thread. I am in need of some inspiration.

Matthew
Top achievements
Rank 1
 asked on 09 Mar 2017
1 answer
80 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
1.0K+ 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
697 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
145 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
189 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
146 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?