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

I have a RadScheduler on a page, together in a splitter with a few other controls. When the user clicks on a time slot in the scheduler, a pop-up window in another web application is opened. This is accomplished using JS on the scheduler. When the user exits the other web application and closes that window, I want the scheduler to reload (i.e. re-read the data from the datasource).

I can only accomplish this by JavaScript in the other web application, but how can I reload the scheduler using JS?

Best regards
Allan Varcoe
Vesko
Top achievements
Rank 2
 answered on 02 Nov 2009
1 answer
126 views

Hi All,

 I need to use showInsertItem property that switches the grid in insert mode and displays the insertion form when i click "Add New  Record" on RadGrid.
 I Created RadGrid Programmatically and assigned grid.ClientSettings.ClientEvents.OnCommand = "addnewrecord";
 Then i register RegisterClientScriptBlock for addnewrecord on Page_Prerender.
 This is my code:

    RadGrid grid;

    protected void Page_Load(object sender, EventArgs e)
    {
        DataTable gridDataTable = new DataTable();
      

        grid = new RadGrid();
        grid.ID = "grid1";
       
        grid.MasterTableView.CommandItemDisplay = GridCommandItemDisplay.Top;
        grid.MasterTableView.AllowAutomaticInserts = true;
        grid.MasterTableView.InsertItemDisplay = GridInsertItemDisplay.Bottom;

        GridBoundColumn col1 = new GridBoundColumn();
        col1.HeaderText = "col1";
        col1.DataField = "col1";
        GridBoundColumn col2 = new GridBoundColumn();
        col2.HeaderText = "col2";
        col2.DataField = "col2";
        grid.Columns.Add(col1);
        grid.Columns.Add(col2);

        grid.ClientSettings.ClientEvents.OnCommand = "addnewrecord";
       
        grid.DataSource = gridDataTable;
        grid.DataBind();
        Page.Form.Controls.Add(grid);
    }

    protected void Page_PreRender(object sender, EventArgs e)
    {
        string clientd = grid.ClientID;
        string gridScript = "function addnewrecord(sender, args){var masterTable = $find('" + clientd + "').get_masterTableView();masterTable.showInsertItem();}";
        ScriptManager.RegisterClientScriptBlock(this.Page, typeof(Page), "mykey", gridScript, true);
    }

Now,When i click "Add New Record" i get this error:Out of stack space.

Any Help is really appreciated.

Regards,
Ahmad

 

Princy
Top achievements
Rank 2
 answered on 02 Nov 2009
4 answers
301 views
I have a rad grid that I have set up filtering like this demo:
http://www.telerik.com/demos/aspnet/prometheus/Grid/Examples/Programming/FilteringTemplateColumns/DefaultCS.aspx,
except all fields are filtered with a rad combo box.  Now I need a way to clear all filtering.  I have been able to clear the grid, and reset all of the lists in the rad combo boxes.  What I have not been able to do is clear the selected item from the combo, so that when I clear the filtering all of the combos have a blank selection.

Any ideas?

Thanks,
Jim
Shinu
Top achievements
Rank 2
 answered on 02 Nov 2009
1 answer
106 views
I have a radgrid whose purpose is to allow users to page through a potentially large dataset and export it to excel or csv.  At first I was not able to get exporting to work while paging was enabled, but eventually I solved that by binding with the NeedDataSource event.  Now I have a weirder problem I can't figure out - the grid does not bind correctly the first time it is loaded, but it does bind correctly the second time.  And the export button works fine whether the grid renders or not.  Here's the code for the button which shows the grid, the NeedDataSource method, and the declaration of the grid itself:

protected void btnView_Click(object sender, EventArgs e) 
        { 
            grdReport.Visible = true; 
            lblExport.Visible = true; 
            rcbExportFormat.Visible = true; 
            btnExport.Visible = true; 
        } 

protected void grdReport_NeedDataSource(object sender, GridNeedDataSourceEventArgs e) 
        { 
            SqlCommand cmd = new SqlCommand(filterGrid(), new SqlConnection(Session["Connection"].ToString())); 
            DataTable dt = new DataTable(); 
            new SqlDataAdapter(cmd).Fill(dt); 
            cmd.Dispose(); 
            grdReport.DataSource = dt; 
        } 

<telerik:RadGrid ID='grdReport' runat='server' OnNeedDataSource='grdReport_NeedDataSource' AutoGenerateColumns='true' Skin='Simple' AllowPaging='true' /> 

There aren't any UpdatePanels or anything involved, the page is really pretty simple.  And it does all work great the second time the user clicks btnView.  But the first time that button is clicked, the grid just renders as a horizontal grey line.


Shinu
Top achievements
Rank 2
 answered on 02 Nov 2009
1 answer
108 views
Hi,

i have used rad grid with filtering in our project.
This implementation works perfectly except in below mentioned scenerio:
We want filters to implement like queries on grid.
So we have set query as :
([<column value>] like '% <Filter value> %')

But this scenerio does not work when single quote comes in filter value.
It seems we might need to compare encoded values, but i am not to sure how to achieve this as syntax is sql like and i relaly doubt that wheather HtmlEncoding will work in this scenerio?

Princy
Top achievements
Rank 2
 answered on 02 Nov 2009
16 answers
341 views
We are experiencing an issue with the RadDatePicker control.

Whenever we select (or enter) the date "01/01/2009", the control sets the date to "31/01/2008". This behaviour occurs on the Telerik demo page.

Our SOE is Windows XP SP3 (Australia, en-AU) & IE7 (Firefox 3.5.3 also behaves incorrectly).

I have tried on another non-SOE machine running Windows XP SP2 (Australia, en-AU) & IE6 / Firefox 3.0, and this one behaves correctly.

Any ideas?

Thanks
Matthew
Matthew Mckenna
Top achievements
Rank 1
 answered on 02 Nov 2009
2 answers
180 views
Do you have the source for the Radgrid Drag and drop demo from teleriktv I am trying to do what the video shows but need to convert to VB.
Robert
Top achievements
Rank 1
 answered on 01 Nov 2009
2 answers
129 views
hi

I am able to do an update without ajax. but when i use proxy manager for ajax, the update failed. I am using IE8

         <telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="sdsLabTest"   
                    GridLines="None" Skin="Outlook" AllowAutomaticDeletes="True"   
                    AllowAutomaticInserts="True" AllowAutomaticUpdates="True"   
                    AutoGenerateColumns="False">  
<MasterTableView datakeynames="Test_Code" datasourceid="sdsTest" EditFormSettings-PopUpSettings-Width="550px" CommandItemDisplay="Top"   
                        EditMode="PopUp">  
<RowIndicatorColumn> 
<HeaderStyle Width="20px"></HeaderStyle> 
 
 
 <telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">  
                    <AjaxSettings> 
                        <telerik:AjaxSetting AjaxControlID="RadGrid1">  
                            <UpdatedControls> 
                                <telerik:AjaxUpdatedControl ControlID="RadGrid1" /> 
                            </UpdatedControls> 
                        </telerik:AjaxSetting> 
                    </AjaxSettings> 
                </telerik:RadAjaxManagerProxy> 
</RowIndicatorColumn> 
 
<ExpandCollapseColumn> 
<HeaderStyle Width="20px"></HeaderStyle> 
</ExpandCollapseColumn> 
    <Columns> 
        <telerik:GridBoundColumn DataField="Test_Code" DataType="System.Int32"   
            HeaderText="Code" ReadOnly="True" SortExpression="Test_Code"   
            UniqueName="Test_Code">  
        </telerik:GridBoundColumn> 
        <telerik:GridTemplateColumn DataField="Test_Name" HeaderText="Package Name"   
            SortExpression="Test_Name" UniqueName="Test_Name">  
            <EditItemTemplate> 
                <asp:TextBox ID="Test_NameTextBox" Width="250px" runat="server"   
                    Text='<%# Bind("Test_Name") %>'></asp:TextBox> 
            </EditItemTemplate> 
            <ItemTemplate> 
                <asp:Label ID="Test_NameLabel" runat="server"   
                    Text='<%# Eval("Test_Name") %>'></asp:Label> 
            </ItemTemplate> 
        </telerik:GridTemplateColumn> 
        <telerik:GridTemplateColumn DataField="Test_Description"   
            HeaderText="Items Description" SortExpression="Test_Description"   
            UniqueName="Test_Description">  
            <EditItemTemplate> 
                <FCKeditorV2:FCKeditor ID="FCKeditor1"  ToolbarSet="Basic" Width="400px" Height="150px" value='<%# Bind("Test_Description") %>' runat="server" BasePath="~/fckeditor/">  
                </FCKeditorV2:FCKeditor> 
            </EditItemTemplate> 
            <ItemTemplate> 
                <asp:Label ID="Test_DescriptionLabel" runat="server"   
                    Text='<%# Eval("Test_Description") %>'></asp:Label> 
            </ItemTemplate> 
        </telerik:GridTemplateColumn> 
        <telerik:GridTemplateColumn DataField="Test_Price" DataType="System.Decimal"   
            HeaderText="Price S$" SortExpression="Test_Price" UniqueName="Test_Price">  
            <EditItemTemplate> 
                S$<asp:TextBox ID="Test_PriceTextBox" runat="server"   
                    Text='<%# Bind("Test_Price") %>'></asp:TextBox> 
            </EditItemTemplate> 
            <ItemTemplate> 
                <asp:Label ID="Test_PriceLabel" runat="server"   
                    Text='<%# Eval("Test_Price") %>'></asp:Label> 
            </ItemTemplate> 
        </telerik:GridTemplateColumn> 
        <telerik:GridButtonColumn CommandName="Delete" HeaderText="Delete"   
            Text="Delete" UniqueName="column">  
        </telerik:GridButtonColumn> 
        <telerik:GridEditCommandColumn HeaderText="Edit">  
        </telerik:GridEditCommandColumn> 
      </Columns> 
 
<EditFormSettings> 
<PopUpSettings Width="550px"></PopUpSettings> 
</EditFormSettings> 
</MasterTableView> 
                </telerik:RadGrid> 

I did an update without using ajax and it was working fine. The moment i ajax it, it gave me an error. How do i solve this? Thanks
L
Top achievements
Rank 1
 answered on 01 Nov 2009
2 answers
214 views
Having some strange issues in FF creep up. No probs in IE right now.
Seems the input text fields are not losing focus after I tab off of them or click on some other control.

When I click on a submit button or drop a telerik drop down menu, that action seems to force user interaction with the inputs since the input never lost focus; if that makes any sense...
When I click my submit button it's like the user is clicking the submit and also typing in the current text value into the telerik input field at the same time. The text box proceeds to show a drop down of previous user inputs into that field as if the user jsut typed into it even though the only action is clicking the submit (or whatever the case may be).

I think if the text boxes just lost focus like they should I would avoid this issue.
Anyone else having input manager issues in Firefox?
I've used the input manager in FF before without any problems...
Ellison Bayan
Top achievements
Rank 1
 answered on 31 Oct 2009
8 answers
358 views
Hi,

I have implemented a RAD tooltip manager to a hyperlink inside a grid. Onclick of the hyperlink, tooltip pop-ups properly. But how will you set the focus to the 'X' button inside the tooltip? The 'X' (close) button gets added to the tooltip because we used Hideevent as "ManualClose".

<telerik:RadToolTipManager ID="radToolTipDetail" runat="server" Width="220" OffsetY="-7"
                                OffsetX="10" RelativeTo="Element" Position="BottomCenter" HideEvent="ManualClose"
                                OnAjaxUpdate="OnAJAXUpdate" ShowEvent="OnClick" Height="30px">
</telerik:RadToolTipManager>

Is this possible? Also does this tooltip come under accessibility standards? Thanks.

Regards,
Kishan G K
Kishan Gandikota
Top achievements
Rank 1
 answered on 31 Oct 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?