Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
399 views
Hi,

I need to loop thru radgrid columns and if they allow update, I need to make it as read only. My grid has mixed type of columns with bound columns and Template columns with Textboxes. All the columns in grid are readonly except Template columns. We allow user to enter data into textboxes. Under certain logic, I need to make entire grid as read only.  This check needs to be done out of Radgrid events.
something like this:
foreach (GridColumn gc in RadGrid1.Columns)
{
        if (gc.AllowUpdate == true)
             gc.AllowUpdate = false;

             gc.cell.style = "disablecell";
}
Please let me know how to do it.

T
Shinu
Top achievements
Rank 2
 answered on 10 Apr 2013
7 answers
100 views
I have a grid with fixed height and no paging and allow scroll TRUE.
The grid also has nested detail tables.
In Firefox 10 SaveScrollPosition works as expected, but IE8 it doesn't.
When I open a detail table near the bottom of the grid, in IE8 the grid opens correctly but then scrolls to the top.
I'm using Q1 2012 controls.
Pavlina
Telerik team
 answered on 09 Apr 2013
1 answer
97 views
Hi All,

I have modified the Custom DB Provider to read from a table with records of folders and files.
Each record has a column with the full path versus the demo which has each folder separated.

My modifications have not deviated to any great extent from the original demo.

The problem I am encountering is that the ResolveDirectory is called only once following the initial call of ResolveRootDirectoryAsTree.

All of the folders render and the ResolveRootDirectoryAsTree is called whenever a folder is first expanded.

ResolveDirectory does not fire when folders are expanded and no files are shown.

Each Folder is loaded into a Directory Item:

name "mySubfolder
fullpath "Root/myFolder/mySubfolder/"
location "Root/myFolder/"
tag String.Empty,
permissions PathPermissions.Read
File Items null for ResolveRootDirectoryAsTree, populated for ResolveDirectory
Directory Items null for ResolveDirectory, populated for ResolveRootDirectoryAsTree

Each File is loaded into a File Item:

filename "myfile.jpg"
extension ".jpg"
size int64
path "Root/myFolder/mySubfolder/myfile.jpg"
filehandlerURL "..."
tag String.Empty
permissions PathPermissions.Read

I can post a snippet if need be, but I was wondering if anyone has encountered this or if the above structure is incorrect before I do so.

The downloaded Custom DB Provider works fine, only the modified copy has this issue.


Cheers,





Tim
Top achievements
Rank 1
 answered on 09 Apr 2013
2 answers
174 views
Good Morning, 

I've a column in my Grid as GridBoundColumn(it's working), I need change this column to stay as GridDropDownColumn(dont working). 
Below is my GridBoundColumn and the attempt to change, don't appears error but the column is empty.

                           
     <telerik:GridBoundColumn DataField="TM_NOME" FilterControlAltText="Filter column column"
     HeaderText="Tipo de Módulo" UniqueName="TM_NOME">
     </telerik:GridBoundColumn>

       <telerik:GridDropDownColumn HeaderText="Tipo do Módulo" DataField="TM_NOME" ListTextField="NOME"                                                ListValueField="TM_NOME" DropDownControlType="RadComboBox" DataType="System.Int32">
       </telerik:GridDropDownColumn> 

ps( I saw in a example that have a parameter to GridDropDownColumn ( DataSourceID="" ), I don't know what data I must put here because in my other Columns I don't need this field.

Thanks!

Ricardo
Top achievements
Rank 1
 answered on 09 Apr 2013
3 answers
337 views
I just updated my RadControls for ASP.NET AJAX, and am now having problems getting the cell text of GridBoundItems when visible is set to false.

item["NonVisibleColumnName"].Text is always returning a blank space (&nbsp;).

Has anyone run into this issue?
Billy
Top achievements
Rank 1
 answered on 09 Apr 2013
1 answer
131 views

Setup :
  • Our application uses radTabs instead tabbing off each time in new browser tab
  • We have reports that we generate in PDF and then they are brought up in Adobe's PDF viewer and each such report is opened in individual radTab  that I mentioned above.
  • This Adobe PDf viewer is in an iframe

Issue :
  • IE 8 & 9 Everything is flawless & works great !
  • IE 10, even if user opens a new radTab, the Adobe PDF viewer stays on the screen, it never disappears,I have attached the screen snip, showing this error.
  • Our application is IE only (at least for now)

  • IE 8 & 9 Everything is flawless & works great !

IE 10, even if user opens a new radTab, the Adobe PDF viewer stays on the screen, it never disappears,I have attached the screen snip, showing this error.


Thanks for your help,
-Aarsh


Nencho
Telerik team
 answered on 09 Apr 2013
1 answer
325 views

I have a RadComboBox that displays a list of appropriate addresses to ship to from the user's address book.  When choosing which address to ship to they select from this dropdown.  However, they want the ability to edit their address book without having to leave the Order Form.  I solved this with an additional button that opens in a RadWindow the same page they use to edit their address book from their profile.  They can add, change, search for addresses easily from this window.  When they close the window however the changes are not reflected in the RadComboBox.

I am using Ajax on the page already and it is a form so if I allow the page to postback it can sometimes lose some of the information that was in the form if the user changed it.

Is there a way that I can rebind the RadComboBox to fetch the latest information similar to how the RadGrid can rebind?

Javascript:
<script type="text/javascript">
    function ShowAddressBook(button, args) {
        if (!confirm('This action will redirect you to your Address Book.  You will lose all unsaved information. Are you sure?')) {
            return false;
        }
        else {
            $find("<%=AddressBookWindow.ClientID %>").show();
        }
    }
    function RefreshAddresses() {
        location.reload();
    }
</script>

ASPX
<telerik:RadComboBox runat="server" ID="rcbAddress" Width="200px" EnableItemCaching="false" EnableLoadOnDemand="true"
                            DataSourceID="dsAddressBook" DropDownWidth="250px" HighlightTemplatedItems="true"
                            EmptyMessage="Select Address" DataTextField="AddressName" DataValueField="AddressID">
                            <ItemTemplate>
                                <div class="boxitem">
                                    <div class="addressLabel"><%# DataBinder.Eval(Container.DataItem, "AddressName") %></div>
                                    <div class="boxdetail">
                                    <div class='<%# DataBinder.Eval(Container.DataItem, "AddressTypeClass") %>'> </div>
                                    <div class="addressFormat">
                                        <strong><%# DataBinder.Eval(Container.DataItem, "RecipiantName") %></strong><br />
                                        <%# DataBinder.Eval(Container.DataItem, "Address1") %><br />
                                        <%# DataBinder.Eval(Container.DataItem, "Address2") %><br />
                                        <%# DataBinder.Eval(Container.DataItem, "City") %>, <%# DataBinder.Eval(Container.DataItem, "State") %> <%# DataBinder.Eval(Container.DataItem, "ZIP") %>
                                        <%# DataBinder.Eval(Container.DataItem, "Country") %>
                                    </div>
                                    </div>
                                </div>
                            </ItemTemplate>
                        </telerik:RadComboBox>
 
<telerik:RadButton ID="btnShowAddressBook" CausesValidation="false" AutoPostBack="false" runat="server" OnClientClicked="ShowAddressBook" Text="Edit Address Book">
<Icon PrimaryIconCssClass="rbOpen" PrimaryIconLeft="4" PrimaryIconTop="4" />
</telerik:RadButton>
 
---
 
<telerik:RadWindowManager ID="RadWindowManager1" runat="server">
    <Windows>
        <telerik:RadWindow ID="AddressBookWindow" Modal="true" VisibleStatusbar="false" OnClientClose="RefreshAddresses" Title="Manage Address Book" NavigateUrl="/SiteControls/AddressBook.aspx" runat="server" AutoSize="true" style="z-index:8000;" />
    </Windows>
</telerik:RadWindowManager>
Hristo Valyavicharski
Telerik team
 answered on 09 Apr 2013
2 answers
228 views
Hello, one of the requirements for my company's product is that when a user has a row selected in the radgrid, but then does an insert or update via add new record command or the edit button in the edit column, that row remains selected when the modal popup closes.  

I haven't seen any solutions for this in the forums or by web search.  We are utilizing a RadAjaxPanel if that's relevant.  Is there a straightforward way to solve this?
Luke
Top achievements
Rank 2
 answered on 09 Apr 2013
1 answer
172 views
How can I add user control inside the header template of radpanelitem dynamically (from code behind)?
In my parent page, I'm having a RadPanelBar which contains two RadPanelItems. I want to add user control in header template of the second radpanelitem. When I tried to add user control in header template, the panel header height becomes wider and shows the user control in second line of panel. My user controls contains a small image button icon, which opens a radwindow.
Kate
Telerik team
 answered on 09 Apr 2013
0 answers
104 views
I am trying to move the selected cell in client side code after calling out to a service. On row click, I am setting the cells background color to indicate to the user which cell is selected.  I am then passing that column to a service, which is writing some data to the corresponding field in the database.  On success I am performing a rebind on the client side which updates my radgrid with the new data.  I am also trying to "highlight" the next cell in the row, but have been unsuccessful in my efforts thus far.

Any ideas?
Jimmy
Top achievements
Rank 1
 asked on 09 Apr 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?