Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
729 views
How to change the radgrid row  - dataitem forecolor accoring to the value of a column.
For example: I have a column with name "type" in my radgrid.
if type column has value "o" - I want to set the entire row forecolor to blue
if type column has value "p" - I want to set the entire row forecolor to green

Please let me know how to do this.


Thanks

Shiza
Dimo
Telerik team
 answered on 09 Mar 2010
2 answers
119 views
Dear all,
I have just bough the whole package of telerik and I think they should be good to go in my project :)

My question is, in asp.net treeview control, there is a property call "NavigateUrl" and if u click on it, it will redirect to another page with whole page refresh, and then the state of treeview is clean.I know the answer is the new page is a link, so it would be considered as a new page. How does this radcontrol to handle this saturation? Such as saving the treeview state, and click on the node with no refreshing...I know there is multipage of radcontrol, but I think that will be preloaded all of my pages in multopage, so it will slow down the process...

Please advice, thx.

Best regards,
Stephen
robertw102
Top achievements
Rank 1
 answered on 09 Mar 2010
3 answers
129 views
I have a combo box.
Almost 500 rows is bind to the combo at run time.
<telerik:RadComboBox ID="RadComboBox_SchoolName_Search" runat="server" Skin="Default" 
                        Width="575px" Font-Names="Arial" HighlightTemplatedItems="true" MarkFirstMatch="true" 
                        AutoPostBack="true" EnableTextSelection="true" EnableItemCaching="true"> 
                        <HeaderTemplate> 
                            <table style="text-align: left; width: 575px"> 
                                <tr> 
                                    <td style="width: 400px; font-weight: bold;"> 
                                        School Name 
                                    </td> 
                                    <td style="width: 175px; font-weight: bold;"> 
                                        State 
                                    </td> 
                                </tr> 
                            </table> 
                        </HeaderTemplate> 
                        <ItemTemplate> 
                            <table style="width: 630px; text-align: left"> 
                                <tr> 
                                    <td style="width: 430px;"> 
                                        <%# DataBinder.Eval(Container.DataItem, "SchoolName")%> 
                                    </td> 
                                    <td style="width: 200px;"> 
                                        <%# DataBinder.Eval(Container.DataItem, "State")%> 
                                    </td> 
                                </tr> 
                            </table> 
                        </ItemTemplate> 
  <CollapseAnimation Duration="200" Type="None" /> 
                    </telerik:RadComboBox> 
and bind using
 private void Populate_RadComboBox_SchoolName_Search() 
    { 
        DataTable _SchoolwithState = new DataTable(); 
        _SchoolwithState.Clear(); 
        RadComboBox_SchoolName_Search.Items.Clear(); 
        _SchoolwithState = objLookup.Populate_SchoolwithStatename(); 
        if (_SchoolwithState.Rows.Count > 0) 
        { 
            if (_SchoolwithState.Rows.Count > 15) 
            { 
                RadComboBox_SchoolName_Search.Height = 410; 
            } 
 
            RadComboBox_SchoolName_Search.DataSource = _SchoolwithState; 
            RadComboBox_SchoolName_Search.DataTextField = "SchoolName"; 
            RadComboBox_SchoolName_Search.DataValueField = "SchoolID"; 
            RadComboBox_SchoolName_Search.DataBind(); 
        } 
        RadComboBox_SchoolName_Search.Items.Insert(0, new RadComboBoxItem("---Search Students by School Name---")); 
    } 
At run time, I have to wait for a long time to load the drop down after clicking the arrow.
Is there any other methods to make it fast.
Please help.








Kamen Bundev
Telerik team
 answered on 09 Mar 2010
1 answer
82 views
Hi,

I have many problems to fix this scenario. I need to use one radUploader usercontrol loaded in one ajax multipanel but i can't loaded my files. I have used the conditionalPostback registred from loaded usercontrols to stop ajax refreshing or created a realPostBack in page and registred in page-Load of Loaded usercontrol but still not working.

Use the wizard sample of demo of RadTabs and loading one RadUploader control
<telerik:RadAjaxLoadingPanel  runat="server" ID="LoadingPanel1" IsSticky="true"> 
    </telerik:RadAjaxLoadingPanel>         
    <telerik:RadAjaxPanel runat="server" ID="RadAjaxPanel1" LoadingPanelID="LoadingPanel1" > 
            <telerik:RadComboBox  runat="server" ID="RadComboTipo" Skin="Vista"  AutoPostBack="true" Width="200px" 
             OnSelectedIndexChanged="RadComboBox1_SelectedIndexChanged"  > 
                            <Items> 
                                <telerik:RadComboBoxItem Text="Select" Value="-1" Selected="true"></telerik:RadComboBoxItem> 
                                <telerik:RadComboBoxItem Text="Case1" Value="1" ></telerik:RadComboBoxItem> 
                            </Items> 
            </telerik:RadComboBox> 
            <div style="height:33px;"></div> 
            <telerik:RadTabStrip ID="RadTabStrip1" SelectedIndex="0" runat="server" MultiPageID="RadMultiPage1" 
                Skin="Default" CssClass="tabStrip"> 
            </telerik:RadTabStrip> 
            <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0" OnPageViewCreated="RadMultiPage1_PageViewCreated" CssClass="multiPage"> 
            </telerik:RadMultiPage> 
    </telerik:RadAjaxPanel> 

The LoadedControl in pageView use RadUploader and  page load to register realPostBack and stop the ajax event.

bool isOnClickAttached = false; 
        IEnumerator keys = this.buttonSubmit.Attributes.Keys.GetEnumerator(); 
        while (keys.MoveNext()) 
        { 
            if (keys.Current.Equals("onClick")) 
            { 
                isOnClickAttached = true; 
                break; 
            } 
        } 
        if (!isOnClickAttached) 
            this.buttonSubmit.Attributes.Add("onClick", string.Format("realPostBack('{0}', ''); return false;", this.buttonSubmit.UniqueID));  
 
This realpostback is firing but no upload is performed.

Use one ClientEvents-OnRequestStart="conditionalPostback" in RadAjaxPanel1 is not possible in this scenario where controls are loaded in the panel.

The object is one Ajax RadTab and one RadUpload control loaded inside and fonctional. Some suggestions. Thanks.
Genady Sergeev
Telerik team
 answered on 09 Mar 2010
1 answer
288 views
Hi

I have a classig many2many relationship...

Order
Order2Item
Items

I need my grid to display orders, but i also want all items in an Order to be shown in the mastergrid. I figured i would use a listbox but i cant seem to find an example how this is done. Any suggestions?
Schlurk
Top achievements
Rank 2
 answered on 09 Mar 2010
1 answer
70 views
When I set the column width with HeaderStyle property with the below statement, the columns are rendered 200 pixels with IE8, Firefox, Opera and Safari but 216 pixels with IE7. I am using 2009 Q2 SP2 and I am using WebBlue skin.

<HeaderStyle Width="200px" />

If you check column width of the below radgrid example first with IE8 and than with IE7 compatibility view you'll see what I mean.

http://demos.telerik.com/aspnet-ajax/grid/examples/client/scrolling/defaultcs.aspx

Thank you...
Dimo
Telerik team
 answered on 09 Mar 2010
1 answer
146 views
How do you answer the question - why does controls like an Text box generate (such horrible html) of tables instead of a <input text box.
Its no good saying cos it can connect to a WCF source or do google style predictive searches.
What we have done is to have a designer is to look at the rendered HTML+css and then alter the .ri classes.
I know I could use the form decorator for some but there seems to be a lack of understanding of the benefit of using say the RadInput controls.
The most irritating is to create a search text box with a seprate button, or a input box with error icons next to it or a checkbox with label centered and error icon (eg you must tick the T&Cs) all in a line, eg text-align.
The bit about internationalization or accessiblity its stony ground.

What can you suggest?
Dimo
Telerik team
 answered on 09 Mar 2010
1 answer
156 views
Hello,
how can i serialize a RadTreeNode on server-side to JSON? On client side there is a method toJsonString() but on server-side this function is missing.

with best regards
Meik Napierski
Dimitar Milushev
Telerik team
 answered on 09 Mar 2010
9 answers
442 views
My situation is that I want the time of the DateTimePicker can be filled with 23:59 when the user only use the popup calendar to select a date but haven't selected the time in the TimeView. And the user can also type in the datetime in the textbox to change the value, but in this case won't fill in 23:59. Can anyone have any solution? Thanks.
Pavlina
Telerik team
 answered on 09 Mar 2010
5 answers
247 views
Hi,
      I am using NestedGrid, i have parent grid and it has the nested grid that is child grid. Both grid has the functionality of editing with EditPopup window. I used the "PopUpShowing"  event commonly for both grid in order to place the Popup in center. I used the DIV elements to place and bind the controls inside the EditFormTemplate section

My question is when the PopUp is showing once edit button is clicked  I just want to get the DIV prperties of EditFormTemplate section of the corresponding PopUp window regardless parent or nested grid.

My purpose is the setting the PopUp height and width dynamically based on the container or DIV height and width. Because I already told the DIV used the place the controls, the DIV has its width and height property.So i just want to take this width and height values for dynamic operation

So is there any possible ways please let me know.

-Thanks in Advance
John John
Top achievements
Rank 1
 answered on 09 Mar 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?