Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
101 views
Hello,
on my page, I use the RadAjaxMaanger to check a server side method in a certain interval. The problem is, that this blocks the usage of my radTreeView.

An example: the ajaymanager starts the request. While this request is worked on server side the user moves a treenode to another parent. The node_drop-event is not called immediately, because the other request is not completed yet. After the first request is done the drop is executed.

If I use the fiddler http debugger, a request is set immediately after dropping the node, while the first one waits for response.
Also: I get a ClientEvent "OnResponseEnd" called, with the get_eventArgument-value used by the first request several times - more often than the onrequeststart!

Is there a way to get two or more simultaneous requests from one clients?

Regards
Maria Ilieva
Telerik team
 answered on 02 Oct 2008
1 answer
157 views
Hi,
I'm having issues with Databinding and finding item controls in my DataGrid.
I'm using Radcontrols for ASP.NET Ajax Q2 2008.
Here's what I have.

1.I have a grid that I load in edit mode with NeedDS databinding.
2.It has a GridClientSelectColumn for selecting multiple editable rows.
3.On click of CommandItemTemplate button, the selected items are to be retrieved on server side for update/insert.
4.I also have to Insert a record with Add New Record command item template.

I have 1 and 2 working.
3 and 4 dont work since the datagrid.datasource becomes nothing in update_command and Insert_command events.  How do I retrieve the edited data?

Please help!
Heres my code.

<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="GridTrial._Default" %> 
<%@ Register  TagPrefix="telerik" Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" %> 
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" 
    Namespace="System.Web.UI" TagPrefix="asp" %> 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 
<html xmlns="http://www.w3.org/1999/xhtml" > 
 
<head runat="server">  
    <title>Untitled Page</title> 
</head> 
<body> 
      
    <form id="form1" runat="server">  
    <asp:ScriptManager ID="ScriptManager1" runat="server" AsyncPostBackTimeout ="3600000"></asp:ScriptManager> 
    <div> 
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">  
            <AjaxSettings> 
                <telerik:AjaxSetting AjaxControlID="RADGResults">  
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="RADGResults" /> 
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
            </AjaxSettings> 
        </telerik:RadAjaxManager> 
        <telerik:RadGrid ID="RADGResults" MasterTableView-Width="100%" runat="server" Skin="NCCI"   
             AllowSorting="false" EnableEmbeddedSkins="false" AllowMultiRowSelection="true"   
             AllowMultiRowEdit="true" AutoGenerateColumns="false"   
             GridLines="None" > 
            <ClientSettings> 
                <Selecting AllowRowSelect="True"  EnableDragToSelectRows="false"/>  
                <Scrolling  AllowScroll="True" /> 
            </ClientSettings> 
            <SelectedItemStyle  BackColor="gray"    /> 
 
            <MasterTableView EditMode="InPlace"  CommandItemDisplay="top"       > 
            <ItemStyle CssClass="MainTableEvenColumnCorp"/>  
            <HeaderStyle CssClass="ms-formlabel MainTableHeaderCORP" Font-Size="x-Small"></HeaderStyle> 
            <AlternatingitemStyle CssClass="MainTableOddColumnCorp"/>  
               
            <Columns> 
                <telerik:GridClientSelectColumn UniqueName="ClientSelectColumn"  ItemStyle-ForeColor="beige"/>                   
                <telerik:GridTemplateColumn HeaderText="Report Number"  UniqueName="ReportNumber">  
                    <ItemStyle HorizontalAlign="Center"    /> 
                    <HeaderStyle HorizontalAlign="Center"    /> 
                   <ItemTemplate> 
                        <asp:Label id="txtReport" runat="server" Text='<%# DataBinder.Eval(Container,"DataItem.Report_Number") %>'></asp:Label> 
                   </ItemTemplate> 
                   <EditItemTemplate> 
                        <asp:Label id="txtReport" runat="server" Text='<%# DataBinder.Eval(Container,"DataItem.Report_Number") %>'></asp:Label> 
                       <asp:DropDownList id="ddlReport" runat="server" DataTextField="Report_Number" visible="false"  > 
                            <asp:ListItem Value='1' ></asp:ListItem> 
                            <asp:ListItem Value='2' ></asp:ListItem> 
                            <asp:ListItem Value='3' ></asp:ListItem> 
                            <asp:ListItem Value='4' ></asp:ListItem> 
                            <asp:ListItem Value='5' ></asp:ListItem> 
                       </asp:DropDownList> 
                   </EditItemTemplate>   
               </telerik:GridTemplateColumn> 
               <telerik:GridBoundColumn DataField ="Number Of Risks" HeaderText ="Number Of Risks" UniqueName="NumberOfRisks"   > 
                    <ItemStyle HorizontalAlign="Center"    /> 
                    <HeaderStyle HorizontalAlign="Center"    /> 
                </telerik:GridBoundColumn> 
             </telerik:GridTemplateColumn> 
    
           </Columns >             
   
    <CommandItemStyle HorizontalAlign="Center" /> 
    <CommandItemTemplate> 
         <asp:LinkButton ID="btnUpdateEdited" runat="server" CommandName="UpdateEdited"  Visible='<%# RADGResults.EditIndexes.Count > 0 %>'><img style="border:0px" alt="" src="../media/Update.gif" /> Update Customers</asp:LinkButton> 
 
        <asp:LinkButton ID="btnCancel" runat="server" CommandName="CancelAll" Visible='<%# RADGResults.EditIndexes.Count > 0 or RADGResults.MasterTableView.IsItemInserted %>'><img style="border:0px" alt="" src="../media/Cancel.gif" /> Cancel editing</asp:LinkButton> 
 
         <asp:LinkButton ID="LinkButton2" runat="server" CommandName="InitInsert" Visible='<%# not RADGResults.MasterTableView.IsItemInserted %>'><img style="border:0px" alt="" src="../media/AddRecord.gif" /> Add new Customer</asp:LinkButton> 
         <asp:LinkButton ID="LinkButton3" runat="server" CommandName="PerformInsert" Visible='<%# RADGResults.MasterTableView.IsItemInserted %>'><img style="border:0px" alt="" src="../media/AddRecord.gif" /> Add this Customer</asp:LinkButton> 
 
        <asp:LinkButton ID="LinkButton1" OnClientClick="javascript:return confirm('Delete all selected customers?')" 
            runat"server" CommandName="DeleteSelected"><img style="border:0px" alt="" src="../media/Delete.gif" /> Delete Selected Customers</asp:LinkButton> 
 
        <asp:LinkButton ID="LinkButton4" runat="server" CommandName="Re bindGrid"><img style="border:0px" alt="" src="../media/Refresh.gif" /> Refresh customer list</asp:LinkButton> 
    <br/> 
    </CommandItemTemplate> 
 
            </MasterTableView> 
</telerik:RadGrid> 
    </div> 
    </form> 
</body> 
</html> 
 
 
In the code behind  
Partial Public Class _Default  
    Inherits System.Web.UI.Page  
 
    Public DBGrid As New GridBind  
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load  
        '  changes grid into inline edit mode without rebind  
        Dim i As Integer  
        For i = 0 To RADGResults.PageSize - 1  
            RADGResults.EditIndexes.Add(i)  
        Next i  
 
    End Sub  
 
    Private Sub RADGResults_NeedDataSource(ByVal source As Object, ByVal e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles RADGResults.NeedDataSource  
       RADGResults.DataSource = Me.GridSource 
    End Sub  
 Private ReadOnly Property GridSource() As DataTable

Get
Dim obj As Object = Me.ViewState("_gds")
If (Not obj Is Nothing) Then
Return CType(obj, DataTable)

Else

Dim table As New DataTable()
table = loadgrid()
Me.ViewState("_gds") = table
Return table
End If

End Get
End Property

Protected Function loadgrid() As DataTable

Dim dt As New DataTable
ds = CrotablemaintPkgDAO.getExposureSummary.createRequest(FilingControl.StateCode, FilingControl.FilingID, txtClassCd.Text, "curExp").execute
If ds.Tables(0).Rows.Count > 0 Then
dt = ds.Tables(0)
end if
end function

    Private Sub RADGResults_UpdateCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles RADGResults.UpdateCommand  
        'gridclientselectcolumn selected for multiple updates  
        For Each dataitem As Telerik.Web.UI.GridEditableItem In RADGResults.SelectedItems  
 
            '  For Each dataitem As Telerik.Web.UI.GridDataItem In RADGResults.MasterTableView.Items  
            '   For Each dataitem As Telerik.Web.UI.GridEditableItem In RADGResults.MasterTableView.Items   'even tried Editable Item  
 
            Dim strsql As String  
            'the grid.datasource is now nothing  
            strsql = dataitem("Report_Number").Text 'cannot retrieve any edittemplate/itemtemplate/boundcolumn values  
        Next  
    End Sub  
    Private Sub RADGResults_InsertCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles RADGResults.InsertCommand  
        Dim insertedItem As Telerik.Web.UI.GridEditFormInsertItem = DirectCast(e.Item, Telerik.Web.UI.GridEditFormInsertItem)  
        'the grid.datasource is now nothing  
        Dim risk As String = (TryCast(insertedItem("Report_Number").Controls(0), TextBox)).Text     'cannot retrieve the inserted edittemplate/itemtemplate/boundcolumn values  
 
    End Sub  
 
 
End Class  
 


Yavor
Telerik team
 answered on 02 Oct 2008
2 answers
157 views
Hi Guys,

I'm a newbie for Telerik so I want to know about the ability of Grid for ASP.NET.

The one that I want to know is : Is there any way to use RadGrid for multiple input text in multiple line?( like table with many input text ).

Please let me know if the other controls can do that.

Thanks in advance.
-Toi
toi
Top achievements
Rank 1
 answered on 02 Oct 2008
1 answer
113 views
We're using telerik:RadHtmlField in our MOSS site as rich-text editor.

The problem is that it does not get configured for multilanguages.It is required that the appropriate language dictionary should get picked for spell check, based on language preference settings(used IE). For example, if user's language prefernce is french then the french dictionary should be picked, provided the language pack is installed and dictionary exists. If language prefernce changes then apropriate dictionary should be used.

Following options are already tried: 

The language pack are installed.We tried with following settings in the ToolsFile.
<Languages>
   <language code="en-US" title="English"></language>
   <language code="fr-FR" title="French"></language>
</Languages>

and configuring  the ConfigFile with:
<property name="Language">fr-FR</property>
<property name="SpellDictionaryLanguage">fr-FR</property>


It will be great if any body can provide any pointer or lay down sequence of steps(with values to be used) to achieve this.

Thanks in advance
Jas 
George
Telerik team
 answered on 02 Oct 2008
6 answers
124 views
Hi !!

I researched the information but did not find, I would like to know if "rad tooltip" can be integrated with the calendar component of VisualStudio or "RadCalendar" and if there are examples to start integration?

Tks !
Svetlina Anati
Telerik team
 answered on 02 Oct 2008
1 answer
108 views

Hi
I am facing a problem in telerik grid.

I have used BoundColumns as well as Template Columns like RadComboBox and MaskedTextBox in my Grid.

<

telerik:GridBoundColumn DataField="TimesheetDate" HeaderText="Timesheet Date" UniqueName="TimesheetDate" HeaderStyle-Width="20%">
<HeaderStyle Width="20%"></HeaderStyle></telerik:GridBoundColumn>

<telerik:GridTemplateColumn HeaderText="Location" HeaderStyle-Width="30%" UniqueName="Location"><ItemTemplate>
<telerik:RadComboBox ID="RadComboBox6" Runat="server" CssClass="bodytxt" DataTextField="desc" DataValueField="Id" MarkFirstMatch="True" Skin="Web20" ToolTip="Select a recipient" Width="200px" DataSourceID="sqlLocations" Font-Size="10pt">
<CollapseAnimation Duration="200" Type="OutQuint" />
</telerik:RadComboBox>
</ItemTemplate>
<
HeaderStyle Width="30%"></HeaderStyle>
</telerik:GridTemplateColumn>

<telerik:GridTemplateColumn HeaderText="Time In" HeaderStyle-Width="15%" UniqueName="TimeIn"> 
<ItemTemplate>
<asp:TextBox ID="txtTimeIn" runat="server" Width="75px" CssClass="textfields"></asp:TextBox> </ItemTemplate>
<
HeaderStyle Width="15%"></HeaderStyle>
</telerik:GridTemplateColumn>

I am accessing the values of Bound Columns like this:

foreach
(GridDataItem item in RadGrid1.MasterTableView.GetItems(new GridItemType[] {GridItemType.Item, GridItemType.AlternatingItem }))
{
    GridDataItem dataitem = (GridDataItem)item;
    TableCell cell = dataitem["TimesheetDate"];
    TextBox tBox = (TextBox)cell.FindControl("TimesheetDate");
    DateTime timesheetDate = Convert.ToDateTime(dataitem["TimesheetDate"].Text);
}

The Problem is:
When i try to access the value in the Template column while using the same method, I am getting a 'null' in the Text property.

Please note that i am accessing the values in <ItemTemplate> not in "<EditItemTemplate>"

Sebastian
Telerik team
 answered on 02 Oct 2008
2 answers
90 views

Good morning Telerik Community,

I am having a problem with Rad Tool Tip.

The tool tip that I am using:

- Is dimensioned to be 900px (wide), 300px (tall)

- Slides up from the bottom center

- contains a custom control that displays bounded data.

Symptom:

- The 900px * 300px “Telerik Tool Tip Box” loads fine, but for a few seconds the custom control  loads outside to the bottom left of the “Telerik Tool Tip Box” and then “snaps inside the box" it when it is done loading. This is a problem.

- This only seems to happen if the Tool tip for that item has already been displayed. Meaning I click on an Item1, ToolTip1 pops up. Then click on Item2, and then back to Item1 again (ToolTip1 pops up again, but now with that above error).

(Could be a caching problem?)

Truly stumped,

Regards,

-matthew

Svetlina Anati
Telerik team
 answered on 02 Oct 2008
7 answers
121 views
Hello,

I am using a radCalendar and creating Special Days based the selected date on the calendar.  For example, if someone clicks on 7/2/2008, certain specials days are rendered based on that date (7/3, 7/4, etc).

However, when a user clicks on a date towards the end of the month, like on 7/26, and one of the newly rendered specials days falls onto the Next month (i.e. 8/1), the calendar returns:

Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index" 

When this scenario occurs, I am setting the calendar.MultiViewRows = 2, but that does nothing.  Ideally, I'd like to show only a single month view when all the special days fall in the same month, but show 2 months when the starting special day and the ending special day are different.  Your help will be greatly appreciated.


Missing User
 answered on 02 Oct 2008
0 answers
124 views
Hi

I have a problem with the tabstrip , i have made a solution like the one in the samples where i dynamicaly load  the controlls on to the multipages.
the sample in question is http://demos.telerik.com/ASPNET/Prometheus/TabStrip/Examples/ApplicationScenarios/LoadOnDemand/DefaultCS.aspx

the problem is that all page_load events on the diffrent tabs are fired when changing tabs. Is there a way to check wich tab that is clicked. so i can avoid loading the data for the non visible pages?

br
Andreas
Andreas
Top achievements
Rank 1
 asked on 02 Oct 2008
3 answers
231 views
It seems I'm having what is known as a blonde moment ...

I am using the RadUpload control RadUpload.Net2, Version=2008.1.415.20
and am getting confussed over what should actually be referenced in the web.config file.

I know I have to add references to the http handlers for the upload progress and also into the http modules. but am getting mixed up with the version numbers and public key token values.

I currently have the following:

<

httpHandlers>

<

remove path="*.asmx" verb="*"/>

<

add path="*.asmx" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>

<

add path="*_AppService.axd" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>

<

add path="ScriptResource.axd" verb="GET,HEAD" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>

<

add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2008.1.415.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false"/>

<

add path="ChartImage.axd" verb="*" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Version=2008.1.415.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false"/>

<

add path="Telerik.RadUploadProgressHandler.aspx" verb="*" type="Telerik.WebControls.RadUploadProgressHandler, RadUpload.Net2, Version=2008.1.415.20, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

</

httpHandlers>

<

httpModules>

<

add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

<

add name="RadUploadModule" type="Telerik.WebControls.RadUploadHttpModule, RadUpload.Net2, Version=2008.1.415.20, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

</

httpModules>

Could some one please point me in the right direction as to what the text should
actually read.

thanks in advance
Chris
Peter
Telerik team
 answered on 02 Oct 2008
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?