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

I have a regular asp.net 2.0 project and planning to use AJAX Rad Spell checker. Do I need AJAX to use this Rad control. I mean do I need to install the AJAX framework. May be silly question but I am not sure and I am new to this controls. Please advise.

Thank you.

Regards,
Supremestar
Svetlina Anati
Telerik team
 answered on 02 Apr 2009
9 answers
133 views
Hello. I've searched the forums for this issue, but couldn't find it, so either it's not there or I'm not searching using the right keywords. In any case, if this is answered somewhere else, I apologize in advance.

I've been having an issue with dragging nodes from the RadTreeView. I tested using the online sample here:

http://demos.telerik.com/aspnet-ajax/treeview/examples/functionality/draganddropnodes/defaultcs.aspx

And the issue is there, as well, so I'm pretty confident it's not something I'm doing wrong. The issue is this: when you drag a node from the tree, you have to select it first before dragging it. Otherwise, you'll be dragging the contents of what was previously selected. In the sample above, here are the steps to reproduce:

In RadTreeView1, select "Personal Folders" and drag it to the TextBox in the third column. This should work as expected. Now, select "Drafts" and drag it to the TextBox. This works if you select it and THEN drag it, but not if you try to do it all in one motion. In other words, click on Drafts, and before letting go, drag it to the TextBox. Notice that you're still dragging "Personal Folders" because the selection in the tree didn't actually change before the drag started. I've tried to work around this using the OnNodeClicking event and selecting/highlighting the node clicked on, but it doesn't help.

Any ideas? Seems like a bug to me, but could be by-design. Any known workarounds?

Thanks,
Tye
Veselin Vasilev
Telerik team
 answered on 02 Apr 2009
5 answers
336 views
hello to all,

               Once again i would like to thank, to all member of telerik that response's my question.

Hello to all i would like to ask some help for this particular problem in exporting data from the radgrid with a linkbutton in every row in a grid, i tried to use the codes being posted on the example it works but the problem is one of my column with link on it the data was not carried to excel and that field is empty, is there a way to get that data?

here's my column name and two sample data in my Radgrid;

      the Subject column has a linkbutton so when the user click on it, it will redirected to another page with details 
      now i want all records send to excel but this subject column is empty when i look on the excel. please help

                   Request ID        Subject        Description
                   0000001            Paper          Long Bond Paper
                   0000002            Clip             Paper Clip

then i have a button below namely send to excel

sample/codes is highly appreciated
Jols
Top achievements
Rank 2
 answered on 02 Apr 2009
1 answer
86 views
Hello,

For some reason, the RadTabScript is causing validation.  I have a RadTabScript with 2 tabs, linked to a RadMultiPage with  Two views.  Each tab is linked to the correct view ,and the TS is linked to the MP.  The form within the first tab has validators in it, and when I click on the tab header, it triggers that validation.

How can I get it to not trigger validations?

Thanks.
Paul
Telerik team
 answered on 02 Apr 2009
2 answers
189 views
Hi Guys,

2 issues: RadEditor in RadWindow ...and RadTabstrip (Q2 2008) in RadWindow .  (no problem if in non popup radwindow)

Scenario:
I pop up a radwindow from some other aspx, in it I have a RadMultipage and Tabstrip, 2 of the PageViews have a grid in them, (simple .. bind the grids using need datasource,   the third tab/pageview has a RadEditor...All basic std use/setup/functionality

1)  RadEdior:   When I run the app and call the popup-radwindow , the dropdowns don't drop down,  and other toolbar items don't do anything postback (eg.Bold or Italics or any one of them ).

If HOWEVER i run this "popup" directly (select the popped up aspx from Solution explorer and View  in Browser), it works.

I HAVE TRIED IT IN using vers.  q4 2006 and  q2 2008,  (also mixing the two versions  (Q2 2008 for the radeditor, Q4 2006 for the Tabstrip)...View in browser as non popup,..no problem. as popup ...No Go

2)  the Tabstrip (Q2 2008 in the same popup/radwindow) will not work in a popup situation, (Won't change tabs)  but does in a Standalone non - popup scenario. (Q4 2006 works fine in RadWindow Popup scenario,..only Radeditor toolbar items non-responsive).

Thirdly ..(bye the bye)   Also, the Rad window repositions itself ...?

I get the Browser status bar error (again only in popup mode..and  irrespective of code I have in the Markup or CodeBehind (eg removing the grids and their Code behind events)

Line 5821
Char 12
Sys.ArgumentOutOfRange Exception:
Value must be an integer
Parameter name: x
Actual value was Nan
Code:0

TIA
Neal

Markup....Registrations

<%

@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"

 

 

Namespace="System.Web.UI" TagPrefix="asp" %>

 

<%

@ Register Assembly="Telerik.Web.UI, Version=2008.2.723.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4"

 

 

Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

 

 

<%

@ Register TagPrefix="radG" Namespace="Telerik.WebControls" Assembly="RadGrid.Net2" %>

 

<%

@ Register TagPrefix="rada" Namespace="Telerik.WebControls" Assembly="RadAjax.NET2" %>

 

<%

@ Register tagprefix="radW" namespace = "Telerik.WebControls" assembly="RadWindow.Net2" %>

 

...
...
...

 

<telerik:RadTabStrip ID="rtsContact" runat="server" Orientation="HorizontalTop"

 

 

MultiPageID="RadMultiPage1" Visible="true" skin="Outlook"

 

 

SelectedIndex="0" PerTabScrolling="True" Width="100%" >

 

 

<Tabs>

 

 

<telerik:RadTab PageViewID="PageView1" Text="Sched. Detls & Prem Calc. "

 

 

Width="250px" runat="server" Selected="True">

 

 

</telerik:RadTab>

 

 

<telerik:RadTab PageViewID="PageView2" Text="Banking Details"

 

 

runat="server"

 

 

Width="250px">

 

 

</telerik:RadTab>

 

 

<telerik:RadTab PageViewID="PageView3" Text="Notes"

 

 

runat="server"

 

 

Width="250px">

 

 

</telerik:RadTab>

 

 

</Tabs>

 

 

</telerik:RadTabStrip>

 

 

<telerik:RadMultiPage ID="RadMultiPage1"

 

 

runat="server" SelectedIndex="0" Height="100%">

 

 

 

<telerik:RadPageView ID="PageView1" runat="server" Width="100%" Height="100%">

 

 

 

 

 

        ....Typical RadGrid here
</
telerik:RadPageView>

 

 

 

<telerik:RadPageView ID="PageView2"

 

 

runat="server" Width="550px" Height="300px">

 

....  ....Typical RadGrid here
</telerik:RadPageView>

 

 

<telerik:RadPageView ID="PageView3"

 

 

runat="server" Width="550px" Height="300px">

 

 

<asp:Panel ID="pnlBottom" runat="server" >

 

 

<telerik:RadEditor

 

 

ID="RadEditor1"

 

 

runat="server"

 

 

Style="position: relative; left: 0px;"

 

 

Width="99%" Height="300px"

 

 

enabled="true">

 

 

<Content>

 

 

</Content>

 

 

</telerik:RadEditor>

 

 

<%

--Scripts for RadEditor ..custom dropdowns..invoking their scripts and the __DoPostback--%>

 

     Telerik.Web.UI.Editor.CommandList[

"Save"] = function(commandName, editor, args)

 

     {

       __doPostBack(commandName,args);

     };

</

script>

 

 

 

</asp:Panel>

 

 

</telerik:RadPageView>

 

 

</telerik:RadMultiPage>

 

 

<div>

 

 

</div>

 

 

</form>

 

</

body>

 

</

html>

 


Neal
Top achievements
Rank 1
 answered on 02 Apr 2009
2 answers
128 views
Hi All,

If I run the page containing my Tabstrip/multipage etc   as standalone, my Tabs / RadPageView   change correctly showing the content of each RadpageView  (just upgraded to Q1.2009 + hotfix  1_324.

However put it in a RadWindow-popup.... no go!   stays on the first tab and it's RadPageView, won't show other Tabs'  pageviews
??

Markup is beneath
TIA
Neal

<

telerik:RadTabStrip ID="rtsContact" runat="server"

 

 

Orientation="horizontalTop"

 

 

 

MultiPageID="RadMultiPage1" Visible="true"

 

 

SelectedIndex="0" PerTabScrolling="True" Width="100%" >

 

 

 

<Tabs>

 

 

<telerik:RadTab PageViewID="PageView1" Text="Sched. Detls & Prem Calc. " Width="177px" runat="server">

 

 

</telerik:RadTab>

 

 

<telerik:RadTab PageViewID="PageView2" Text="Banking Details" runat="server" Width="177px">

 

 

</telerik:RadTab>

 

 

<telerik:RadTab PageViewID="PageView3" Text="Notes" runat="server" Width="177px">

 

 

</telerik:RadTab>

 

 

</Tabs>

 

 

</telerik:RadTabStrip>

 

 


<
telerik:RadMultiPage ID="RadMultiPage1"

 

 

        runat="server" SelectedIndex="0" Height="100%">

 

 

 

        <telerik:RadPageView

 

 

            ID="PageView1" runat="server"  Width="100%" Height="100%">

            .......A RADGRid here

 

 

            </telerik:radpageview>

 

 

 


            <
telerik:radpageview ID="PageView2" runat="server"

 

 

                    Width="100%" Height="100%">

                  .......Another  RADGRid here

 

 

            </telerik:radpageview>

Neal
Top achievements
Rank 1
 answered on 02 Apr 2009
5 answers
429 views
Hi,

We are testing our application comprtability in all the browsers. The RadGrid seems to have issue in Firefox.
The header and the data columns are not aligning properly in Firefox.In IE 6.0 it works fine.
The issue is due to the scroll bar that is appearing on the grid.If we remove the scrolling the columns align perfectly in firefox.
Any help on this would be appreciated.

Below is code for creating the radGrid

<

telerik:RadGrid ID="radGridFacts" runat="server" AllowMultiRowSelection="True" AllowPaging="True"

 

 

AutoGenerateColumns="False" GridLines="None" PageSize="30" AllowAutomaticDeletes="True"

 

 

AllowAutomaticInserts="True" AllowAutomaticUpdates="True" AllowMultiRowEdit="True"

 

 

DataSourceID="objContDsFact" AllowFilteringByColumn ="True" Height="400px">

 

 

<AlternatingItemStyle BackColor="#EDEFF1" BorderColor="Blue" />

 

 

<PagerStyle AlwaysVisible="True" Mode="NextPrevNumericAndAdvanced" PageButtonCount="25"

 

 

Position="TopAndBottom" />

 

 

<MasterTableView CommandItemDisplay="Top" EditMode="InPlace" AllowFilteringByColumn="True"

 

 

DataSourceID="objContDsFact" TableLayout ="fixed">

 

 

<RowIndicatorColumn>

 

 

<HeaderStyle Width="20px" />

 

 

</RowIndicatorColumn>

 

 

<ExpandCollapseColumn>

 

 

<HeaderStyle Width="20px" />

 

 

</ExpandCollapseColumn>

 

 

<Columns>

 

 

<telerik:GridEditCommandColumn ButtonType="ImageButton" UpdateImageUrl="../images/Update.gif"

 

 

EditImageUrl="../images/Edit.gif" InsertImageUrl="../images/Insert.gif" CancelImageUrl="../images/Cancel.gif"

 

 

UniqueName="EditCommandColumn">

 

 

<HeaderStyle Width="4%" />

 

 

<ItemStyle HorizontalAlign="Center" />

 

 

</telerik:GridEditCommandColumn>

 

 

<telerik:GridButtonColumn ConfirmText="Delete this product?" ButtonType="ImageButton"

 

 

ImageUrl="../images/Delete.gif" CommandName="Delete" Text="Delete" UniqueName="DeleteColumn">

 

 

<HeaderStyle Width="4%" />

 

 

<ItemStyle HorizontalAlign="Center" />

 

 

</telerik:GridButtonColumn>

 

 

<telerik:GridClientSelectColumn>

 

 

<HeaderStyle Width="4%" HorizontalAlign="center"/>

 

 

 

<ItemStyle HorizontalAlign="Center" />

 

 

</telerik:GridClientSelectColumn>

 

 

<telerik:GridBoundColumn DataField="Tag" HeaderText="Tag" UniqueName="factTagCol">

 

 

<HeaderStyle Width="13%" />

 

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="ShortDescription" HeaderText="Short Description"

 

 

UniqueName="colFactShortDesc">

 

 

<HeaderStyle Width="16%" />

 

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="LongDescription" HeaderText="Long Description"

 

 

UniqueName="colFactLongDesc">

 

 

<HeaderStyle Width="20%" />

 

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="CurrencyDbMarketTag" HeaderText="Currency Market Tag"

 

 

UniqueName="colCurrencyDbMarketTag" ReadOnly="True">

 

 

<HeaderStyle Width="13%" />

 

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="CurrencyDbFactTag" HeaderText="Currency Fact Tag "

 

 

UniqueName="colCurrencyDbFactTag " ReadOnly="True">

 

 

<HeaderStyle Width="13%" />

 

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="FactRate" HeaderText="Fact Rate" UniqueName="colFactRate"

 

 

ReadOnly="True">

 

 

<HeaderStyle Width="13%" />

 

 

 

</telerik:GridBoundColumn>

 

 

</Columns>

 

 

<EditFormSettings>

 

 

<EditColumn UniqueName="EditCommandColumn1">

 

 

</EditColumn>

 

 

</EditFormSettings>

 

 

<CommandItemTemplate>

 

<%

-- <div style="padding: 10px 0px;">--%>

 

 

<asp:LinkButton ID="btnEditSelected" runat="server" CommandName="UpdateEdited"

 

 

Style="vertical-align: bottom"

 

 

Visible="<%# radGridFacts.EditIndexes.Count > 0 %>"><img alt=""

 

 

src="../images/Update.gif" style="border:0px;vertical-align:middle;" />

 

Update Products

</asp:LinkButton>

 

 

&nbsp;

 

 

<asp:LinkButton ID="btnCancel" runat="server" CausesValidation="false"

 

 

CommandName="CancelAll"

 

 

Visible="<%# radGridFacts.EditIndexes.Count > 0 || radGridFacts.MasterTableView.IsItemInserted %>"><img

 

 

alt="" src="../images/Cancel.gif" style="border:0px;vertical-align:middle;" />

 

Cancel editing

</asp:LinkButton>

 

 

&nbsp;

 

 

<asp:LinkButton ID="btnAddProduct" runat="server" CommandName="InitInsert"

 

 

Visible="<%# !radGridFacts.MasterTableView.IsItemInserted %>"><img alt=""

 

 

src="../images/AddRecord.gif" style="border:0px;vertical-align:middle;" />

 

Add new Product

</asp:LinkButton>

 

 

<asp:LinkButton ID="btnSaveProduct" runat="server" CommandName="PerformInsert"

 

 

Visible="<%# radGridFacts.MasterTableView.IsItemInserted %>"><img alt=""

 

 

src="../images/Insert.gif" style="border:0px;vertical-align:middle;" /> Add

 

this Product

</asp:LinkButton>

 

 

&nbsp;

 

 

<asp:LinkButton ID="btnUpdateEdited" runat="server" CausesValidation="false"

 

 

CommandName="EditSelected" Visible="<%# radGridFacts.EditIndexes.Count == 0 %>"><img

 

 

alt="" src="../images/Edit.gif" style="border:0px;vertical-align:middle;" />

 

Edit Selected Products

</asp:LinkButton>

 

 

<asp:LinkButton ID="btnDeleteSelectedProducts" runat="server"

 

 

CausesValidation="false" CommandName="DeleteSelected"

 

 

OnClientClick="javascript:return confirm('Delete all selected Products?')"><img

 

 

alt="" src="../images/Delete.gif" style="border:0px;vertical-align:middle;" />

 

Delete Selected Products

</asp:LinkButton>

 

 

&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;

 

 

<asp:LinkButton ID="btnRefresh" runat="server" CommandName="RebindGrid"><img

 

 

alt="" src="../images/Refresh.gif" style="border:0px;vertical-align:middle;" />

 

Refresh Product list

</asp:LinkButton>

 

<%

-- </div>--%>

 

 

</CommandItemTemplate>

 

 

</MasterTableView>

 

 

<ClientSettings AllowKeyboardNavigation="True" AllowColumnsReorder="True">

 

 

<Selecting AllowRowSelect="True" />

 

 

<Scrolling AllowScroll="True" UseStaticHeaders="true" ScrollHeight="300px" SaveScrollPosition="true"/>

 

 

</ClientSettings>

 

 

<FilterMenu EnableTheming="True">

 

 

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

 

 

</FilterMenu>

 

 

<EditItemStyle BackColor="#A2A2A2" />

 

 

</telerik:RadGrid>

 



Thanks
Bala
Pavlina
Telerik team
 answered on 02 Apr 2009
2 answers
116 views
Hello all,

I am novice in Teleric Ajax Controls and i have the following questions:

Is it possible to develop a grid with the following characteristics?

  • Paging, sorting, filtering, and grouping are performed on the client;
  • No requests are made to the server after the initial page load;

I have also read about client caching at Teleric documentation but i have noticed that at each
reload i must perform:

protected void Page_Load(object sender, EventArgs e)
    {
            DataSet ds = GetImageBlink();
            RadGrid1.DataSource = ds;
            RadGrid1.DataBind();            
    }

I don't understand where is client caching involved?
 I must perform client binding in order to have client cashing?

Thanks in advance
Ilias
Top achievements
Rank 1
 answered on 02 Apr 2009
4 answers
201 views
Hi,

     In my RadGrid i use EditMode in EditForm style. RadGrid has the option to upload documents. I don't use UserControl instead use as follows...
<telerik:GridTemplateColumn HeaderButtonType="TextButton" UniqueName="Upload" HeaderText="File Name"
                                        <ItemTemplate> 
                                            <asp:Label runat="server" ID="lblFileName" Text='<%# Eval("FileName") %>' /> 
                                        </ItemTemplate> 
                                        <EditItemTemplate> 
                                            <span style="color: #FF0000;">*</span> 
                                            <asp:FileUpload Width="400" ID="RadUpload1" runat="server" /> 
                                            <asp:RequiredFieldValidator Visible='<%# (Container is GridEditFormInsertItem) %>' 
                                                runat="server" ControlToValidate="RadUpload1" ErrorMessage="Please select any file" 
                                                ID="ReqUpload" SetFocusOnError="true" ToolTip="Please upload a file"></asp:RequiredFieldValidator> 
                                        </EditItemTemplate> 
                                        <ItemStyle Width="10%" HorizontalAlign="right" /> 
                                        <HeaderStyle Width="20%" HorizontalAlign="center" /> 
                                    </telerik:GridTemplateColumn> 

In here on Click of EDIT all the custom controls shows up inedit mode but unable to retrieve the FileUpload control alone like
FileUpload FUDoc = (FileUpload)e.Items.FindControl("RadUpload1") always this code return null.
Computer Surgeon
Top achievements
Rank 1
 answered on 02 Apr 2009
1 answer
287 views
Hi Telerik Team,

I have been playing with RadComboBox, RadGrid and AJAX in MVC all day today and could not figure out a better way to display the RadGrid on AJAX when RadComboBox selection is changed. I found few articles online about doing AJAX using JQuery, JSON but not sure how to assign the datasource in RadGrid. Can you point me out an example of how to do the client side data binding for the RadGrid in MVC envoirment? Thanks a bunch!
Dallas Sehlhorst
Top achievements
Rank 1
 answered on 02 Apr 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?