Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
744 views
I'm REALLY struggling with this and it's causing me endless frustration. The only way I've been able to override the styles successfully is by using `!important,` which I just don't want to do, nor is it recommended. I read the following article, but it has been of no help to me.
http://blogs.telerik.com/aspnetmvcteam/posts/08-06-17/how-to-override-styles-in-a-radcontrol-for-asp-net-ajax-embedded-skin.aspx 

I have the following style which I want to override the rgHeader style. I use this style for all my GridView just fine, but RadGrid is being a pain in my ear!! :(

.appTableHead
{
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10pt;
    font-weight: bold;
    color: #FFFFFF;
    background-color: #2B486A;
}

I tried ".RadGrid_Default .appTableHead { <styles> }" like the article suggests, as well as several other variations and nothing is working for me. It's driving me bonkers! >.<

I've attached a snippet view of the markup generated by my app so you can see the class structure. Any help would be greatly appreciated. Particularly if you can show me exactly what needs to be done to make this work. Thanks! :)
Matthew
Top achievements
Rank 1
 answered on 23 Jul 2012
2 answers
62 views
I found it difficult to title this appropriately, but here's my problem, first with some background info.

1. I created a DataTable, gave it some columns, and populated it with data.
2. I then used a DataView to sort that data.
3. Finally I bound the DataView to a custom control inheriting from RadGrid.

I want to filter the resulting RadGrid rows to divide it up into subsets, but no matter what I try for my FilterExpression, nothing works. After stepping through my code in debug mode, I noticed the RadGrid.Columns.Count = 0, even though I have results and columns with headers as I defined in my DataTable. I suspect this is why my FilterExpression is not working, though I also don't understand how it could have zero columns, yet the Columns are rendering just fine, headers and all. I was under the impression that by Binding my data, the RadGrid would automatically inherit the Columns and their names, but apparently not. How then can FilterExpression even work as it should?

Thoughts? Suggestions?
Matthew
Top achievements
Rank 1
 answered on 23 Jul 2012
2 answers
128 views

Pavlina
Telerik team
 answered on 23 Jul 2012
3 answers
104 views
I have implemented "combobox with grid-like multiple columns with headers"  as in http://demos.telerik.com/aspnet-ajax/combobox/examples/default/defaultcs.aspx 

If I have Product and quantity as two headers in the combobox,can I sort the records on clicking the column headers product and quantity(as in RadGrid)? 


Cat Cheshire
Top achievements
Rank 1
 answered on 23 Jul 2012
3 answers
380 views
Hi,

I don't currenlty have paid support so am posting this here.  I would like to see a RadCheckBox control.  This would have tri-state support so that true, false and null could be bound to it.  There seems to be one in the treeview, but no stand-alone control.

Craig
Bozhidar
Telerik team
 answered on 23 Jul 2012
1 answer
165 views
Is there an issues with the RadFacebookButton ButtonType="FacebookShare"  or has Facebook phased this button type out.  I noticed that it is not showing up in the SocialShare / Standard third party buttons demo.  If Facebook has phased this button type out what is the new button type I should be using?
Thanks
Marin Bratanov
Telerik team
 answered on 23 Jul 2012
6 answers
165 views
hi
i am working on telerik asp.net ajax controls using demo version i am using text boxes combo boxes etc with 100 percent width in my forms but only text boxes are causing issues they are not aligning properly they are coming as pyramid starting from top with lowest width to the last with max width
and when i am hiding splitter the text boxes auto adjust to width to cover the area but when i again bring back splitter they dont reduce themselves same issue is occurring with menu bar control i am using
and when i am doing this hiding and unhiding of splitter again and again text boxes and menu bar are increasing their sizes repeatedly this is causing me a great problem
i would be grateful if you help ASAP

regards
Harry
Pavlina
Telerik team
 answered on 23 Jul 2012
1 answer
72 views
I have a database with some tables in it
the main table which is basically structured as such:


uid, existingpkg, win7preferredpackageid 
1, 100, 1200

I also have a lookup table which contains
uid, packagename
100, "Package One"
1200, "New Package One"



I have implmented a radgrid as follows


<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
  <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    <Scripts>
      <%--Needed for JavaScript IntelliSense in VS2010--%>
      <%--For VS2008 replace RadScriptManager with ScriptManager--%>
      <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
      <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
      <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
    </Scripts>
  </telerik:RadScriptManager>
  <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" />
  <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server">
    <telerik:RadGrid ID="RadGrid1" GridLines="Both" runat="server" AllowAutomaticDeletes="True" AllowSorting="True" AutoGenerateColumns="false"
                     AllowAutomaticInserts="True" AllowAutomaticUpdates="True" AllowMultiRowEdit="False" 
                     AllowPaging="True" DataSourceID="DataSource1" OnItemUpdated="RadGrid1_ItemUpdated"
                     AllowFilteringByColumn="True" OnItemDeleted="RadGrid1_ItemDeleted" PageSize="25" 
                     OnItemInserted="RadGrid1_ItemInserted" OnDataBound="RadGrid1_DataBound">
      <PagerStyle Mode="NextPrevAndNumeric" Position="TopAndBottom" />
      <MasterTableView Width="100%" CommandItemDisplay="TopAndBottom" DataKeyNames="uid" 
                       DataSourceID="DataSource1" HorizontalAlign="NotSet" EditMode="InPlace">
        <Columns>
          <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn">
            <ItemStyle CssClass="MyImageButton" />
          </telerik:GridEditCommandColumn>
          <telerik:GridBoundColumn    DataField="uid" 
                                      HeaderText="uid" 
                                      SortExpression="uid" 
                                      UniqueName="uid" 
                                      ReadOnly="True">
          </telerik:GridBoundColumn>
          <telerik:GridDropDownColumn DataField="win7rationalizationstatusID" 
                                      DataSourceID="SqlDataSource3"   
                                      HeaderText="Rationalization Status"    
                                      ListTextField="Status"                                             
                                      ListValueField="uid"   
                                      UniqueName="win7rationalizationstatusID" 
                                      />  
          <telerik:GridDropDownColumn DataField="existingpkg" 
                                      DataSourceID="SqlDataSource2"   
                                      HeaderText="Existing Package"    
                                      ListTextField="PackageName"                                             
                                      ListValueField="uid"   
                                      UniqueName="PackageID" 
                                      />  
          <telerik:GridDropDownColumn DataField="win7preferredpackageid" 
                                      DataSourceID="SqlDataSource2"   
                                      HeaderText="Windown 7 Preferred Package"    
                                      ListTextField="PackageName"                                             
                                      ListValueField="uid"   
                                      UniqueName="WIn7PackageID" 
                                      />  
          <telerik:GridBoundColumn    DataField="mappeddate" 
                                      HeaderText="Date Mapped" 
                                      SortExpression="mappeddate" 
                                      UniqueName="mappeddate" 
                                      ReadOnly="True">
          </telerik:GridBoundColumn>
          <telerik:GridBoundColumn    DataField="mappedbyEmpID" 
                                      HeaderText="Mapped by" 
                                      SortExpression="mappedbyEmpID" 
                                      UniqueName="mappedbyEmpID" 
                                      ReadOnly="True">
          </telerik:GridBoundColumn>
        </Columns>
        <EditFormSettings>
          <FormTableItemStyle Wrap="False"></FormTableItemStyle>
          <FormCaptionStyle CssClass="EditFormHeader"></FormCaptionStyle>
          <FormMainTableStyle GridLines="None" CellSpacing="0" CellPadding="3" BackColor="White" Width="100%" />
          <FormTableStyle CellSpacing="0" CellPadding="2" Height="110px" BackColor="White" />
          <FormTableAlternatingItemStyle Wrap="False"></FormTableAlternatingItemStyle>
          <EditColumn ButtonType="ImageButton" UniqueName="EditCommandColumn1" CancelText="Cancel edit">
          </EditColumn>
          <FormTableButtonRowStyle HorizontalAlign="Right" CssClass="EditFormButtonRow"></FormTableButtonRowStyle>
        </EditFormSettings>
      </MasterTableView>
    </telerik:RadGrid>
    <telerik:RadWindowManager ID="RadWindowManager1" runat="server"></telerik:RadWindowManager>
  </telerik:RadAjaxPanel>
  <asp:SqlDataSource 
    SelectCommand="SELECT pr.uid, pr.packageid as existingpkg, pk1.packagename, pr.win7rationalizationstatusID, rs.Status AS win7rationalizationstatus, pr.win7preferredpackageid, pk2.packagename as win7preferredpackagename, pr.notes, pr.mappeddate, pr.mappedbyEmpID FROM lc2.dbo.tbl_PackageRationalization pr join lc2.dbo.lu_tbl_packages as pk1 on pr.packageid = pk1.uid join lc2.dbo.lu_tbl_packages as pk2 on pr.win7preferredpackageid = pk2.uid join lc2.dbo.lu_tbl_win7apprationalizationstatus as rs on pr.win7rationalizationstatusID = rs.uid order by uid" 
    ConnectionString="<%$ ConnectionStrings:LC2ConnectionString %>" 
    ProviderName="System.Data.SqlClient" 
    ID="DataSource1" 
    runat="server" />
  <asp:SqlDataSource 
    SelectCommand="SELECT uid, PackageName as packagename FROM LC2.dbo.lu_tbl_Packages"
    ConnectionString="<%$ ConnectionStrings:LC2ConnectionString %>" 
    ProviderName="System.Data.SqlClient" 
    ID="SqlDataSource2" 
    runat="server" 
    />
  <asp:SqlDataSource 
    SelectCommand="SELECT uid, status FROM LC2.dbo.lu_tbl_Win7AppRationalizationStatus" 
    ConnectionString="<%$ ConnectionStrings:LC2ConnectionString %>" 
    ProviderName="System.Data.SqlClient" 
    ID="SqlDataSource3" 
    runat="server" 
    />

In "Edit Mode" this is what I see...

http://postimage.org/image/4dlvnyep1/ 

Which is all correct and working as expected
What I need to happen is this, turn the dropdowns into google suggest like combos
So end users can type the first characters of an package name and it shows the matches
This is exactly what I am trying to do ... http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/comboingrid/defaultvb.aspx?product=combobox

but the data for my dropdown would be coming from another table which is not like this example

How can I modify it so the combobox uses the lookup table instead of the main datasource?
Marin
Telerik team
 answered on 23 Jul 2012
12 answers
328 views
hi, i have a problem.
I'm using the radDatePicker.
When I selected the date 18-oct-2009 or penultimate sunday of october at another year, the picker change the date for another date.
i try it on demo "http://demos.telerik.com/aspnet-ajax/calendar/examples/datepicker/custompopup/defaultcs.aspx" and i have the same problem.


Obs.: It always change to 1 day ago.


Version: RadControls for ASPNET AJAX Q2 2008
Framework 2.0
Language: C#
Browser: FireFox Mozilla/5.0 (Windows; U; Windows NT 5.1; pt-BR; rv:1.9.0.11) Gecko/2009060215 Firefox/3.0.11
               Internet Explorer 6.0.2900.5512.xpsp_sp3_gdr
               Internet Explorer 8.0.6001.18702IC

It's work on
              Internet Explorer 7.0.5730.13

thanks.
Vasil
Telerik team
 answered on 23 Jul 2012
2 answers
88 views

Hello,

  I would like to have a checkbox list in the radgrid edit mode. But the problem is, there are almost 20 items in the checkbox list. By default, all these items are aligned vertically. But i want to have the list box items in multiple columns. 
Any help

Thanks


Jagat
Top achievements
Rank 1
 answered on 23 Jul 2012
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?