Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
132 views
Greetings,


In my radgrid i have a column displaying "En cours" or " Nouveau" .
This is the column in question:

<telerik:GridBoundColumn DataField="EtatIncident.nomEtatIncident" HeaderText="Etat du ticket"
    SortExpression="Etatduticket" UniqueName="EtatDuTicket">
</telerik:GridBoundColumn>

I need the text "En cours" to be displayed in green

This is my try which unfortunately does not work:

protected void RadGrid2_ItemDataBound(object sender, GridItemEventArgs e)
{
    foreach (Telerik.Web.UI.GridDataItem dataItem in RadGrid2.MasterTableView.Items)
    {
        Label lbl = (Label)dataItem.FindControl("EtatDuTicket");
 
       if (lbl.Text == " En cours") { lbl.ForeColor = Color.Green; }
    }
}

Thanks in advance for your help
Ronan BARRANGER
Top achievements
Rank 1
 answered on 06 Mar 2012
3 answers
221 views
Hi
Is there any Tool Name for "Paste Options" in RadEditor ?
this drop down contains all paste options and appear in Default tool set , I want to use it in custom tool set but I cant find any Tool Name for it .

Thank you very much for your feedback
Rumen
Telerik team
 answered on 06 Mar 2012
1 answer
140 views

Hi! I create webpart in visual 2008 and i add radscheduler control to this webpart than i deploy this web part on sharepoint 2007 and the control appers on the page. Than I want to be able to chage the views (day->week->month...) but it wan't work so I find out that NavigationCommand suppose to handel this but when i add this.scheduler.NavigationCommand += new SchedulerNavigationCommandEventHandler(RadScheduler_NavigationCommand); and i handel some action in RadScheduler_NavigationCommand nothing happens the application don't even go into this function when i click on day, week, month on the page. I don't know why and i don't have any idea how to handel it. Please help me.

Plamen
Telerik team
 answered on 06 Mar 2012
1 answer
111 views
I have a RadTreeList.

During the request, I set the visibility of one column to false

(RadTreeList1.GetColumnSafe("name").Visible = false ;)

But when ajax is enabled (RadAjaxManager), I get:

Error: a is undefined
SourceFile: */Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_ctl00_ScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a553a4a13-b3a5-4e6b-a152-b131051f1788%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2011.2.920.35%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a7353c022-9e0c-499e-a5a9-77c7c8e9032d%3a16e4e7cd%3af7645509%3a24ee1bba%3a7165f74%3ae330518b%3a1e771326%3a8e6f0d33%3af46195d3%3a874f8ea2%3a19620875%3a39040b5c%3af85f9819%3a78e4289a%3a490a9d4e%3abd8f85e4%3aed16cbdc%3a86526ba7%3aa51ee93e%3a59462f1%3ac172ae1e%3a9cdfc6e7%3ab7778d6c%3ac8618e41%3ae4f8f289
Line: 6


And after that operation it is not possible to select any row (ClientSelect).

Without using ajax all is ok. Why?
Tsvetina
Telerik team
 answered on 06 Mar 2012
3 answers
105 views
Hi,

at the moment I use a RoundedCorner control of one of you competitors ...
Is there a control within the telerik controls that can be used as a container for other controls and produces rounded corners?

Thanks in advance for your help
Best regards

Thomas
Bozhidar
Telerik team
 answered on 06 Mar 2012
2 answers
166 views
Hi,

I have a RadSplitter (version Q1 2012) with two panes and one splitbar.
At server-side I am hidding pane 2 and the splitbar

pane2.Collapsed = true;
splitbarTop.Visible = false;

I want to show pane2 and the splitbar on the clientside in javascript

var pane = splitter.getPaneById("pane2");
var splitbar = $get(splitbarTop);
pane.expand();
splitbar.style.display = "";

pane.expand works correct.

The code for showing the splitbar is producing an error in IE9:
"Microsoft JScript runtime error: Unable to get value of the property 'style': object is null or undefined"

How can I show and hide a splitbar in jacascript?

Paul
Paul Evers
Top achievements
Rank 2
 answered on 06 Mar 2012
6 answers
172 views
I am getting the following error when trying to bind a radgrid:

'Telerik.Web.UI.GridDynamicQueryable.GroupBy(System.Linq.IQueryable, string, string, params object[])' is inaccessible due to its protection level

Here is my code in my need date source:

var test = from p in DbContext.Entered_Comments
                   where p.comment_id = 1;
        radgrdResultDetail.DataSource = test;


I have my dbContext declared up above, when i try and declare within the method the same error occurs. Here is my radgrid client side code

<telerik:RadGrid ID="radgrdResultDetail" runat="server" AutoGenerateColumns="False"
                   PageSize="20" GridLines="None" Skin="247" EnableEmbeddedSkins="False" AllowPaging="True"
                   CellSpacing="0" AllowSorting="True" OnPreRender="radgrdResultDetail_PreRender"
                   OnItemDataBound="radgrdResultDetail_ItemDataBound" OnNeedDataSource="radgrdResultDetail_GetData"
                   OnItemCommand="radgrdResultDetail_ItemCommand" meta:resourcekey="radgrdResultDetailResource1">
                   <ClientSettings EnablePostBackOnRowClick="false">
                       <Scrolling AllowScroll="false" UseStaticHeaders="true" />
                       <Animation AllowColumnReorderAnimation="True" AllowColumnRevertAnimation="True" />
                   </ClientSettings>
                   <MasterTableView InsertItemPageIndexAction="ShowItemOnFirstPage" EditMode="InPlace"
                       CommandItemDisplay="bottom" DataKeyNames="comment_id" AllowAutomaticInserts="false" AllowAutomaticUpdates="true"
                       runat="server">
                       <PagerStyle AlwaysVisible="true" />
                       <CommandItemSettings ExportToPdfText="Export to Pdf"></CommandItemSettings>
                       <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
                       </RowIndicatorColumn>
                       <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
                       </ExpandCollapseColumn>
                       <Columns>
                       </Columns>
                       <EditFormSettings>
                           <EditColumn UniqueName="EditCommandColumn1" FilterControlAltText="Filter EditCommandColumn1 column">
                           </EditColumn>
                       </EditFormSettings>
                   </MasterTableView>
                   <FilterMenu EnableImageSprites="False">
                   </FilterMenu>
                   <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Hay">
                   </HeaderContextMenu>
               </telerik:RadGrid>

When trying this in a test solution without a telerik grid this works no issues. Are there any specific setting i need to set so this works?
Antonio Stoilkov
Telerik team
 answered on 06 Mar 2012
2 answers
229 views
I would like to display a more info when you hover thumbnail image (products catalog). But for some reason it displays only the TITLE of the product instead the stuff defined there. e.g.

<asp:Image id="imgThumbnail" runat="server" ImageUrl="" />
<telerik:RadToolTip ID="RadToolTip1" runat="server"
                                            Title='<%# Eval("itemSKU") %>'
                                            TargetControlID="imgThumbnail" ToolTip=""
                                            RelativeTo="Element"
                                            Position="BottomRight"
                                            RenderInPageRoot="true"
                                            EnableShadow="true"
                                            Skin="Windows7"
                                            Animation="Fade"
                                            AutoCloseDelay="0"
                                            ShowEvent="OnMouseOver"
                                            HideEvent="LeaveTargetAndToolTip"
                                            ShowDelay="300"
                                            Width="350px"
                                            VisibleOnPageLoad="false">
                        <div style="padding: 10px;">
                            <b>Description:</b><%# Eval("itemDescription") %><br />
                            <b>Category:</b> <%# Eval("categoryName")%>
                            <br /><br />
                        </div>
                    </telerik:RadToolTip>

Am i missing something?
Thanks

Jugoslav
Top achievements
Rank 1
 answered on 06 Mar 2012
1 answer
109 views
How can I access the textbox in button click event?
  <NestedViewTemplate>
      <asp:Button ID="Button1" runat="server" onclick="Button1_Click" />
            <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
</NestedViewTemplate>
Shinu
Top achievements
Rank 2
 answered on 06 Mar 2012
1 answer
109 views
Hi,

I am using radTreeView control.I want to move up and down through the Root,Parent and Child nodes and to expand and collapse the nodes using keyboard ..

Help me..
Thnx in advance..
Princy
Top achievements
Rank 2
 answered on 06 Mar 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?