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

I have a RadGrid on a website where selecting a row triggers a database look-up and a post-back.  When the page refreshes, the row does not appear selected, although the data is retrieved.  We can see the row being selected before the post-back completes.  I've looked at the Grid "Accessing Cells and Rows" demo and I think this may work for my situation, but I have not been able to set the row background from this example.  Anyone have ideas on this?  Any help would be appreciated. More details appear below:

(ASPX)

<telerik:RadGrid ID="RadGrid1" runat="server" AllowFilteringByColumn="True"   
    AllowPaging="True" DataSourceID="LoggerDS" GridLines="None" > 
    <HeaderContextMenu> 
        <CollapseAnimation Type="OutQuint" Duration="200">  
        </CollapseAnimation> 
    </HeaderContextMenu> 
    <PagerStyle Mode="NextPrevAndNumeric" /> 
    <MasterTableView autogeneratecolumns="False" datasourceid="LoggerDS" CommandItemDisplay="Top" HorizontalAlign="Center">  
        <RowIndicatorColumn> 
            <HeaderStyle Width="20px"></HeaderStyle> 
        </RowIndicatorColumn> 
        <ExpandCollapseColumn> 
            <HeaderStyle Width="20px"></HeaderStyle> 
        </ExpandCollapseColumn> 
        <Columns> 
            <telerik:GridBoundColumn DataField="MDate" DataType="System.DateTime" ItemStyle-HorizontalAlign="Center" 
                HeaderText="Date" SortExpression="MDate" UniqueName="MDate">  
                <ItemStyle HorizontalAlign="Center"></ItemStyle> 
            </telerik:GridBoundColumn>        
            <telerik:GridBoundColumn DataField="CallID" DataType="System.Int32" ItemStyle-HorizontalAlign="Center" 
                HeaderText="Call ID" SortExpression="CallID" UniqueName="CallID" Display="False">  
                <ItemStyle HorizontalAlign="Center"></ItemStyle> 
            </telerik:GridBoundColumn> 
...  
        </Columns> 
        <PagerStyle Mode="NextPrevAndNumeric" /> 
        <HeaderStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"   
            Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center"   
            Wrap="True" /> 
       
            <CommandItemTemplate> 
                <asp:Button ID="SelectButton" runat="server" Text="Review Selected Call" OnClientClick="return LoadReviewForm();" /> 
            </CommandItemTemplate> 
    </MasterTableView> 
    <FilterMenu> 
        <CollapseAnimation Type="OutQuint" Duration="200">  
        </CollapseAnimation> 
    </FilterMenu> 
    <ClientSettings EnablePostBackOnRowClick="true">  
        <Selecting AllowRowSelect="True"></Selecting> 
    </ClientSettings> 
</telerik:RadGrid> 
 

(ASPX.VB)
    Protected Sub RadGrid1_ItemCommand(ByVal source As ObjectByVal e As GridCommandEventArgs) Handles RadGrid1.ItemCommand  
 
        If (e.CommandName = "RowClick" AndAlso TypeOf e.Item Is GridDataItem) Then 
            e.Item.Selected = True 
            e.Item.BackColor = Drawing.Color.DarkGray  
...  
 
Ed Navickas
Top achievements
Rank 1
 answered on 02 Dec 2009
1 answer
57 views

Requirements

RadControls version

2008 +
.NET version

Visual Studio version
programming language

c#
browser support

all browsers supported by RadControls


PROJECT DESCRIPTION
I want to share some tips on implementing RadGrid with LinqToSQL technology and work with entities having references to other entities.

Here is the link to blog post: http://dmitrygusev.blogspot.com/2009/11/best-practice-implementing-telerik.html
Sebastian
Telerik team
 answered on 02 Dec 2009
3 answers
132 views
Im using this code below and it works untill I do the "cell.innerHTML".  Then it tells me Im passing it a dangerous querystring.  IE it trying to pass it like the div tag and everything.  How do I just pass the value in the cell?

    <script type="text/javascript">  
        function RowSelected(sender, eventArgs) {  
            var grid = sender;  
            var MasterTable = grid.get_masterTableView();  
            var row = MasterTable.get_dataItems()[eventArgs.get_itemIndexHierarchical()];  
            var cell = MasterTable.getCellByColumnUniqueName(row, "procreq_id");  
 
            //var oWnd = radopen("pws_files.aspx?pws_id=" + cell.innerHTML, "Window1");  
            var oWnd = radopen("../proc_chg_files.aspx?proc_chg_id=" + "2""Window1");  
        }  
             
</script>   
bradley baker
Top achievements
Rank 1
 answered on 02 Dec 2009
6 answers
142 views
We are using Telerik 2009_2_826  and we found that there is some UI problems with RadSpell on IE 7 (See attached JPG), the text of "Add Custom" is not aligned properly.

Is it possible to change the wording dynamically from the code?  

I read this article, I think it is possible to hide the "Add Custom" button by using spell.AllowAddCustom = false;
http://www.telerik.com/help/aspnet/editor/customizingradspell.html

But is there a way to change the wording say, a shorter word from "Add Custom" to  "Custom", or even change the style sheet of these buttons?

Thanks for help,
Rini Boo
Top achievements
Rank 1
 answered on 02 Dec 2009
2 answers
166 views
Good Morning,
I've created a RadTreeView with Data from a SQL Table. I load the Data on demand like in this example (Client Side):

http://demos.telerik.com/aspnet-ajax/treeview/examples/programming/loadondemandmodes/defaultcs.aspx

How can I expand a path to a spacial Childnode programaticly?

I tried it with:
RadTreeView.FindNodeByValue("NODEVALUE").ExpandParentNodes(); 




But that doesn't work. I think beacause the data is not loaded at this time.

Any ideas how to do that?

Thanks in advance

Regards
Dirk
Dirk Eberhardt
Top achievements
Rank 1
 answered on 02 Dec 2009
7 answers
309 views
I recently installed the latest Q3 release of the ASP.NET control suite. On a newly created test project, I tried to run the Upgrade Wizard.

I get the following error, repeatedly::

"Error retrieving latest version information. Please, try again or contact the Telerik team."

So, I am contacting you as requested <g>

FYI, running VS2008 under Vista, as Administrator.

Also running Microsoft Security Essentials, and I temporarily turned off the firewall, but this had no effect.
Erjan Gavalji
Telerik team
 answered on 02 Dec 2009
5 answers
81 views
Hello,

I just discovered that silverlight is no more in default toolbar (skin Web20) in Q32009 ?
May be it has disappeared before ?

I checked documentation but have not been able to find somewhere the default tools list ??
Or am I missing something ?

Thank you for info.
CS
CSurieux
Top achievements
Rank 2
 answered on 02 Dec 2009
1 answer
206 views
I've posted a message in the RadTooltip forum to know how to implement a kind of "modal popup" and then append another "information popup" inside.  I've been directed to use a Radwindow to acheive this behavior.  However, there is no example of loading a UserControl into a radwindow.  The only examples I've found are asp.net pages.

Can you please provide an example of loading a UserControl inside a RadWindow?
Thank you very much !

Guillaume
Fiko
Telerik team
 answered on 02 Dec 2009
1 answer
149 views
Hi telerik Guys !

I  need your help to sort  my problem.

I have been playing wid the RAD FILE EXPLORER for a quite some while in my project.

I have an folders list displayed at the TREE CONTEXT MENU, now when I right click & choose "DELETE" to delete a folder. the folder gets deleted while it still exists there & i need to go to the ROOT where that folder was present & then click on to REFRESH button to get the REFRESHED RAD FILE EXPLORER.

Iam not able to REFRESH the RAD FILE EXPLORER at first instance when I delete the folder.

I dont know whats goin WRONG ??

Though I have used DATABIND methof for TREEVIEW ....but all in vain ......

Help guys............. help..................

Ajay Jamwal
Fiko
Telerik team
 answered on 02 Dec 2009
2 answers
106 views
Hi All,

I am getting specified cast is not valied exception for numeric textbox on add new record in radgrid.

my aspx as follows...
<telerik:GridTemplateColumn DataField="AmountReceived" EditFormColumnIndex="1"  
                                HeaderText="Amount Received" SortExpression="AmountReceived"  
                                UniqueName="AmountReceived"
                                <EditItemTemplate> 
                                    <telerik:RadNumericTextBox ID="AmountReceivedRadNumericTextBox" runat="server"  
                                        Type="Number" Value='<%# Eval("AmountReceived") %>'
                                    </telerik:RadNumericTextBox><asp:RequiredFieldValidator ID="RequiredFieldValidator3" ControlToValidate="AmountReceivedRadNumericTextBox" 
                                ErrorMessage="Required" runat="server"></asp:RequiredFieldValidator> 
                                </EditItemTemplate> 
                                <ItemTemplate> 
                                    <asp:Label ID="AmountReceivedLabel" runat="server"  
                                        Text='<%# Eval("AmountReceived") %>'></asp:Label> 
                                </ItemTemplate> 
                            </telerik:GridTemplateColumn> 

Please help me regarding this.
PM
Top achievements
Rank 1
 answered on 02 Dec 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
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
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?