Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
117 views
Dear telerik Team,

I am working with the resource grouping where my scheduler shows multiple resources. And I am applying timeslots back colour depending on my conditions.  Now I need to show the timeslot with two different colours. I tried it by changing the css class of scheduler stylesheet shown below.

.RadScheduler_NewSkin .rsContentTable .rsAlt td
{
    border-left-width: 15px;
border-left-color: Green;
border-left-style: solid;
}

then i got timeslot colour for alternate rows of scheduler which shown in below image with name timeslot_colors.jpg.
But I need to apply colours to all the rows such as shown in below figure with name color_repr.jpg

Please refer color_repr.jpg image and give me possible modifications to achieve that functionality.

Thanks and Regards
--------------------------
Pradeep
Kamen Bundev
Telerik team
 answered on 10 Aug 2010
1 answer
354 views
I have a RadGrid that is not using enabled themes, so I have made my own skin. This Grid looked perfect before I started making changes to that, but the customer wants it to look like previous grids.

So... there is an unexplained gap between the header row and the first data row now in my grid. (screenshot attached)
Can anyone help me figure out why, and how to close that gap?

Thanks in advance!

Here is the ASPX code:
<telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="false" ShowGroupPanel="false" ShowStatusBar="false" EnableViewState="false" GridLines="Both" ShowFooter="false" EnableEmbeddedSkins="false" SkinID="radgridSkin" OnItemDataBound="RadGrid1_OnDataBound" OnPreRender="RadGrid1_PreRender">
  <MasterTableView EnableColumnsViewState="false" Width="100%" TableLayout="Auto" >
  <Columns>
  <telerik:GridBoundColumn DataField="TaxonName" HeaderText="Taxon" ItemStyle-Wrap="false" HeaderStyle-BorderWidth="0px" >
  </telerik:GridBoundColumn>
  <telerik:GridBoundColumn DataField="StrainNumber" HeaderText="Strain #" ItemStyle-Wrap="false" HeaderStyle-BorderWidth="0px">
  </telerik:GridBoundColumn>
  </Columns>
  </MasterTableView>
<HeaderStyle Wrap="true" BorderStyle="Solid" BorderWidth="1px" BorderColor="SlateGray" />
<ClientSettings>
  <Selecting AllowRowSelect="true" />
  <Scrolling AllowScroll="True" ScrollHeight="500px" FrozenColumnsCount="2" UseStaticHeaders="true" />
</ClientSettings>
</telerik:RadGrid>

Here is the Skin Code:
<telerik:RadGrid  runat="server" ShowGroupPanel="false" ShowStatusBar="false" SkinId="radgridSkin" ItemStyle-BackColor="GhostWhite" AlternatingItemStyle-BackColor="LightGray" HeaderStyle-BackColor="Transparent" HeaderStyle-Font-Bold="true" AlternatingItemStyle-CssClass="dgRow" ItemStyle-Height="28px" AlternatingItemStyle-Height="28px" ItemStyle-CssClass="dgRow" ItemStyle-BorderColor="LightSlateGray" ItemStyle-BorderStyle="Solid" ItemStyle-BorderWidth="1px" AlternatingItemStyle-BorderColor="LightSlateGray" AlternatingItemStyle-BorderStyle="Solid"  AlternatingItemStyle-BorderWidth="1px">
</telerik:RadGrid>

Here is the CSS Code:
.dgRow{}
.dgRow td
{
    height: 31px;
    padding: 0px 0px 0px 2px;
    border: solid 1px LightSlateGray;
}
TABLE.dgRow th
{
    padding-left:4px;
    padding-right:4px;
    padding-bottom:4px;
    max-height:60px;
    vertical-align:bottom;
    white-space:nowrap;
    text-align:left;
}
Dimo
Telerik team
 answered on 10 Aug 2010
1 answer
84 views
Hi,
 I am using  RadSplitter that occupies 100% browser width and height, RadPane wraps map control and sets its width,height and extent at OnClientResized event. When  Rad-splitter re sizes for the first time I would like to set my map's restricted extent  to the current extent of map. How can I know splitter has  finished setting width and height of RadPanes so that I can call this function SetRestrictedExtent(). I want this function to be called just once on page load not on postback.





Is there any specific function/events that can be used ?
Thanks
Prava
Tsvetie
Telerik team
 answered on 10 Aug 2010
4 answers
645 views
Hi,

Iam configuring the below grid and I have to display  "Yes / No" message box on Save & Cancel Click.
Based on user response I have to display few more "Ok" message box & few more "Yes / No" message boxes.
Can you please explain how to achieve this functionality in radgrid ?
Your help is very much appreciated. Thank you.


OrderTypeRankingGrid.AddNeedDataSourceEventHandler(NeedDataSource); // Binding master table view
            OrderTypeRankingGrid.AddGridCommandEventHandler(DataGrid_ItemCommand); // Events for the standard ngm controls
            OrderTypeRankingGrid.PreRender += new EventHandler(OrderTypeRankingGrid_PreRender);
                       
             
            OrderTypeRankingGrid.AllowColumnsReorder = false;             
            OrderTypeRankingGrid.GridHeaderText = "Order Type Ranking"; 
            var masterView = OrderTypeRankingGrid.ConfigureMasterTableView("vDivisionOrderTypeRanking", new string[] { "DivisionOrderTypeRankId","CategoryCode", "PurposeCode", "ReasonCode", "ReasonDescription"});
            masterView.AllowFilteringByColumn = true;
            masterView.AllowSorting = true;
            masterView.FullEditMode = true;
            masterView.EditMode = GridEditMode.InPlace;
            masterView.EnableShowHideColumns = true;
            masterView.SetPaging(GridPagerMode.NextPrevAndNumeric);
            masterView.GridTableView.ShowHeader = true;
            masterView.ShowHeader = true;
            masterView.ShowFooter = true;
            masterView.ShowHeadersWhenNoRecords = true;
            masterView.AllowPaging = true;
            masterView.PageSize = 10;
              
                          
            masterView.AddNgmCommandButton(NgmButtonType.Save, "btnSave", null, null, null, Unit.Pixel(50));
            masterView.AddNgmCommandButton(NgmButtonType.Cancel, null, null, null, null, Unit.Pixel(50));
              
            masterView.CommandItemDisplay = GridCommandItemDisplay.Bottom;
  
              
            if (!IsPostBack)  //must check for postback; otherwise, columns will be duplicated
            {
                //masterView.AddBoundColumn("DivisionOrderTypeRankId", "Rank ID", "DivisionOrderTypeRankId", true, false, true, Unit.Percentage(7.0));
                masterView.AddBoundColumn("CategoryCode", "Category Code", "CategoryCode", true, false, true, Unit.Percentage(7.0));
                masterView.AddBoundColumn("PurposeCode", "Purpose Code", "PurposeCode", true, false, true, Unit.Percentage(7.0));
                masterView.AddBoundColumn("ReasonCode", "Reason Code", "ReasonCode", true, false, true, Unit.Percentage(7.0));
                masterView.AddBoundColumn("ReasonDescription", "Reason Description", "ReasonDescription", true, false, true, Unit.Percentage(7.0));
                masterView.AddBoundColumn("OrderTypeRank", "Rank", "OrderTypeRank", false, false, true, Unit.Percentage(7.0));
                  
            }

I have the below code in my .aspx page.

<telerik:RadScriptManager ID="RadScriptManager2" runat="server">
        </telerik:RadScriptManager>
  
//Customized Radgrid Datagrid usercontrol
<tr> <uc1:DataGrid ID="OrderTypeRankingGrid" runat="server" />  </tr>
  
  
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="radGrid">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="radGrid" />
                    <telerik:AjaxUpdatedControl ControlID="lblBindTime" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="btnExport">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="radGrid" />
                    <telerik:AjaxUpdatedControl ControlID="btnExport" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="btnExportMultilevelGrid">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="radGrid" />
                    <telerik:AjaxUpdatedControl ControlID="btnExportMultilevelGrid" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
        <ClientEvents OnRequestStart="RequestStarted" OnResponseEnd="ResponseEnd" />
    </telerik:RadAjaxManager>
Radoslav
Telerik team
 answered on 10 Aug 2010
2 answers
152 views
Hi, when i used the standard asp.net dropdown control , i was able to bind a datasource to it , and also add one more item at the top of the list manually which says "choose company" , so user must select one company from the list in order to pass the validation.

I don't see i can do that with the combobox.
it always shows the list it got from the datasource and the first company is chosen by default. so no required validation  error can occur.
how can i implement the same as i did with the dropdown control?
Ronen
Top achievements
Rank 1
 answered on 10 Aug 2010
2 answers
114 views
i'm using a  tab strip to show each different page in a seperate tab.
when the tabstrip loads, u see nothing in the first selected tab.
to see it , i click the second tab, then i see the second tab, then i click back on the first tab, and then i can see it.
How can i make the first tab appear by default?
Ronen
Top achievements
Rank 1
 answered on 10 Aug 2010
6 answers
171 views
We have a website with a radformdecorator set for all pages.

On one of these pages we have a radgrid with editmode set to "popup" and in the formtemplate we have a standard dropdownlist
The RadFormDecorator replaces the item appropriately, however, when you go to select an item the list is shown under the popup and is not selectable. The only work around we've found is to add "Select" to the ControlsToSkip. We'd like to keep the styling though. Is there a fix for this?
Pavlina
Telerik team
 answered on 10 Aug 2010
1 answer
66 views
hi,
i have multiple tabs and load different user control inside each of the tab i need to set the focus inside one tab particularly after a click event to a list box.
Princy
Top achievements
Rank 2
 answered on 10 Aug 2010
1 answer
170 views
Hi,

I am using view state compression specified in the below mentioned url. (App_Browsers changes)

http://www.telerik.com/help/aspnet-ajax/radcompression.html

<browsers>  
 
<browser refID="Default">   
   
<controlAdapters>  
     
<adapter controlType="System.Web.UI.Page" adapterType="Telerik.Web.UI.RadSessionPageStateCompression" />  
   
</controlAdapters>  
 
</browser>  
</browsers>

I have a aspx page which has "EnableSessionState = false" and "EnableViewState = false" set.

In this case, when i open the aspx, it is throwing the error "

SessionPageStatePersister can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive.

"

Please note that I have no code behind file for my aspx page... how do you give this in aspx page?
[RadCompressionSettings(HttpCompression = CompressionType.None)]  
Can I give this page as part of the exception list? Please help.

Regards,
Kishan G K
Nikolay Rusev
Telerik team
 answered on 10 Aug 2010
1 answer
110 views
Hi,

Anytime I drag a RadGrid on any of the aspx pages I am working creates this error in design mode.

RadGrid - RadGrid1System.IO.FileLoadException: Could not load file or assembly 'Telerik.Web.UI, Version=2010.1.519.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) File name: 'Telerik.Web.UI, Version=2010.1.519.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4' at Telerik.Web.Design.RadGridDesigner.GetDesignTimeHtml(DesignerRegionCollection regions) at System.Web.UI.Design.ControlDesigner.GetViewRendering(ControlDesigner designer) WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].


Is there any way for me to fix this?

Thanks!
Daniel
Telerik team
 answered on 10 Aug 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?