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

I am trying to add a Telerik RadDatePicker to a SharePoint page. I have already added the RadScriptManager control to the page.
The control loads but with javascript error. When I try to pick a date, the page slows up and a lot of javascript pop up error messages get displayed.

The same phenomenon does not happen in a normal asp.net website page. I have followed all the insttructions mentioned in
http://www.telerik.com/help/aspnet-ajax/moss-install-aspnet-ajax-35.html
to ajaxify the moss site.

Please let me know what I am missing here.

Regards
Akhila
Tsvetoslav
Telerik team
 answered on 02 Jul 2010
11 answers
253 views
When the page loads the "No data found" message appears.

If set AutogenerateColumns = true then data appears.

Why does no data appear when explicitly creating columns?

 <telerik:RadGrid  
        ID="RadGrid1" 
        runat="server" 
        AllowPaging="true" 
        AutoGenerateColumns="false"
        <telerik:MasterTableView TableLayout="Auto"
            <Columns> 
                <telerik:GridBoundColumn 
                    DataField="Name" 
                    DataType="System.String" 
                    HeaderText="Name" 
                    SortExpression="Name" 
                    UniqueName="Name"
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn 
                    DataField="Description" 
                    DataType="System.String" 
                    HeaderText="Description" 
                    SortExpression="Description" 
                    UniqueName="Description"
                </telerik:GridBoundColumn> 
                <telerik:GridTemplateColumn 
                    HeaderText="Status"
                    <ItemTemplate> 
                        <%# (Boolean.Parse(Eval("IsDeleted").ToString())) ? "Deleted" : "Active" %> 
                    </ItemTemplate> 
                </telerik:GridTemplateColumn>                 
            </Columns> 
        </telerik:MasterTableView> 
</telerik:RadGrid> 
protected void Page_Load(object sender, EventArgs e) 
        { 
            ReportManager mgr = Global.Container.Resolve<ReportManager>(); 
            IList<ServerReport> reports = mgr.GetAllReports(); 
            RadGrid1.DataSource = reports;             
 
            //grdvwReportList.DataSource = reports; 
            //grdvwReportList.DataBind(); 
        }     

Tsvetoslav
Telerik team
 answered on 02 Jul 2010
3 answers
476 views
Hi
I have Radgrid with few GridDateTimeColumn and it is bound to Datetime column from database, and i have null values in datetime column in my database, problem is i have griddatetimecolumn binded to datetime column but it show error if value from database is null

example.
<telerik:GridDateTimeColumn DataField="ApplicationDate" DataType="System.DateTime"    
HeaderText="ApplicationDate" SortExpression="ApplicationDate"   
SelectedDate='<%# Bind( "ApplicationDate" ) %>' UniqueName="ApplicationDate" /> 

now '<%# Bind( "ApplicationDate" ) %>' also contains null value if there is any date in database then there is no problem but if there is null value then it shows error : Sys.WebForms.PageRequestManagerServerErrorException: 


Please help me to resolve this i want to have GridDateTimeColumn in radgrid but with it also accepts null date value.


Kind Regards:
Harinder Singh
McConnell Dowell
Singapore









Tsvetoslav
Telerik team
 answered on 02 Jul 2010
2 answers
112 views
Hello,

I have a simple RADGrid bound to a SQLDataSource with a RadTemplateColumn/EditItemTemplate RadTextBox control. I used the Telerik provided example to apply the bound value but it only is visible in EditMode. What am I missing?

Thank you,

SteveO

 

<telerik:RadGrid ID="RadGrid1"

 

 

    runat="server"

 

 

    AllowAutomaticDeletes="True"

 

 

    AllowAutomaticInserts="True"

 

 

    AllowAutomaticUpdates="True"

 

 

    GridLines="None"

 

 

    OnItemInserted="RadGrid1_ItemInserted"

 

 

    OnItemCreated="RadGrid2_ItemCreated"

 

 

    OnItemUpdated="RadGrid1_ItemUpdated"

 

 

    OnInsertCommand="RadGrid1_ItemInsert"

 

 

    OnUpdateCommand="RadGrid1_ItemUpdate"

 

 

    Skin="Simple"

 

 

    ShowStatusBar="True"

 

 

    DataSourceID="SqlDataSource2"

 

 

    AllowPaging="True" >

 

 


<
ValidationSettings EnableValidation="true" ValidationGroup="DropDownValidate" />

 

 


<
MasterTableView runat="server"

 

 

    EditMode="InPlace"

 

 

    CommandItemDisplay="Top"

 

 

    DataSourceID="SqlDataSource2"

 

 

    AutoGenerateColumns="false"

 

 

    ExpandCollapseColumn-ButtonType="ImageButton"

 

 

    ExpandCollapseColumn-CollapseImageUrl="~/Images/zoom-out-icon[1].png"

 

 

    ExpandCollapseColumn-ExpandImageUrl="~/Images/zoom-in-icon[1].png"

 

 

    DataKeyNames="ActivityID"

 

 

    InsertItemPageIndexAction="ShowItemOnCurrentPage" >

 

 

 


<
RowIndicatorColumn>

 

 

<HeaderStyle Width="20px"></HeaderStyle>

 

 

</RowIndicatorColumn>

 

 

<ExpandCollapseColumn>

 

 

<HeaderStyle Width="20px"></HeaderStyle>

 

 

</ExpandCollapseColumn>

 

 


<
EditFormSettings>

 

 

<EditColumn UniqueName="EditCommandColumn" ButtonType="ImageButton"

 

 

CancelImageUrl="~/Images/filterCancel.png"

 

 

UpdateImageUrl="~/Images/selecttag.png"

 

 

InsertImageUrl="~/Images/add-icon[2].png"

 

 

EditImageUrl="~/Images/edit-icon[1].png" >

 

 

</EditColumn>

 

 

</EditFormSettings>

 

 

 


<
Columns>

 

 

 

    <telerik:GridTemplateColumn DataField="ActDescription" HeaderText="Description" UniqueName="ActDescription" Display="true">

 

 

        <EditItemTemplate>

 

 

            <telerik:RadTextBox ID="Description" runat="server" Text='<%# Bind("ActDescription") 
                
TextMode="MultiLine"                     Width="300"></telerik:RadTextBox>

 

 

        </EditItemTemplate>

 

 

    </telerik:GridTemplateColumn>
</Columns>

 

 


</
MasterTableView>

 

 

 

 

 

</telerik:RadGrid>

 

 

<asp:SqlDataSource ID="SqlDataSource2" runat="server"

 

 

ConnectionString="<%$ ConnectionStrings:CIMT %>"

 

 

DeleteCommand="DELETE FROM [CIMT_T_Activities] WHERE [ActivityID] = @ActivityID"

 

 

InsertCommand="INSERT INTO [CIMT_T_Activities] ([ActDescription], [ActToDate], [ActFromDate], [UnitLogID], [InsertBy], [InsertDate], [UpdateBy], [UpdateDate]) VALUES (@ActDescription, @ActToDate, @ActFromDate, @UnitLogID, @InsertBy, @InsertDate, @UpdateBy, @UpdateDate)"

 

 

SelectCommand="SELECT [ActivityID], [ActDescription], [ActToDate], [ActFromDate], [UnitLogID], [InsertBy], [InsertDate], [UpdateBy], [UpdateDate] FROM [CIMT_T_Activities] WHERE [UnitLogID] = @UnitLogID"

 

 

UpdateCommand="UPDATE [CIMT_T_Activities] SET [ActDescription] = @ActDescription, [ActToDate] = @ActToDate, [ActFromDate] = @ActFromDate, [UnitLogID] = @UnitLogID, [UpdateBy] = @UpdateBy, [UpdateDate] = @UpdateDate WHERE [ActivityID] = @ActivityID">

 

 

 

 

 

<SelectParameters>

 

 

 

 

 

<asp:SessionParameter Name="UnitLogID" SessionField="UnitLogID" Type="Int32" />

 

 

 

 

 

</SelectParameters>

 

 

 

 

 

<DeleteParameters>

 

 

 

 

 

<asp:Parameter Name="ActivityID" Type="Int32" />

 

 

 

 

 

</DeleteParameters>

 

 

 

 

 

<InsertParameters>

 

 

 

 

 

<asp:SessionParameter Name="UnitLogID" SessionField="UnitLogID" Type="Int32" />

 

 

 

 

 

<asp:Parameter Name="ActDescription" Type="String" />

 

 

 

 

 

<asp:Parameter DbType="DateTime" Name="ActToDate" />

 

 

 

 

 

<asp:Parameter DbType="DateTime" Name="ActFromDate" />

 

 

 

 

 

<asp:Parameter Name="InsertBy" Type="String" />

 

 

 

 

 

<asp:Parameter DbType="DateTime" Name="InsertDate" />

 

 

 

 

 

<asp:Parameter Name="UpdateBy" Type="String" />

 

 

 

 

 

<asp:Parameter DbType="DateTime" Name="UpdateDate" />

 

 

 

 

 

</InsertParameters>

 

 

 

 

 

<UpdateParameters>

 

 

 

 

 

<asp:SessionParameter Name="UnitLogID" SessionField="UnitLogID" Type="Int32" />

 

 

 

 

 

<asp:Parameter Name="ActDescription" Type="String" />

 

 

 

 

 

<asp:Parameter DbType="DateTime" Name="ActToDate" />

 

 

 

 

 

<asp:Parameter DbType="DateTime" Name="ActFromDate" />

 

 

 

 

 

<asp:Parameter Name="InsertBy" Type="String" />

 

 

 

 

 

<asp:Parameter DbType="DateTime" Name="InsertDate" />

 

 

 

 

 

<asp:Parameter Name="UpdateBy" Type="String" />

 

 

 

 

 

<asp:Parameter DbType="DateTime" Name="UpdateDate" />

 

 

 

 

 

<asp:Parameter Name="ActivityID" Type="Int32" />

 

 

 

 

 

</UpdateParameters>

 

 

 

 

 

</asp:SqlDataSource>

 

JSON
Top achievements
Rank 1
 answered on 02 Jul 2010
1 answer
70 views

Hi,

I have a Radgrid name grdActionList displaying data records.
I have a buttton as BtnAdd which, when clicked, opens a RadWindow which in turn has a NavigateUrl property set to AddData.aspx.
 
The AddData.aspx has a few textboxes and a "Add records" button named BtnAddRecords.
When the BtnAddRecords is clicked, the data from the textfields are stored in the DB and the RadWindow is closed.

How can I:

  1. After the RadWindow is closed, the RadGrid is refresh / rebind.
  2. All a message is displayed in the label just above the radgrid.

 

I have written a JS in the base page as to refresh the radgrid:

function OnClientClose()
{
 $get("grdActionList").Rebind();
}

I have defined the RadWindow as:

<telerik:RadWindow ID="Window1" runat="server" EnableViewState="false" NavigateUrl="ActionPopup.aspx" Modal="true" Animation="Fade" VisibleStatusbar="false" Title="Manage Action" OnClientClose="OnClientClose" Behaviors="Close"></telerik:RadWindow>

This doesnot work!

Please help.

Thanks

Shinu
Top achievements
Rank 2
 answered on 02 Jul 2010
17 answers
323 views
Hello!

I have a project with one treeview with checkboxes enabled. I also have a control, with just one property. What i need is to add control every time a node is checked, where the control property takes value from node value checked. It means if you check the first node, the control will be added. If you check a second one, than 2 controls will be shown, and so on. If you uncheck a node, of course the respective control should disappear.

Ok, i'm able to do this, by adding controls at runtime, but this means that every time a control is added or removed the whole zone (panel) will be refreshed. If already there are 10 controls this can take a long time (because this control has a grid inside).

I need an approach to add and remove this control without refreshing the whole panel. I don't know the best way for this... Maybe by adding (and removing) a panel for each control (inside a big panel)? Or is there any better way?

Thank you!
renis cerga
Top achievements
Rank 1
 answered on 02 Jul 2010
1 answer
63 views
Hello Friends,

I am a gr8 follower of RadGrid. I have question regarding an issue which is that
"Is there any event available when we return back to the parent grid from the child grid like GOTFOCUS type of event"

Bcoz my task is that when we return back from the child grid there must be event generated in the parent grid like "GotFocus"type of event  in the parent grid so that some other task can be taken place... 
plz help me out and also plz provide some sample also....

Any help from any one will be highly appreciated.....
Regards
Abhijit
Veli
Telerik team
 answered on 02 Jul 2010
5 answers
334 views
Hello,

I need to set the calendar tooltips (to Dutch) of a DataPicker. The DataPicker is used within in an RadGrid.
I can set the attributes of the textbox, but I cannot set the attributes of the calendar control, that is, I can set them, but they are not used, the application shows the default values.

This is the relevant part of the aspx:
<!-- snapshot from the RadGrid --> 
 
<telerik:GridDateTimeColumn   
    DataField="Gebdatum" HeaderText="Geboorte datum" UniqueName="Gebdat" > 
</telerik:GridDateTimeColumn> 
 
 
And this is the code behind:

Protected Sub FormatieRadGrid_ItemCreated(ByVal sender As ObjectByVal e As Telerik.Web.UI.GridItemEventArgs) Handles FormatieRadGrid.ItemCreated  
 
    If (TypeOf e.Item Is Telerik.Web.UI.GridEditableItem AndAlso e.Item.IsInEditMode) Then 
 
        'This is working  
        Dim gebdat As Telerik.Web.UI.RadDatePicker = CType(CType(e.Item, Telerik.Web.UI.GridEditableItem)("Gebdat").Controls(0), Telerik.Web.UI.RadDatePicker)  
        gebdat.Width = 80  
        gebdat.tooltip = "geboorte datum" 
        gebdat.EnableTyping = False 
 
        'This does work as it gives no exceptions, but the code seems to be ignored   
        Dim cal As Telerik.Web.UI.RadCalendar = CType(gebdat.FindControl("calendar"), Telerik.Web.UI.RadCalendar)  
        cal.ToolTip = "Toon kalender popup" 
        cal.FastNavigationSettings.EnableTodayButtonSelection = False 
        cal.FastNavigationStep = 12  
        cal.FastNavigationNextToolTip = "volgend jaar" 
        cal.FastNavigationPrevToolTip = "vorig jaar" 
        cal.NavigationNextToolTip = "volgende maand" 
        cal.NavigationPrevToolTip = "vorige maand" 
        'The calendar control still shows its defaults values in stead of the adapted ones    
 
    End If 
      
End Sub 
 
 
What am I doing wrong / why doesn't this work as expected?

Regards,
-Ruud.
Radoslav
Telerik team
 answered on 02 Jul 2010
1 answer
100 views
Hi

we have a radgrid populated by a database view. There is a need for a  menu on gridviewrows(documents). When selecting a document, we want a modal popup form that contains different actions like approve and reject documents, show version history and download the document selected.

I struggle to find out how to do different things that is not update/create/delete actions on the selected gridviewrow. Can you recommend how to solve this?

Regards,
daaland1972
Veli
Telerik team
 answered on 02 Jul 2010
1 answer
112 views
Hi all.
I have a radgrid binding on the client by row. with a yahoo-style scrolling
http://demos.telerik.com/aspnet-ajax/grid/examples/client/virtualscrollpagingclientbinding/defaultcs.aspx

Now every time when I drag the scroll to bottom, all data is retrieved and binding again. In my OnRowDataBound I have a lot of javascript code, so the performance isn't good. I would like to copy the existed data bound rows, bind the new I add these to the grid. How can I do that?
Veli
Telerik team
 answered on 02 Jul 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?