Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
135 views
I have a RadGrid which takes as its datasource a programmatically generated DataTable, using LINQ to SQL. When I "Decline" a "Request", the record should be deleted, however, it doesn't disappear from the grid. To clarify, the record is deleted in the database, just not in the grid itself. Here's part of the code in the ItemCommand event:

if (e.CommandName == "Decline") {
    WellnessTeamRequest wtr = WellnessTeamRequest.FindByUserId(e.CommandArgument.ToString());
    wtr.Delete();
    requestsRadGrid.MasterTableView.ClearEditItems();
    requestsRadGrid.DataSource = GetRequestsDS();
    requestsRadGrid.DataBind();
     
 
}

Here's the helper method for the DataSource:

protected DataTable GetRequestsDS() {           
            DataTable dt = createEmptyDataSet(new string[] {"UserID", "Name", "Requested Team"});
            List<WellnessTeamRequest> requests = WellnessTeamRequest.GetAllRequests();
            foreach (WellnessTeamRequest request in requests) {
                DataRow newRow = dt.NewRow();
                newRow["UserID"] = request.UserId;
                newRow["Name"] = request.WellnessUser.User.FullName();
                newRow["Requested Team"] = request.WellnessTeam.TeamName;
                dt.Rows.Add(newRow);
            }
            return dt;
        }




I've tried it using both Rebind() and DataBind(). I can't just refresh the page, as the page actually has three grids on it, the one that is shown is decided using a dropdown and if I refresh the page the previously selected grid disappears. 
Shinu
Top achievements
Rank 2
 answered on 27 Mar 2012
1 answer
91 views
Hi,
We are facing UI issue with Rad Grid Google search ie. filters is giving issue In Google chrome.

Scenario is: When Width of Content in a column exceed drop down width it is giving scrollbar and it is hiding the content.

To reproduce this issue use Google chrome with one row in grid.

Please find the attached image for the same,

Please let us provide solution ASAP.

thanks in advance.
Pavlina
Telerik team
 answered on 27 Mar 2012
1 answer
188 views
Hi,
I am using the list box with check boxes inside it. I am encountring a control issue where the checkboxes are getting automatically unchecked after the post back.
Scenerio : Problem occur when there is scrollig , if we scroll to the end ,after clicking the down arrow button of the scroll and now if the page is PostBack the check boxes gets unchecked..If its not generated for first time then repeat the same procedure for second time this time the checkbox gets unchecked.

Can Anybody help me out with this...
Princy
Top achievements
Rank 2
 answered on 27 Mar 2012
1 answer
189 views
Hi

mastertableview item count is showing zero at needdatasource event. I wanted to get the checked checkbox count at this step. But the item count is zero which prevents looping.

thanks in advance.
Shinu
Top achievements
Rank 2
 answered on 27 Mar 2012
1 answer
150 views
I have a masterpage in which I am loading a page.Masterpage contains RadScriptManager.
In the page,I have a listbox and and radtabstrip, whcih again has grid on 1 page and a label on another page.
When I click on listbox, I want to apply loadingpanel on radtabstrip.

<
asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <asp:Panel runat="server" ID="pnlMain" ScrollBars="Horizontal">
                <telerik:radlistbox id="lstTables" runat="server" selectionmode="Single" onselectedindexchanged="lstTables_OnSelectedIndexChanged"
                    autopostback="true">
                            </telerik:radlistbox>
                <asp:Panel ID="Panel1" runat="server" BorderColor="Gray" BorderStyle="Solid" BorderWidth="1px"
                    >
                    <telerik:radajaxpanel id="RadAjaxPanel1" runat="server" loadingpanelid="RadAjaxLoadingPanel1">
                            <Telerik:RadTabStrip ID="RadTabStrip1" runat="server" MultiPageID="MultiplePages"
                                AutoPostBack="true" SelectedIndex="0">
                                <Tabs>
                                    <Telerik:RadTab PageViewID="pgEmployee" Text="Employee">
                                    </Telerik:RadTab>
                                    <Telerik:RadTab PageViewID="pgHomeAddress" Text="HomeAddress">
                                    </Telerik:RadTab>
                                     
                                </Tabs>
                            </Telerik:RadTabStrip>
  
                            <Telerik:RadMultiPage ID="MultiplePages" runat="server" AutoPostBack="true" RenderSelectedPageOnly="false" SelectedIndex="0">
                              <Telerik:RadPageView ID="pgEmployee" runat="server">
                                    <Telerik:RadGrid runat="server" ID="grdEmployee" EnableAJAX="True" EnableNoRecordsTemplate="True"
                                        GroupingEnabled="false" GridLines="Both" AllowSorting="True" ShowStatusBar="true">
                                        <ClientSettings Scrolling-AllowScroll="true">
                                        </ClientSettings>
                                        <ItemStyle Wrap="false" />
                                    </Telerik:RadGrid>
                                </Telerik:RadPageView>
                                 <Telerik:RadPageView ID="pgHomeAddress" runat="server">
                                    <asp:Label ID="lblAddress" runat="server" Font-Size="Medium"></asp:Label>
                                </Telerik:RadPageView>
                                
                            </Telerik:RadMultiPage>
                            </telerik:radajaxpanel>
                </asp:Panel>
            </asp:Panel>
            <telerik:radajaxloadingpanel id="RadAjaxLoadingPanel1" runat="server" initialdelaytime="0"></telerik:radajaxloadingpanel>
            <telerik:radajaxmanagerproxy id="AjaxManagerProxy2" runat="server">
          
         <AjaxSettings>
         <telerik:AjaxSetting AjaxControlID="grdEmployee">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="grdEmployee" />
            </UpdatedControls>
        </telerik:AjaxSetting>
          <telerik:AjaxSetting AjaxControlID="lstTables">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadTabStrip1" />
                <telerik:AjaxUpdatedControl ControlID="MultiplePages" LoadingPanelID="RadAjaxLoadingPanel1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
  
          
          
    </AjaxSettings>
  
    </telerik:radajaxmanagerproxy>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>

So the problems are
1> For the first time when I click on list item, it doesnt show loading panel.
2>When I click on second tab in strip it shows the loading panel, which doesnt disappear.
3>Still if I change the tab, page hangs, showing 3 loading panels.

I referred following links

http://demos.telerik.com/aspnet-ajax/ajax/examples/manager/firstlook/defaultcs.aspx

http://demos.telerik.com/aspnet-ajax/ajax/examples/manager/usercontrol/defaultcs.aspx



Any idea why it is happening?
Eyup
Telerik team
 answered on 27 Mar 2012
9 answers
470 views
I have been perusing the forum for nearly 2 days but have not found a solution. I have a Telerik Grid placed within a user control. After a Postback, the client side events do not fire, neither a row click javascript or my own custom "alert('Hi')" javascript. But when i place the same code within a .aspx page, it works perfectly. Could the support team please throw some light on this. My entire application runs on user controls so I cannot avoid using it!!!
Maria Ilieva
Telerik team
 answered on 27 Mar 2012
3 answers
93 views
I am using a Usercontrol to edit records in an Ajaxified RadGrid. I have used javascript code to force fullpostback when the RadUpload is used. However, on the server side, the control is always empty. Is this scenario possible and supported?

Jean
Andrey
Telerik team
 answered on 27 Mar 2012
2 answers
97 views
We've noticed what must be a bug in the RadPanelBar, sometimes it seems like the Designer does not update the ContentTemplate, but instead simply adds another ContentTemplate to the markup code, after the previous one. We noticed this bug when we could never see any of the changes we made to a RadPanelBar (it contained just text which was edited), and when we examined the HTML markup, we noticed that there were 2 ContentTemplates, one with the new text and one with the old. Removing the one with the old solved the problem. 
Peter
Telerik team
 answered on 27 Mar 2012
3 answers
225 views
How could I use in a WebService to load the childs of the parent with RadTreeNodeData like ToolTip, Expanded and AllowEdit?

All other properties (eg: Text, Value) are in the RadTreeNodeData object like RadTreeNode.

eg:

Telerik.Web.UI.RadTreeNode node = new Telerik.Web.UI.RadTreeNode();
node.Text = "new node";
node.Value = "25";
node.ToolTip = row["Tooltip"].ToString();


RadTreeNodeData nodeData = new RadTreeNodeData();
nodeData.Text = "new node";
nodeData.Value = "25";
??nodeData.ToolTip??

regards
Thomas
Plamen
Telerik team
 answered on 27 Mar 2012
1 answer
116 views
Hi,

I want to close the edit form (which is a template) server-side in some event handlers. How can I achieve this?

Thanks!
Shinu
Top achievements
Rank 2
 answered on 27 Mar 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?