Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
89 views

Hi all,

I am using rad editor with a dynamic dropdown.

While adding several values from dropdown, sometimes it starts placing newly added values in start of the editor (Control moves to beginning of the document automatically), instead of where the cursor was previously set.

Can anybody suggests, how to get rid of this?

Regards,

Yasir

Yasar
Top achievements
Rank 1
 answered on 29 May 2009
1 answer
185 views
Hi,

Please check the following link:


I need to remove the frame scroll bars and when a user clicks on the filter icon just after "Action" column and enable columns, it should get width of their page and they should get the main horizontal bar of the browser and not like frame.

I am getting the following issues in Mac OS safari:

1)  Even if I don't have the columns ticked in hide/show columns filter, it is showing me all the columns


2) This is the hide/show column. Still I am getting all the columns


3) When I untick all the columns in hide/show columns, I am still getting all the columns:



4) When I click on something, then I get the following:


Please help!

Thanks,
Dhananjay
Tsvetie
Telerik team
 answered on 29 May 2009
5 answers
191 views
I'm running into an odd viewstate error. The official error I'm getting is "The state information is invalid for this page and might be corrupted."

Here's how to reproduce. Create two pages. Mine both used a master page but I don't think that matters in this case. The first page simply needs a link to the second page. On the second page, add a RadGrid and RadAjaxManager like so:

    <telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False" 
        GridLines="Horizontal" 
        OnNeedDataSource="RadGrid1_NeedDataSource" 
        AllowAutomaticDeletes="True" AllowAutomaticInserts="True" AllowAutomaticUpdates="True" > 
        <MasterTableView DataKeyNames="Key" EditMode="InPlace" CommandItemDisplay="Top"
            <Columns> 
                <telerik:GridEditCommandColumn> 
                </telerik:GridEditCommandColumn> 
                 
                <telerik:GridBoundColumn DataField="Name"
                </telerik:GridBoundColumn> 
            </Columns> 
        </MasterTableView> 
    </telerik:RadGrid> 
     
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"
        <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="RadGrid1"
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="GridLoadingPanel" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
        </AjaxSettings> 
    </telerik:RadAjaxManager> 
     
    <telerik:RadAjaxLoadingPanel ID="GridLoadingPanel" runat="server" Transparency="30"
        <img alt="Loading..." 
            style="margin-top: 100px; border-width: 0px;"  
            src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>' /> 
    </telerik:RadAjaxLoadingPanel> 

In my case, the grid's data source in the NeedDataSource event is a custom collection of "Foo" items which look like:

    public class Foo 
    { 
        #region public string Key 
        private string _key; 
        public string Key 
        { 
            get { return _key; } 
            set { _key = value; } 
        } 
        #endregion 
        #region public string Name 
        private string _name; 
        public string Name 
        { 
            get { return _name; } 
            set { _name = value; } 
        } 
        #endregion 
    } 
 


To reproduce the problem do the following:
1. Go to your first page and use your link to navigate to the second page.
2. Click the "Add" button on the grid.
3. Hit the (evil) Back button on your browser.
4. Hit the (more evil) Forward button on your browser.
5. Click the "Add" button again.

If I disable ViewState MAC checking, I get an Invalid ViewState error.

Is there a fix for this other than user education?
Sebastian
Telerik team
 answered on 29 May 2009
3 answers
426 views
One of the pages that I have uses a Rad Color Picker inside of a modal popup.  When we upgraded our project to Q1 2009 of the ASP .NET AJAX suite, I noticed this page suddenly exhibited odd behavior.

When the modal popup appeared with the color picker on it, the color picker UI was completely messed up.  All the color rendered in one column down the page, the text boxes were on either side of the column along with the 'no color' button.

I finally realized that if I removed the 'display:none' attribute from the Panel being targetted by the Modal Popup Extender in the AJAX toolkit, the problem went away. 

Here is the code I used to display the issue:

    <asp:Button ID="btnShowModal" runat="server" Text="Show Modal Popup" /> 
   
    <asp:Panel ID="pnlModal" runat="server" CssClass="modalpopup" style="width:450px;display:none;"
        <div style="margin-top:5px;"
            <telerik:RadColorPicker ID="RadColorPicker1" runat="server" style="margin-left:5px;"></telerik:RadColorPicker> 
        </div> 
    </asp:Panel>                   
     
    <ajaxToolkit:ModalPopupExtender ID="ModalPopup1" runat="server" TargetControlID="btnShowModal" PopupControlID="pnlModal"  
                                        X="200" Y="250"></ajaxToolkit:ModalPopupExtender> 

The panel I refer to is "pnlModal".  The code above should display the odd behavior I described above.  But, once you remove the 'display:none' attribute from the style tag of "pnlModal" the problem is resolved.

Any reason this should occur changing from the Q4 2008 release to the Q1 2009 release?
Tsvetie
Telerik team
 answered on 29 May 2009
6 answers
136 views
Hi all,

I´m having some problems checking nodes of my RTV. My RTV has tri-state check boxs. Programatically I search for some nodes, using FindNodeByValue(number_of_my_node), and then if i'ts not null, set the node.Checked property to true.

This works well for all nodes (node is show checked) except that ones that has children, but no one children is checked. In this case, the node it's shown unchecked, but if you get all checked values using CheckedNodes, the number_of_my_node is returned correctly.

Can anyone help me with this issue.

Thanks.

Fer.


Atanas Korchev
Telerik team
 answered on 29 May 2009
3 answers
164 views

Hi,
     I am filtering My grid with dropdownlist. It is working fine. but while i am using Itemtemplate in MyCustomeFilteringColumn
getting Parser Error Message: Type 'FilteringTemplateColumns.MyCustomFilteringColumnVB' does not have a public property named 'itemtemplate'.
Please help me out.

Thanks & Regards,
Pravat Sharma

<custom:MyCustomFilteringColumnVB DataField="Country" FilterControlWidth="180px" HeaderText="Custom TemplateColumn Country">
 <headerstyle width="25%" />
      <itemtemplate>

          <asp:LinkButton ID="lnkProducts" runat="server" ForeColor="black"
           CommandArgument='<%# DataBinder.Eval(Container.DataItem, "ContentID") %>'
                Font-Underline="false" CssClass="labelText" CommandName="Select">
                <%#DataBinder.Eval(Container.DataItem, "Title")%>
          </asp:LinkButton>                       
      </ItemTemplate>                      

</custom:MyCustomFilteringColumnVB>

Rosen
Telerik team
 answered on 29 May 2009
1 answer
60 views
I would like to know how I can show the child items from a class in the same row as the parent object.

Take this for example:
I fill up the radgrid by binding the grid to a datasource which is a list of Owner items.
Each owner item has a list containing 2 pet items.

How do I show these in the same row in the grid?
eg: column1 show the name of the owner, column 2 shows the name of the first pet ( =list[0].petname) and column 3 shows the name of the second pet ( =list[1].petname). I don't enable viewstate because it needs to get bound each time.

at the moment i have something like the following:

<

 

telerik:RadPageView ID="rpvOwnerAndPets" runat="server">
<telerik:RadGrid ID="rgOwnerAndPets" runat="server" OnNeedDataSource="rgOwnerAndPets_NeedDataSource"

 

 

GridLines="None" BorderWidth="0px" CellPadding="0" ShowHeader="False" OnItemCommand="rgOwnerAndPets_ItemCommand"

 

 

AllowMultiRowEdit="True" OnItemCreated="rgOwnerAndPets_ItemCreated">

 

 

<MasterTableView Width="100%" AllowMultiColumnSorting="false" EditMode="InPlace">

 

 

<ItemTemplate>

 

 

<asp:HiddenField ID="hfOwnerName" runat="server" Value='<%# Bind("OwnerName") %>' />

 

 

<asp:HiddenField ID="hfPetName1" runat="server" Value='<%# Bind("Pets[0].OwnerName") %>' />

 

 

<asp:HiddenField ID="hfPetName1" runat="server" Value='<%# Bind("Pets[1].OwnerName") %>' />
...

Could someone help me out?

Grts!

 

Nikolay Rusev
Telerik team
 answered on 29 May 2009
1 answer
64 views
I'm using a RadGrid with MasterTableView and the following GridButtonColumn to delete records in the Grid:

 

<telerik:GridButtonColumn
ButtonType="ImageButton"
CommandName="Delete"
Text="Delete"
UniqueName="DeleteColumn"
ConfirmDialogType="RadWindow"
ConfirmText="Are you sure?"
ConfirmTitle="Delete Record">
<
ItemStyle HorizontalAlign="Center" CssClass="MyImageButton" />
</telerik:GridButtonColumn>

 

 

The aspx page with the RadGrid is actually a Content page (partial class), using the Master / Content construct in ASP.NET.  I have a RadAjaxManager on the Master and a RadAjaxManagerProxy on the Content page.  The Delete button in the grid eventually times out and is throwing the following error:

"Microsoft JScript runtime error: Out of stack space"

If I set the ConfirmDialogType back to "Classic", all is fine and the RadGrid's OnDeleteCommand event fires as expected.  Any ideas how to get the "RadWindow" ConfirmDialogType to work correctly?  I think this control may be having trouble using the AjaxManagerProxy to find the true AjaxManager on the Master page...I'll appreciate any help.

 

 

 

 

 

Tsvetoslav
Telerik team
 answered on 29 May 2009
2 answers
142 views

Here is the Peace of code which I am using…

<telerik:RadComboBox ID="rcRFQRef" runat="server" Height="190px" Width="153px" HighlightTemplatedItems="true" MarkFirstMatch="true" EnableLoadOnDemand="true" DataTextField="RFQNo" DataValueField="RFQNo" DropDownWidth="420" OnPreRender="rcRFQRef_PreRender" CssClass="RadComboBox_Default" AutoPostBack="True" OnSelectedIndexChanged="rcRFQRef_SelectedIndexChanged" onitemcreated="rcRFQRef_ItemCreated" onitemdatabound="rcRFQRef_ItemDataBound">

<HeaderTemplate>

 <table style="width: 200px" cellspacing="0" cellpadding="0">

  <tr>

<td style="width: 150px;"> Agent Name</td>

<td style="width: 150px;"> RFQ No</td>

</tr>

</table>

</HeaderTemplate>

<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>

<ItemTemplate>

<table style="width: 350px" cellspacing="0" cellpadding="0">

<tr>

<td style="width: 150px;">

 <div><%# DataBinder.Eval(Container.DataItem, "Agent_Name")%>

</div>

</td>

<td style="width: 150px;">

 <div>

<%# DataBinder.Eval(Container.DataItem, "RFQNo")%>

</div></td>

</tr>

</table>

</ItemTemplate>

</telerik:RadComboBox>

In the “rcRFQRef_SelectedIndexChanged” Event I want to capture the AgentName along with RFQ NO.

Please help me in this regards…

Note:- I don’t want to cahange any Value/Text Field property.

Waiting for response…

Regards,Ranganath.

 

Ranganath
Top achievements
Rank 1
 answered on 29 May 2009
1 answer
310 views
Hi

I have just recently upgraded a project to AJAX Q3 2008 from the Classic 2008 version.

In the past, the code accesses read-only databound columns of a radgrid via the .text propery of the GridEditableItem (at ItemDatabound event), which would return a valid value.  However! Since the upgrade, everything has fallen to pieces!
The GridEditableItem doesn't seem to hold read-only values now in the new version. 
i.e.
This is the read-only column:
<radTS:GridBoundColumn DataField="LastName" HeaderText="LastName" ReadOnly="True" UniqueName="LastName">  
</radTS:GridBoundColumn> 

The first part of the VB code populates the radgrid rgdContact, then sets every row to Edit mode and rebinds
rgdContact.DataSource = dt 
rgdContact.DataBind()  
 
For Each GDItem As GridDataItem In rgdContact.Items  
     GDItem.Edit = True 
Next  
 
rgdContact.Rebind() 


The second part of the VB code occurs on data bind events.  If it is the rebind (every row is in edit mode) then it tries to access the read-only column.  Here is the problem where a "nbsp;" value is returned for every read-only column.
    
Private Sub rgdContact_ItemDataBound(ByVal sender As ObjectByVal e As Telerik.Web.UI.GridItemEventArgs) Handles rgdContact.ItemDataBound     
     
If TypeOf e.Item Is GridEditableItem And e.Item.IsInEditMode Then   
   Dim gridEditFormItem As GridEditableItem = CType(e.Item, GridEditableItem)     
   Dim strLastName As String = gridEditFormItem.Item("LastName").text     
   'strLastName "nbsp;" for some reason!    
End If   
 
End Sub    
 
Princy
Top achievements
Rank 2
 answered on 29 May 2009
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?