Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
107 views
I am using a RadGrid where I have 3 columns. The first is a GridBoundColumn and the last 2 are GridTemplateColumns with ItemTemplates. When my grid paints, I get one font size for the BoundColumn and a much larger font size for the TemplateColumns?

I have tried using a CSS on them but it seems to mess up the way the grid lines look for the header and such and even used the HeaderStyle-FontSize property, which it seems to ignore.

Anyone know how to handle this?

thanks, Jay
Dimo
Telerik team
 answered on 09 Apr 2010
3 answers
101 views
Hi,
I have a usercontrol that contain RadGrid. This usercontrol will be use though out the application because i load the column and datasource on the grid dynamically.
The error start when i have a page(.aspx file that use master template) that contain two usercontrol."Only one instance of a RadAjaxManager can be added to the page! "
I already try to put this RadAjaxManager into Master Template but seem not working.

May i know the proper way to add this "RadGrid in UserControl" into RadAjaxManager in a master template?

Thanks
Iana Tsolova
Telerik team
 answered on 09 Apr 2010
1 answer
118 views
I have a column with a footer that has a label
I also have a button in the commanditemtemplate that has a onClick event which updates the values in the RadNumericTextbox and need to sum the total in the uxTotalAdjustedProfit label.
How do I access that control? I tried uxRadGrid.MasterTableView.FindControl (didnt work...) or there is no get footercontrol etc...

                        <telerik:GridTemplateColumn AllowFiltering="False" Groupable="False" HeaderText="Adjusted Profit" 
                            UniqueName="AdjustedProfit">  
                            <ItemTemplate> 
                                <telerik:RadNumericTextBox ID="uxAdjustedProfit" runat="server" MaxLength="6" MinValue="0" Enabled="false" 
                                    Width="45px" Font-Size="11px" ForeColor="#773A0D" Value='<%# Convert.ToInt32(Eval("Quantity")) * Convert.ToDecimal(Eval("AdjustedProfit")) %>'>  
                                </telerik:RadNumericTextBox> 
                            </ItemTemplate> 
                            <FooterTemplate> 
                                <b> 
                                    <asp:Label ID="uxTotalAdjustedProfit" runat="server"></asp:Label></b>  
                            </FooterTemplate> 
                        </telerik:GridTemplateColumn> 
Shinu
Top achievements
Rank 2
 answered on 09 Apr 2010
3 answers
281 views
Hello,

I need to create a Gantt chart for project management, on an ASP page: on X axis I need Date and on Y axis a list of projects. It should look similar to a MS Project Gantt chart.
I looked in the documentation but the Gantt chart example does not contain code samples demonstrating how to achieve this.
Can you please provide a sample project?

I am using the latest Telerik ASP.NET AJAX Q1 2010

Regards,
M. Rusu

Ves
Telerik team
 answered on 09 Apr 2010
1 answer
122 views
Hi

Before I make a workaround is there any way(via properties) that I can disable the user deselecting the current active row?
I only want a row to deselect if they choose another row. 

If not, I am going to disable the row deselect via onRowDeselecting using set_cancel, and deselect a row by via onRowSelecting of another row(using a flag of some kind). 

Does this seem like a viable solution?

Chris
Tsvetoslav
Telerik team
 answered on 09 Apr 2010
1 answer
80 views
Hi,

I am using RADTooltip in my application.
My requirement is to display the tooltip below the text.
This works fine for first two elements as there is no space above the text.
But the same is displayed above the text.

I kept the Position="TopCenter".
But when i keep the Position="BottomCenter", the tooltip is shown something wrongly.

Kindly suggest some solutions.

Also, find the screenshot for reference.

Thanks in Advance,
Vinoth.K
Vinoth K
Top achievements
Rank 1
 answered on 09 Apr 2010
12 answers
328 views
Hello, I'm using the ASP.NET AJAX controls version 2009.2.826.35.
1) I want to have a radcombo filled with a radgrid (with ID, Title columns). On making a selection from the radgrid the Title shold be selected in the radcombo.
2) Also I'll need to set the visibility of certain panels to true/false, populate another dropdownlist, etc.... based on the selection made.

Using the examples provided I was able to achive what is mentioned under (1)
However the selected value is showed in the radcombo only when there is no postback. If I do a postback (for example if autopostback is set to true for radcombo, or else EnablePostBackOnRowClick="true") the selected Title value is not showed in the radcombo.

How can I retain the selection on postback and how can I hadle the serverside events followed after the selection is made from the grid.

Find below the source. Please note the radgrid is loaded with data from simple datasource. There is no searching involved (like I've seen on one of the examples). Users are not allowed to type in radcombo hence AllowCustomText = "false"

Any solutions?

<telerik:RadCodeBlock ID="rcb1" runat="server">  
            <script type="text/javascript">                   
 
                function RowSelected(sender, args) {  
                    var selectedText = args.getDataKeyValue("Title");  
                    var selectedValue = args.getDataKeyValue("ID");  
 
                    var combo = $find('<%= trcJobList.ClientID %>');  
 
                    if (selectedValue.length > 0) {  
                        combo.trackChanges();  
                        combo.set_text(selectedText);  
                        combo.get_items().getItem(0).set_text = selectedText;  
                        combo.get_items().getItem(0).set_value(selectedValue);  
                        combo.commitChanges();  
                        combo.hideDropDown();  
                    }  
                }     
 
               </script>       
</telerik:RadCodeBlock> 

<telerik:RadComboBox ID="trcJobList" Width="210px" runat="server" MarkFirstMatch="false" AllowCustomText="false" Skin="Telerik" ExpandAnimation-Type="None" CollapseAnimation-Type="None">  
                                    <ItemTemplate> 
                                        <telerik:RadGrid OnItemCommand="trgJobList_ItemCommand" id="trgJobList" Width="200px" runat="server" Skin="Telerik" OnNeedDataSource="trgJobList_NeedDataSource">  
                                            <MasterTableView NoMasterRecordsText="" AutoGenerateColumns="false" DataKeyNames="ID, Title" Width="190px" ClientDataKeyNames="ID, Title" TableLayout="Fixed">  
                                                <Columns> 
                                                    <telerik:GridBoundColumn  
                                                       HeaderText="ID" 
                                                       DataField="ID" 
                                                       UniqueName="ID">  
                                                       <HeaderStyle Width="30px" /> 
                                                     </telerik:GridBoundColumn> 
                                                     <telerik:GridBoundColumn  
                                                       HeaderText="Title" 
                                                       DataField="Title" 
                                                       UniqueName="Title">  
                                                       <HeaderStyle Width="100px" /> 
                                                     </telerik:GridBoundColumn> 
                                                </Columns> 
                                            </MasterTableView> 
                                            <ClientSettings EnablePostBackOnRowClick="true">     
                                            <Selecting AllowRowSelect="true" />                                           
                                            <ClientEvents OnRowSelected="RowSelected"/>  
                                            <Scrolling  
                                             AllowScroll="true" 
                                             UseStaticHeaders="true" 
                                             ScrollHeight="150px" /> 
                                            </ClientSettings> 
                                        </telerik:RadGrid> 
                                    </ItemTemplate> 
                                    <Items> 
                                        <telerik:RadComboBoxItem runat="server" Text=" "></telerik:RadComboBoxItem> 
                                    </Items> 
</telerik:RadComboBox> 
prashanth_t
Top achievements
Rank 1
 answered on 09 Apr 2010
2 answers
140 views
want to have "currentpage/total page" to be displayed, instead of "Items current to currentend of total record" or RadDataPagerGoToPageField which shows a button
James Shelton Agar
Top achievements
Rank 2
 answered on 09 Apr 2010
1 answer
297 views
Dear Sir,
               Now i am need to import a csv file's data, into the radgrid... please help for this query.,

then another one is, i wanna to import the field name in the radgrid's column one by one.,

reply both the queries...

Regards

S Suriya Narayanan
Jim
Top achievements
Rank 1
 answered on 08 Apr 2010
4 answers
174 views
Hi,

I am having problems setting the upload size in my image manager.  I have the following code

<telerik:RadEditor ID="radTextEditor" runat="Server"  EnableResize="False" 
    ToolsFile="~/assets/editorToolbar/body.xml" SpellCheckSettings-DictionaryLanguage="en-GB"
    <CssFiles> 
        <telerik:EditorCssFile Value="~/css/shared/radEditor.css" /> 
    </CssFiles> 
    <ImageManager SearchPatterns="*.jpg,*.jpeg,*.gif,*.png" MaxUploadFileSize="512000" /> 
    <Content> 
    </Content> 
</telerik:RadEditor> 

I still see the following when i load my image manager

Max file size allowed:200.00 KB
File extensions allowed:*.*
greenmodulus
Top achievements
Rank 1
 answered on 08 Apr 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?