Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
52 views
HI,

From where can i get the download for Q1 2010 SP2. I am running Q1 2010 currenlty

Thanks
ab
Dev LIPIX
Top achievements
Rank 1
 answered on 06 Aug 2010
2 answers
152 views
I should preface this by saying I just inherited a website that uses Telerik and, well, I've never used them before, so please bear with me. Also, this site doesn't use any code behind pages...nothing I can do about that, so it might complicate some of your suggestions.

Anyway, I have a radgrid that is displaying user suggested features, and in the last column there is a GridHyperLinkColumn that links to a new page displaying more details on the feature request. Since any filtering or paging that has taken place gets wiped out upon going to that details page, I'd like to invoke a RadOpen call to display the details in a new window.

But, I can't seem to make that happen. How do you call a function from a RadGrid???

Here is the current RadGrid on the site (for what it's worth):

 

 

 

<telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True" AllowSorting="True"
        DataSourceID="SqlDataSource1" GridLines=None Skin="WebBlue" PageSize="50" Width=100% 
        AllowFilteringByColumn=true ShowGroupPanel="True">
        <HeaderContextMenu EnableTheming="True" Skin="WebBlue">
            <CollapseAnimation Duration="200" Type="OutQuint" />
        </HeaderContextMenu>
        <ClientSettings AllowColumnsReorder="True" ReorderColumnsOnClient="True" AllowDragToGroup="True">
            <Selecting AllowRowSelect="True" />
        </ClientSettings>
        <MasterTableView GroupLoadMode=Client AutoGenerateColumns="False" DataKeyNames="pkRequestID" AllowMultiColumnSorting="True" DataSourceID="SqlDataSource1">
            <Columns>
                <telerik:GridBoundColumn  DataField="pkRequestID" HeaderText="ID" SortExpression="pkRequestID"
                    UniqueName="pkRequestID" FilterControlWidth="20px">
                    <HeaderStyle Width="5%" />
                       
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn  DataField="strTitle" HeaderText="Title" SortExpression="strTitle"
                    UniqueName="strTitle">
                    <HeaderStyle Width="50%" />
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="fullName" HeaderText="Submitted By" SortExpression="fullName"
                    UniqueName="fullName">
                    <HeaderStyle Width="15%" />
                </telerik:GridBoundColumn>
                <telerik:GridDateTimeColumn DataField="dteDate" HeaderText="Added" SortExpression="dteDate"
                    UniqueName="dteDate" DataFormatString="{0:MM/d/yy}">
                    <HeaderStyle Width="10%" HorizontalAlign=Center    />
                    <ItemStyle HorizontalAlign=Center />
                </telerik:GridDateTimeColumn>
                  
                <telerik:GridBoundColumn DataField="strStatus" HeaderText="Status" SortExpression="strStatus"
                    UniqueName="strStatus">
                     <HeaderStyle Width="10%" HorizontalAlign=Center  />
                     <ItemStyle HorizontalAlign=Center />
                </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="votes" HeaderText="Votes" SortExpression="votes"
                    UniqueName="votes" FilterControlWidth="20px">
                     <HeaderStyle Width="5%" HorizontalAlign=Center  />
                     <ItemStyle HorizontalAlign=Center />
                </telerik:GridBoundColumn>
                  
                <telerik:GridBoundColumn DataField="comments" HeaderText="Comments" SortExpression="comments"
                    UniqueName="comments" FilterControlWidth="20px">
                     <HeaderStyle Width="5%" HorizontalAlign=Center  />
                     <ItemStyle HorizontalAlign=Center />
                </telerik:GridBoundColumn>
                  
                <telerik:GridHyperLinkColumn AllowFiltering=False   
                DataTextFormatString="{0}"
                        DataNavigateUrlFields="pkRequestID" Text="Details"  
                        UniqueName="pkRequestID" 
                        DataNavigateUrlFormatString="/portal/technical/requests/view.aspx?lpi={0}">
                        <HeaderStyle Width="5%" HorizontalAlign=Center  />
                </telerik:GridHyperLinkColumn>
            </Columns>
            <ExpandCollapseColumn>
                <HeaderStyle Width="20px" />
            </ExpandCollapseColumn>
            <RowIndicatorColumn>
                <HeaderStyle Width="20px" />
            </RowIndicatorColumn>
        </MasterTableView>
          
        <PagerStyle Mode=NextPrevNumericAndAdvanced Position="TopAndBottom" />
    </telerik:RadGrid>

 

 

 

 

 

RW
Top achievements
Rank 1
 answered on 06 Aug 2010
3 answers
208 views

Hi,

 I am using RadEditor in a preview page. I configured EditModes as "Preview":
 
        <telerik:RadEditor ID="editor1" runat="server" Width="100%" EnableResize="false"
            Height="100%" OnClientLoad="OnClientLoad" EditModes="Preview">
            <Tools>
                <telerik:EditorToolGroup>
                </telerik:EditorToolGroup>
            </Tools>
        </telerik:RadEditor>

and in OnClientLoad event, set it as full screen: 

 

    function OnClientLoad(editor) {  

        editor.fire(

 

"ToggleScreenMode");

 

    

 

}

The problem is that after toggle to full screen mode, the editor become editable, while I am expecting the editor still in Preview mode. How do I set back to preview mode in client side (JavaScript), or is there other way to set to full screen without impacting edit mode? In this page, I only need keep the editor in preview mode (and zoom the contect).

I tried with following command (javascript) in OnClientLoad function, but it does not work:
    editor.EditModes = Telerik.Web.UI.EditModes.Preview; 
 
My other question is if can keep the editor in preview mode, and leave zoom command available?

Thank you very much,
Junbin


 

Junbin
Top achievements
Rank 1
 answered on 06 Aug 2010
1 answer
389 views
Hi all,

I am using the below code to try to display a radalert or confirm server-side and am getting this error:
1.)Microsoft JScript runtime error: '_visibilityMode' is null or not an object
2.) Microsoft JScript runtime error: Object doesn't support this property or method

Code:

ScriptManager

 

.RegisterStartupScript(this, this.GetType(), "WindowOpen", "radalert('Test', null, null, 'Test')", true);

 

 

 
I get the same problem if the code is in a Javascript function and that function is called.
ie.

 

function

 

openNewWindow()

 

{

 

var windowURL = "www.yahoo.com";

 

 

var oWnd = radopen("http://" + windowURL, null);

 

oWnd.center();

 

//var websiteName = getWebsiteName(oWnd.get_navigateUrl());

 

 

 

 

 

//Add new tab to the tabstrip

 

 

 

 

tabStrip.trackChanges();

 

var tab = new Telerik.Web.UI.RadTab();

 

tab.set_text(

"Test");

 

tabStrip.get_tabs().add(tab);

tab.set_imageUrl(oWnd.get_navigateUrl() +

"/favicon.ico");

 

tabStrip.commitChanges();

 

//Select this tab

 

 

 

 

tab.select();

}

 

the code is breaking on: var oWnd = radopen("http://" + windowURL, null);

Any ideas?

Thanks!

Brad
Top achievements
Rank 1
 answered on 06 Aug 2010
2 answers
125 views
 I am upgrading a asp.net project from older telerik RadContorls (2008.03.1125.35) to (2010.2.713.35).

I have a RadComboBox + RadTreeView inside.

proper behavior (which was working perfectly in the old version):
=========================
Click the inside treeview node;
Javascript update ComboBox value;
postback
ComboBox lost focus after postback;
========================

Weired behavior after new RAD version
========================
First time load the page and click the inside treeview node,
Javascript update CobmoBox  value;
No postback & ComboBox not losing focus; (Until I click any blank area of the page, it posts back and losing focus for ComboBox)

Once the first time done (clicking the blank area),
ComboBox turns normal behavior for the rest treeview node changes (no need to click blank area to postback).
==========================

My code is here:
==============
Javascript
---------------------------------------
function nodeClicking(sender, args)
{
           
    var comboBox = $find('<%= RadCboOffice.ClientID %>');
    
    var node = args.get_node()
    if(node.get_value()!='no')
    {
        comboBox.set_text(node.get_text());
        CollapseAllNodes();
        comboBox.hideDropDown();
    }
    else
    {
        node.expand();
        //no further postback needed
        event.cancelBubble = true;
    }
}

function CollapseAllNodes()
{
   var tree = $find('<%=RadCboOffice.Items[0].FindControl("RadTrvOffice").ClientID %>');;
            
   var allNodes = tree.get_allNodes();
   
   var index;
   for (index = 0; index < allNodes.length; index++)
   {
       var node = allNodes[index];
       if(node.get_expanded())
       {
           node.collapse();
       }
   }
   
}
-------------------------------------
ASPX
        <telerik:RadComboBox ID="RadCboOffice" Runat="server" Width="300px"  CssClass="" OnClientLoad="CboLoad" Skin="WebBlue" AutoPostBack="true" OnTextChanged="RadCboOffice_TextChanged">
        <ItemTemplate>
        <div id="div1">
        <telerik:RadTreeView runat="server" ID="RadTrvOffice"  ShowLineImages="false" OnClientNodeClicking="nodeClicking"/>
        </div>
        </ItemTemplate>
        <Items>
        <telerik:RadComboBoxItem runat="server" />
        </Items>
        </telerik:RadComboBox>   
---------------------------------------
code behind C#

        protected void RadCboOffice_TextChanged(object sender, EventArgs e)
        {
            TxtHiddenOfficeId.Text = GetOfficeId().ToString();
        }

----------------------------------------
Again, this is very weird to me. Old version works, new version will only hiccup for the first time.

Please help.

Thanks a lot
-Simon

simon
Top achievements
Rank 1
 answered on 06 Aug 2010
8 answers
133 views
I have an aspx page that has 2 RadGrids on the page and depending on what RadioButtonList is selected i set the grid visible or not.

The problem is when I load the grid with data then hide it and then load new data in the grid and unhide it the styling of the grid is all messed up.  The filters lose the filter image, that alternating row color is lost and so on.

Can you tell me the best way to clear the grid, hide it and unhide it so to not lose the styling?

Thank you. 
Mark Andrew
Top achievements
Rank 1
 answered on 06 Aug 2010
1 answer
109 views
Hi ,
                      I AM USING RAD WINDOW IN MY WEB APP . WHEN RUN IT ON FIREFOX WITH with my firebug enabled it shows a script error . what may be the reason . i have attached the screen shot .Please help.




Sankardeep V


Fiko
Telerik team
 answered on 06 Aug 2010
1 answer
121 views
Is it possible to set minimum rows displayed in a radGrid?
Example...two side by side grids
Left side data is only 3 rows and right side is 20
Pagesize on both is 8

Can the left grid be set to display the same number of rows as the right...even though empty?
Pavlina
Telerik team
 answered on 06 Aug 2010
3 answers
159 views
Say you have a hierachical datagrid, is it possible to attach a RadFilter to GridTableView within the RadGrid so you can filter on these columns instead of the columns in the MasterTableView?
Nikolay Rusev
Telerik team
 answered on 06 Aug 2010
5 answers
260 views
I'm trying to create a line chart that appears similar to the following screenshot, which I did in Excel. 

Basically, as you can see, the first column contains the location ID.  For each unique Location ID, the chart should generate a new series.  The data for that series then appears in column 2 (date) and column 3 (tempurature).

Is there anyway to do this with Rad Chart?

Thanks.

Aaron
Giuseppe
Telerik team
 answered on 06 Aug 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?