Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
106 views
When i press on EqualTo filter function in GridDateTimeColumn in a RadGrid ,it works but when i want to remove the filter from it pressing on NoFilter ,it'd do nothing but it'd still show the datetime i already chosen 
Richard
Top achievements
Rank 1
 answered on 04 Jun 2012
5 answers
380 views
Hi.  I'm new to Telerik Controls.  I recently joined a company that uses these controls religiously, and am happy to say that I really like working with them.
HOWEVER, i have a bit of an issue with some styling needs.  I've surfed around the forums looking for some tidbits of information on how to style the group headers (found this one - fairly helpful to a point.)
What I need to do is each group header item has to be a different color, and I was going to us a SWITCH (Case) statement to make the color choices.

Can some one assist with what I may be doing wrong?

I'm populating the grid with a datatable and want to style the group headers within the same function - because of the use of some variables.  I know my placement of the styling is off.  So, if someone could point out the error of my ways and help me to correct it, It'd be much appreciated.

Thanks in advance

(ps, there's more code showing where the data is actually coming from - I didn't post it because I didn't think it was pertinent to this portion.... thanks again.)
dataTable = db.StoredProcedures.FlashDataTable(strFyStartDate, strFyEndDate, strCntrStartDate, strCntrEndDate);
 
            string strProfName = "";
            string strEventProfileContact = dataTable.Rows[0]["EventProfileContact"].ToString();
 
            foreach (DataRow dRow in dataTable.Rows)
            {
                if(strProfName != strEventProfileContact)
                {
                    dRow["EventProfileContact"] = dataTable.Rows[0]["EventProfileContact"].ToString();
 
                    foreach (GridGroupHeaderItem groupHeader in reportView.MasterTableView.GetItems(GridItemType.GroupHeader))
                    {
                        string evProfCont = dataTable.Rows[0]["EventProfileContact"].ToString();
 
                        switch (evProfCont)
                        {
                            case "Person1 Name":
                                groupHeader.BackColor = System.Drawing.ColorTranslator.FromHtml("#9DB232");
                                break;
                            case "Person2 Name":
                                groupHeader.BackColor = System.Drawing.ColorTranslator.FromHtml("#737CA1");
                                break;
                            case "Person3 Name":
                                groupHeader.BackColor = System.Drawing.ColorTranslator.FromHtml("#8467D7");
                                break;
                            case "Person4 Name":
                                groupHeader.BackColor = System.Drawing.ColorTranslator.FromHtml("#79BAEC");
                                break;
                            case "Person5 Name":
                                groupHeader.BackColor = System.Drawing.ColorTranslator.FromHtml("#C12267");
                                break;
                            case "Person6 Name":
                                groupHeader.BackColor = System.Drawing.ColorTranslator.FromHtml("#32B29C");
                                break;
                            case "Person7 Name":
                                groupHeader.BackColor = System.Drawing.ColorTranslator.FromHtml("#F88017");
                                break;
                            case "Person8 Name":
                                groupHeader.BackColor = System.Drawing.ColorTranslator.FromHtml("#ADA96E");
                                break;
                        }
                    }
 
                    dRow["RebateID"] = dataTable.Rows[0]["RebateID"].ToString();
                    dRow["PromoName"] = dataTable.Rows[0]["PromoName"].ToString();
                    dRow["StartDate"] = dataTable.Rows[0]["StartDate"].ToString();
                    dRow["EndDate"] = dataTable.Rows[0]["EndDate"].ToString();
                    dRow["FinalDate"] = dataTable.Rows[0]["FinalDate"].ToString();
                    dRow["WTDNoOfRBTs"] = dataTable.Rows[0]["WTDNoOfRBTs"].ToString();
                    dRow["WTDAvgPERRBT"] = dataTable.Rows[0]["WTDAvgPERRBT"].ToString();
                    dRow["WtdTtlDOLLARS"] = dataTable.Rows[0]["WtdTtlDOLLARS"].ToString();
                    dRow["FY#OfRBTs"] = dataTable.Rows[0]["FY#OfRBTs"].ToString();
                    dRow["FyAVG$PerRBT"] = dataTable.Rows[0]["FyAVG$PerRBT"].ToString();
                    dRow["FyTtlDOLLARS"] = dataTable.Rows[0]["FyTtlDOLLARS"].ToString();
                    dRow["BudgetAmount"] = dataTable.Rows[0]["BudgetAmount"].ToString();
                    dRow["VarianceTOBudget"] = dataTable.Rows[0]["VarianceTOBudget"].ToString();
                    dRow["EndingBudgetFY2011"] = dataTable.Rows[0]["EndingBudgetFY2011"].ToString();
                }
 
                strProfName = strEventProfileContact;
            }
 
             
 
            reportView.DataSource = dataTable;
            reportView.DataBind();
Mark
Top achievements
Rank 1
 answered on 04 Jun 2012
5 answers
228 views
Hi,

I'm trying to make in CSS a single background, for expanded elements and the root element. (cf. Picture)
But, I can't get both in the same class.



When the rootItem is collapse the Css is :
.MainMenu .rmHorizontal .rmRootLink
{
background: -moz-linear-gradient(center top , #E7E7E7, #FFFFFF) repeat scroll 0 0 #F9F9F9;
background: #F9F9F9 -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(0%, #E7E7E7), color-stop(100%, white));
background: #F9F9F9 -webkit-linear-gradient(top, #E7E7E7 0%, white 100%);
background: #F9F9F9 linear-gradient(top, #E7E7E7 0%, white 100%);<br>...<br> 
}


I have the expanded item with that :
.MainMenu .rmHorizontal .rmItem .rmSlide .rmVertical .rmItem a

Thanks in advance
Julie
Kate
Telerik team
 answered on 04 Jun 2012
1 answer
1.0K+ views
Hi,

In my Grid i have a Column that Show me a Date. Now i have to implement a logic that checks how many days are left until the date and after I have to set at the ride side from the date the Icon. I have 4 Icons. Can somone tell me an approach to implement this logic?

kind regards

<telerik:GridBoundColumn UniqueName="DueDate" SortExpression="DueDate" DataFormatString="{0:d}"
    HeaderText="<%$Resources:ESTV.A3, FieldDueDate%>" DataField="DueDate" />
Jayesh Goyani
Top achievements
Rank 2
 answered on 04 Jun 2012
1 answer
146 views
How do I implement vertical scrolling text using ticker or rotator? I want to load each line item one by one on a button click.


for (i=0; i<=5; i++){
 
 
if (i==1){
Show Line 1
}else if(i==2){
Show Line 2
}
 
 
}
Slav
Telerik team
 answered on 04 Jun 2012
6 answers
252 views
I'm getting a javascript error when a RadDatePicker uses a shared calendar AND is set to autopostback.  It only happens the second time a date is selected and only if the month is changed using the arrows or the month picker.  We're using version 2011.1.519.40.

Steps to reproduce:
1. DatePicker with shared calendar and autopostback = true
2. Click the calendar button and choose a date in the default month.
3. Click the calendar button again, click the right arrow to change to the next month, and then select a new date from that month.

The error I'm getting in the Firefox Error Console is "b is null."  Clicking the link in the error console to Telerik.Web.UI.WebResource.axd shows a highlight on "},_setStyleToRenderedDate:function(b,c){b.IsSelected=c;"  

I can work around this by not using a shared calendar but do you have any ideas?  I recreated the issue in the sample VS2010 website but I can't attach a zip file here.
Nino
Top achievements
Rank 1
 answered on 04 Jun 2012
0 answers
75 views
EDIT: I think the solution in the existing post on this topic will work.



Jeff
Top achievements
Rank 1
 asked on 04 Jun 2012
1 answer
95 views
hi
i am trying to  remove subject field from Advanced form but i am not finding any way out of it.
can anyone tell me how can i do it?
Peter
Telerik team
 answered on 04 Jun 2012
1 answer
84 views

I have a working ajaxified grid to which I'm adding new PDF/Excel export capability. In the ItemCommand event I'm setting boolean isPdfExport or isExcelExport. It loops through ItemCreated and ItemDataBound for all expected items. It goes through PreRender for the Page and PreRender for the grid.

But then the web page with the grid re-renders.

There is no export. and the re-rendered page no longer includes the command buttons.

This is a nested page a user control containing a tab/multipage, and one of the pageviews containing a usercontrol that has this grid.

Now this might be silly but in the event handlers I specifically just tell it to return once I know we're exporting. Do I need to manually set the columns? For example:

if (isExcelExport)
{
    if (e.Item is GridHeaderItem)
    {
    }
    if (e.Item is GridDataItem)
    {
    }
    if (e.Item is GridFooterItem)
    {
    }
    return;
}

The exact same behavior is seen for IE9 and FF12.

Using the very latest build of the controls.

Thanks!

Marin
Telerik team
 answered on 04 Jun 2012
2 answers
109 views

Please can someone provide some guidance on why the following is not working.

<telerik:RadNumericTextBox ID="lnVoltage" runat="server" Label="Voltage (V): " Width="160" ToolTip="Three phase voltage" MinValue="0" MaxValue="1000" Value="400" NumberFormat-DecimalDigits="0"  DataType="Double" ShowSpinButtons="true" >
<ClientEvents OnValueChanged="singlePhVoltage" OnLoad="singlePhVoltage" />
</telerik:RadNumericTextBox>
 
      <telerik:RadCodeBlock ID="RadCodeBlock2" runat="server">
            <script type="text/javascript">
            <!--
                function singlePhVoltage(sender, eventArgs) {
                    alert("in function");
                }
            -->
            </script>
        </telerik:RadCodeBlock>

 

When I change the textBox value the function is not being called.  Have tried several things.

Steven
Top achievements
Rank 1
 answered on 04 Jun 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?