Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
87 views
I am rewriting a report written using classic ASP. It is laid out using multiple rows for each record.

There is a data field with text commentary in it—too wordy to fit in a single column. (See the attachment)

I'd like to have it on a separate row below the grid row containing the additional data.

Is it possible to do this?

Thanks!
Princy
Top achievements
Rank 2
 answered on 18 Apr 2011
2 answers
117 views
I have 2 combo box's on my page using Load on Demand from Webservices which are working great, but I'm trying to enable "MarkFirstMatch", but if I do that the item isn't being selected, but just the text value is being set.
(if they key down to the value, or select with the mouse it works fine, just not when using mark first).

Result
Selectedindex = -1
SelecteItem = Nothing
Selected Value = ""
text = marked FirstMatch.

While I think i could do a work around and do a reverse lookup if value = "' and text = something, I would like to get it working so I can just reference the selectedvalue.

Thanks in advance for any help you can give.

Combo:

<telerik:RadComboBox ID="rcbInitiated" runat="server" DataTextField="userName" MarkFirstMatch="true"
          DataValueField="eID" EnableLoadOnDemand="true" EnableAutomaticLoadOnDemand="true"
         ShowMoreResultsBox="false" EnableVirtualScrolling="false" OnClientDropDownClosed="OnClientDropDownClosed" EnableItemCaching="true">
        <CollapseAnimation Duration="200" Type="OutQuint" />
        <WebServiceSettings Path="~/ws/wsCFR.asmx" Method="GetEIDUserName" />
</telerik:RadComboBox>

WebService:
<WebMethod()> _
Public Function GetUserIDUserName(ByVal context As RadComboBoxContext) As RadComboBoxData
    Return GetItems(context, "userID")
End Function
Public Function GetItems(ByVal context As RadComboBoxContext, ByVal valueField As String) As RadComboBoxData
    Dim data As DataTable = GetData(context.Text)
    Dim comboData As New RadComboBoxData()
    Dim itemOffset As Integer = context.NumberOfItems
    Dim endOffset As Integer = Math.Min(itemOffset + ItemsPerRequest, data.Rows.Count)
    comboData.EndOfItems = endOffset = data.Rows.Count
    Dim result As New List(Of RadComboBoxItemData)(endOffset - itemOffset)
    For i As Integer = itemOffset To endOffset - 1
        Dim itemData As New RadComboBoxItemData()
        itemData.Text = data.Rows(i)("userName").ToString()
        itemData.Value = data.Rows(i)(valueField).ToString()
        result.Add(itemData)
    Next
    comboData.Message = GetStatusMessage(endOffset, data.Rows.Count)
    comboData.Items = result.ToArray()
    Return comboData
End Function
Byzza
Top achievements
Rank 2
 answered on 18 Apr 2011
3 answers
410 views
I have created Grid dynamically (Simply Grid is defined in .aspx file, columns are bind from code behind., no hard coded column Name) I have Combo Box outside the grid, gird loads with different column as item changes in Combo Box. 

protected

void grdSystemComponents_ItemCreated(object sender, GridItemEventArgs e){
if

(e.Item is GridDataItem && e.Item.IsInEditMode || e.Item is GridFilteringItem)
{
foreach (GridColumn column in e.Item.OwnerTableView.RenderColumns)
{
if ((column is GridBoundColumn) && !((GridBoundColumn)column).ReadOnly)
{
TextBox textBox = null;
if (e.Item is GridDataItem)
{
textBox = ((
TextBox)((GridDataItem)e.Item)[column.UniqueName].Controls[0]);
textBox.Style[
"width"] = "90%";
textBox.Style[
"height"] = "11px";
textBox.Style[
"border"] = "0px";
textBox.Style[
"font-size"] = "11px";
} }

//Each column is assigned UniqueName as ID of respective Column
string
headerID = column.HeaderText;
int count = dtHeaderInfo.Rows.Count;
for (int i = 0; i < count; i++)
{
if (headerID == dtHeaderInfo.Rows[i][0].ToString())
column.UniqueName = dtHeaderInfo.Rows[i][0].ToString();
} } } }

Here are my two Issues:

1) Since Grid is set up this way, I have no idea how to calculate Footer Total for each columns. Number of column changes depending on the selected Item on Combo Box.

2) I also need to update Caluculation as user will enter number on textboxes of the Grid. In the grid, there is a column called "Tot Num", as user enter numbers here I need to update other columns on same row, user can change it but can't exceed value of "Tot Num" column. If "Tot Number" is zero, should not allow to enter number.

I need to have database interaction for calculation? How do I go go to accomplish this? Your help is much appreciated.

thansk
Madhu

chitralekha
Top achievements
Rank 1
 answered on 16 Apr 2011
2 answers
281 views
Hi,

It's the end of a long dev cycle and my brains gone to mush, so I'm sure I am missing something really simple but don't seem to be able to find a solution.

I have some external js for advertising banners like this...
<script type="text/javascript">
var uri = 'http://sampleurl/imp?type(img)g(111)a(222)' + new String(Math.random()).substring(2, 11);
document.write('<a id="a_manuallyadded" href="http://sampleurl/click?p=111&a=222&g=333"
target="_BLANK"><img id="i_manuallyadded" src="'
+ uri + '" border=0></a>');
                    
</script>
...which are located within a RadAjaxPanel.    After an async call the banners disappear, if I wrap them in a RadScriptBlock then after the call the rest of the page disappears and I'm left with the banner.

Unfortunatley due to the layout I can't really not include the banners in the ajax panel.  

Thanks
Rich



ps. Congrats on the new website, so much easier to work with and I think it looks better too.
Richard
Top achievements
Rank 1
 answered on 16 Apr 2011
2 answers
98 views
Hi

Please consider this simple page , Why RadToolTipManager doesn't change the ToolTip

    <form id="form1" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
                <telerik:RadToolTipManager ID="RadToolTipManager1" runat="server" Skin="Hay" Animation="FlyIn">
        </telerik:RadToolTipManager>
        <asp:CheckBox ID="CheckBox1" runat="server" ToolTip="test tooltip" />
    </div>
    </form>

Thanks
reza
Top achievements
Rank 1
 answered on 16 Apr 2011
2 answers
466 views
Dear all,

Hi, i want to put footer in my Radgrid. However, what i done just now is like attachment.
I cant fixed the background of footer.it always out of the masterview and radgrid.
<telerik:RadGrid ID="RadGrid1" GridLines="None" runat="server" AllowAutomaticDeletes="True" FooterStyle-Width="100px"
                ShowFooter="true" OnNeedDataSource="RadGrid1_NeedDataSource" AllowAutomaticInserts="True"
                PageSize="10" AllowAutomaticUpdates="True" AllowPaging="True" AutoGenerateColumns="False"
                OnItemDataBound="RadGrid1_ItemDataBound" DataSourceID="SqlDataSource1" OnItemUpdated="RadGrid1_ItemUpdated"
                AllowFilteringByColumn="true" OnItemDeleted="RadGrid1_ItemDeleted" OnItemInserted="RadGrid1_ItemInserted"
                OnDataBound="RadGrid1_DataBound" ExportSettings-OpenInNewWindow="true" ExportSettings-Pdf-AllowPrinting="true"
                OnItemCreated="RadGrid1_ItemCreated" ExportSettings-Pdf-PageTitle="Financial Record"
                Skin="Hay">
                <PagerStyle Mode="NextPrevAndNumeric" />
<ExportSettings OpenInNewWindow="True">
<Pdf PageTitle="Financial Record"></Pdf>
</ExportSettings>
  
                <MasterTableView Width="950px" CommandItemDisplay="TopAndBottom" DataKeyNames="BudgetId" 
                    EditMode="EditForms" CommandItemSettings-AddNewRecordText="Add New Record" DataSourceID="SqlDataSource1"
                    HorizontalAlign="NotSet" AutoGenerateColumns="False">
<CommandItemSettings AddNewRecordText="Add New Record"></CommandItemSettings>
                    <Columns>
                    <%--footer--%>
                     <telerik:GridTemplateColumn UniqueName="footer1" DataField="footer1" ColumnEditorID="footerEditor" >
                            <ItemTemplate>
                            </ItemTemplate>
                            <HeaderStyle Width="950px" />
                            <ItemStyle Width="950px"  />
                            <FooterStyle Width="950px" />
                            <FooterTemplate>
                            <h3><asp:Label runat="server" ID="lblBudgetSummary" >Budget Summary</asp:Label></h3>
                            <table width="400px;">
                            <tr><td width="200px">Total</td><td width="200px"> <asp:Label ID="lblTotal" runat="server" Text='<%# Bind("Total2", "{0:F2}") %>'></asp:Label></td></tr>
                               <tr><td>Food</td><td><asp:Label ID="lblFood" runat="server" Text='<%# Bind("Total2", "{0:F2}") %>'></asp:Label></td></tr>
                                  <tr><td>Transport</td><td> <asp:Label ID="lblTransport" runat="server"></asp:Label></td></tr>
                                     <tr><td>Communication</td><td><asp:Label ID="lblCommunication" runat="server"></asp:Label></td></tr>
                                        <tr><td>Residence</td><td><asp:Label ID="lblResidence" runat="server"></asp:Label></td></tr>
                                           <tr><td>Clothing</td><td><asp:Label ID="lblClothing" runat="server"></asp:Label></td></tr>
                                              <tr><td>Health</td><td><asp:Label ID="lblHealth" runat="server"></asp:Label></td></tr>
                                                 <tr><td>Insurance</td><td> <asp:Label ID="lblInsurance" runat="server"></asp:Label></td></tr>
                                                    <tr><td>Leisure</td><td><asp:Label ID="lblLeisure" runat="server"></asp:Label></td></tr>
                                                       <tr><td>Education</td><td><asp:Label ID="lblEducation" runat="server"></asp:Label></td></tr>
                                                          <tr><td>Other</td><td><asp:Label ID="lblOther" runat="server"></asp:Label></td></tr>
                              
                              
                            </table>
                            </FooterTemplate>
                        </telerik:GridTemplateColumn>
                      <%--edit button--%>
                        <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn" >
                        </telerik:GridEditCommandColumn>
                        <%--User ID (Visible)--%>
                       <%-- <telerik:GridBoundColumn DataField="UserId" HeaderText="UserId" SortExpression="UserId" Visible="false"
                            UniqueName="UserId" >
                        </telerik:GridBoundColumn>--%>
                        <%--Budget ID (visible) --%>
                       <%-- <telerik:GridBoundColumn DataField="BudgetId" HeaderText="BudgetId" SortExpression="BudgetId" Visible="false"
                            UniqueName="BudgetId" >
                        </telerik:GridBoundColumn>--%>
                        <%--Create Date --%>
                        <telerik:GridDateTimeColumn DataField="CreateDate" HeaderText="Date Added" SortExpression="CreateDate" ColumnEditorID="dtCreateDate"
                            MinDate="01/01/2011" HtmlEncode="false" UniqueName="CreateDate" DataType="System.DateTime"
                            DataFormatString="{0:dd/MMM/ yyyy}">
                            <HeaderStyle Font-Size="12px" />
                            <ItemStyle Font-Size="11px" />
                        </telerik:GridDateTimeColumn>
                        <%--category ID--%>
                        <telerik:GridDropDownColumn DataField="CategoryId" DropDownControlType="RadComboBox" 
                            HeaderText="Category" ListTextField="CategoryType" ListValueField="CategoryId"
                            UniqueName="CategoryId" DataSourceID="SqlDataSource2">
                        </telerik:GridDropDownColumn>
                        <%--record title--%>
                        <telerik:GridBoundColumn DataField="Description" HeaderText="Description" SortExpression="Description"
                            UniqueName="Description" EditFormColumnIndex="1" ColumnEditorID="GridTextBoxColumnEditor1">
                        </telerik:GridBoundColumn>
                        <%--Amount--%>
                        <telerik:GridNumericColumn DataField="Amount" HeaderText="Amount" SortExpression="Amount"
                            DataFormatString="{0:C}" UniqueName="Amount" EditFormColumnIndex="1" ColumnEditorID="GridTextBoxColumnEditor3">
                        </telerik:GridNumericColumn>
                        <%--Carry forward--%>
                        <telerik:GridCheckBoxColumn DataField="CarryForward" HeaderText="Carry Forward" SortExpression="CarryForward" ColumnEditorID="chkCarryForward"
                            UniqueName="CarryForward" EditFormColumnIndex="1">
                        </telerik:GridCheckBoxColumn>
                        <%--delete row data popup--%>
                        <telerik:GridButtonColumn ConfirmText="Delete this account?" ConfirmDialogType="RadWindow" 
                            ConfirmTitle="Delete" ButtonType="ImageButton" CommandName="Delete" Text="Delete"
                            UniqueName="DeleteColumn">
                            <ItemStyle HorizontalAlign="Center" />
                        </telerik:GridButtonColumn>
                         
                    </Columns>
                    <%--Account Name Edit Form Settings--%>
                    <EditFormSettings ColumnNumber="1" CaptionDataField="RecordId" CaptionFormatString="Edit properties of Account {0}">
                        <FormTableItemStyle Wrap="False"></FormTableItemStyle>
                        <FormCaptionStyle></FormCaptionStyle>
                        <FormMainTableStyle GridLines="None" CellSpacing="0" CellPadding="3" BackColor="White"
                            Width="100%" />
                        <FormTableStyle CellSpacing="0" CellPadding="2" Height="110px" BackColor="White" />
                        <FormTableAlternatingItemStyle Wrap="False"></FormTableAlternatingItemStyle>
                        <EditColumn ButtonType="ImageButton" InsertText="Insert Order" UpdateText="Update record"
                            UniqueName="EditCommandColumn1" CancelText="Cancel edit">
                        </EditColumn>
                        <FormTableButtonRowStyle HorizontalAlign="Right"></FormTableButtonRowStyle>
                    </EditFormSettings>
                </MasterTableView>
                <ClientSettings>
                    <ClientEvents OnRowDblClick="RowDblClick" />
                </ClientSettings>
            </telerik:RadGrid>
protected void RadGrid1_ItemCreated(object sender, GridItemEventArgs e)
   {
       if (e.Item is GridEditableItem && e.Item.IsInEditMode)//Check for Edit mode. Here its InPlace.
       {
           GridEditableItem editItem = (GridEditableItem)e.Item;
           RadComboBox combo = (RadComboBox)editItem["CategoryId"].Controls[0];
           combo.AllowCustomText = true;
           combo.EmptyMessage = "=Select=";
       }
       if (e.Item is GridFooterItem)
       {
           GridFooterItem footer = ((GridFooterItem)e.Item);
           int index = RadGrid1.Columns.Count;
           footer["footer1"].ColumnSpan = 8;
          // footer["footer1"].Width = 10;
       }
How can i solve this problem?

Any help is appreciated.
Thank you.

regards,
Nasri
Arteta Sam
Top achievements
Rank 1
 answered on 16 Apr 2011
3 answers
153 views
Hi,

In our project, RibbonGroup will be designed to disappeared or only one RibbonGroup in per RibbonTab. But we found RibbonGroup cannot be reset height and width, even the width is set upper limit if it have many RibbonButton. So my question is how can reset RibbonGroup width and height?
Simon
Telerik team
 answered on 16 Apr 2011
1 answer
163 views
Hello,

My project team is using the RadComboBox control from the 2009 set of controls. Our application is required to be Section 508 Compliant. I have read in the 2010 Q3 SP2 Release Notes that you have added the property "EnableAriaSupport" to this control which I know has been added for other controls like the TreeView and makes them more screen-reader accessible. I cannot however find any documentation about what this property does specifically for the RadComboBox (like at: http://blogs.telerik.com/blogs/posts/10-06-29/radtreeview_now_supports_wai-aria.aspx).

Could you please direct me to detailed documentation about how this property will make the RadComboBox more screen reader accessible?

Thanks!

Lauren
Simon
Telerik team
 answered on 16 Apr 2011
3 answers
133 views
I have a radgrid and the datasource for it is a table consisting of 10,000 rows.  When I try to export this file to excel using the RadGrid ExportToExcel() method I get a system out of memory error.  Is there anyway to prevent this from happening.
Daniel
Telerik team
 answered on 15 Apr 2011
8 answers
156 views
Hi:

I have a rad editor in a user control, the user control inside of an Update Panel on a Jquery UI Dialog, but when I call the ExportToPdf method nothing happens and the Content of the rad editor goes away. When I remove the Juery Dialog and the Update Panel the Export Facility works as expected.

Any Sugestions?

Thanks in advance.

My Code is as follows:

<div id="dvPopUp" title="PopUp" style="display:none;">
        <asp:UpdatePanel runat="server" ID="upLetter" UpdateMode="Conditional">
            <ContentTemplate>
                <User Control with Rad Editor/>               
            </ContentTemplate>
        </asp:UpdatePanel>
</
div>
Junbin
Top achievements
Rank 1
 answered on 15 Apr 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?