Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
602 views
Hello,

I have a web page with several individual buttons and also several RadDocks that contain their own RadGrids, all of which are in an UpdatePanel.  On this page, there is quite a bit of functionality that happens on the Page Load Event. 

Now for the individual buttons themselves, I want the page to Postback like normal to reload the page.  However, I don't want to Postback to occur when the user is working with one of the RadGrids.  Currently, when the user adds, edits or deletes a record in one of the RadGrids, this causes a Postback of the page and negatively affects the performance of the overall web page.

I am using the RadAjaxManager as well:

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
     <ajaxsettings>

         <telerik:AjaxSetting AjaxControlID="RadGrid1">
              <UpdatedControls>
                  <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />
              </UpdatedControls>
         </telerik:AjaxSetting>

     </ajaxsettings>
</telerik:RadAjaxManager>


Is it possible to have the RadGrid not Postback so that the performance is not negatively affected?  Any siggestions, tips or work-arounds would be greatly appreciated!

Jason
Tsvetoslav
Telerik team
 answered on 15 Feb 2010
1 answer
74 views
Table tool on toolbar is not working.Is there any fix for this problem?
Rumen
Telerik team
 answered on 15 Feb 2010
1 answer
95 views
Hello,

We have a custom control that shows an error in design mode when dropped on RadMultipage / Radpageview:

"Exceptions occured. Impossible to modify the collection of controls during databinding during phase load, init ..."

whereas it works out of it.

The custom control is a custom drop down list that calls a webservice.

Thanks.
T. Tsonev
Telerik team
 answered on 15 Feb 2010
1 answer
130 views
hi,

i attach an image of the grid and post the code here:

asp:
<telerik:RadGrid ID="radGridChangelog" runat="server" AllowPaging="false" AllowSorting="false" 
                            AutoGenerateColumns="False" GridLines="Both" Width="100%" 
                            OnNeedDataSource="RadGridChangelog_NeedDatasource" 
                            OnItemDataBound="RadGridChangelog_ItemDataBound" 
                            OnItemCreated="RadGridChangelog_ItemCreated"> 
                             
                            <MasterTableView DataKeyNames="id"> 
                             
                                <Columns> 
                                    <telerik:GridBoundColumn DataField="Id" Visible="false"> 
                                    </telerik:GridBoundColumn> 
                                    <telerik:GridTemplateColumn DataField="logtypeID" HeaderText="Logtype" UniqueName="Logtype"> 
                                        <ItemTemplate> 
                                            <asp:Label ID="lblLogtype" runat="server"></asp:Label> 
                                        </ItemTemplate> 
                                    </telerik:GridTemplateColumn> 
                                    <telerik:GridBoundColumn DataField="logdate" HeaderText="Logdate" UniqueName="Logdate"> 
                                    </telerik:GridBoundColumn> 
                                    <telerik:GridTemplateColumn HeaderText="User" UniqueName="User"> 
                                        <ItemTemplate> 
                                            <asp:Label ID="lblUser" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"User.firstname").ToString() + " " + DataBinder.Eval(Container.DataItem,"User.lastname").ToString() %>'></asp:Label> 
                                        </ItemTemplate> 
                                    </telerik:GridTemplateColumn> 
                                    <telerik:GridTemplateColumn DataField="message" HeaderText="Message" UniqueName="Message"> 
                                        <ItemTemplate> 
                                            <asp:Label ID="lblMessage" runat="server"></asp:Label> 
                                        </ItemTemplate> 
                                    </telerik:GridTemplateColumn> 
                                    <telerik:GridBoundColumn DataField="oldValue" HeaderText="OldValue" UniqueName="OldValue"> 
                                    </telerik:GridBoundColumn> 
                                    <telerik:GridBoundColumn DataField="newValue" HeaderText="NewValue" UniqueName="NewValue"> 
                                    </telerik:GridBoundColumn> 
                                </Columns> 
                                <RowIndicatorColumn> 
                                    <HeaderStyle Width="20px"></HeaderStyle> 
                                </RowIndicatorColumn> 
                                <ExpandCollapseColumn> 
                                    <HeaderStyle Width="20px"></HeaderStyle> 
                                </ExpandCollapseColumn> 
                                 
                            </MasterTableView> 
                        </telerik:RadGrid> 

codebehind:
protected void RadGridChangelog_NeedDatasource(object source, GridNeedDataSourceEventArgs e) 
        { 
            RadGrid radGrid = source as RadGrid; 
            radGrid.DataSource = BLDocLog.GetDocLogs(CacheHelper.Instance.Document.id); 
        } 
 
protected void RadGridChangelog_ItemCreated(object sender, GridItemEventArgs e) 
        { 
            if (e.Item is GridHeaderItem) 
            { 
                GridHeaderItem headerItem = e.Item as GridHeaderItem; 
 
                LiteralControl literal = headerItem["Logtype"].Controls[0] as LiteralControl; 
                literal.Text = LanguageHelper.GetText("Logtype"); 
 
                literal = headerItem["Logdate"].Controls[0] as LiteralControl; 
                literal.Text = LanguageHelper.GetText("Logdate"); 
 
                literal = headerItem["Message"].Controls[0] as LiteralControl; 
                literal.Text = LanguageHelper.GetText("Message"); 
 
                literal = headerItem["OldValue"].Controls[0] as LiteralControl; 
                literal.Text = LanguageHelper.GetText("OldValue"); 
 
                literal = headerItem["NewValue"].Controls[0] as LiteralControl; 
                literal.Text = LanguageHelper.GetText("NewValue"); 
            } 
        } 
 
protected void RadGridChangelog_ItemDataBound(object sender, GridItemEventArgs e) 
        { 
            if (e.Item is GridDataItem) 
            { 
                GridDataItem item = (GridDataItem)e.Item; 
                DocLog log = item.DataItem as DocLog; 
 
                if ((log.logtypeID == 0 || log.logtypeID == 1 ) && log.ValueNameID > -1) 
                { 
                    System.Web.UI.WebControls.Label lblMessage = item.FindControl("lblMessage") as System.Web.UI.WebControls.Label; 
                    lblMessage.Text = LanguageHelper.GetText("logValueName" + log.ValueNameID.ToString()); 
                } 
                else 
                { 
                    System.Web.UI.WebControls.Label lblMessage = item.FindControl("lblMessage") as System.Web.UI.WebControls.Label; 
                    lblMessage.Text = log.message ?? ""; 
                } 
 
                System.Web.UI.WebControls.Label lblLogtype = item.FindControl("lblLogtype") as System.Web.UI.WebControls.Label; 
                lblLogtype.Text = LanguageHelper.GetText("logtype" + log.logtypeID.ToString()); 
            } 
        } 

as you see in the attached image, the GridTemplateColumn DataField="message" is missing its gridlines in some rows. i dont know why its doing that. all other columns show their grid lines.

telereik dll version: 2009.3.1103.35
IE version: 7.0.5730.13CO

thx mario



Daniel
Telerik team
 answered on 15 Feb 2010
1 answer
138 views
We're using a RadGrid with client side databinding pointing it to a webservice and specifying a SelectMethod.  This grid also has a 

GridClientDeleteColumn.  When a row is deleted we have a client side event handler tied to the RowDeleting event which is where we call another webservice to make the actual deletion.  Everything is handled by client side code - we have nothing in our code-behind.

Occasionally, it looks like the delete doesn't work.  What I believe is happening is that the grid is updating itself before the web method we call in the RowDeleting event handler has had a chance to complete.  Is there a way to control when the grid updates itself on the client?  What we would like to do is call the web service to delete the data in the RowDeleting event.  Then, in the webservice callback method we have specified we would update the grid. 

 

 

Veli
Telerik team
 answered on 15 Feb 2010
4 answers
287 views
I'm running clientside Callbacks for performance reasons and I would like to Add new elements to the display in the form of HTML/JS and load new Telerik Web Controls as certain selections are processed. The code below samples what I would like to do.

public void RaiseCallbackEvent(String eventArgument)
{
TextWriter text = new StringWriter();
HtmlTextWriter html = new HtmlTextWriter(text);

RadComboBox comboBox = new RadComboBox();
comboBox.ID = "test";
comboBox.RenderControl(html);
html.Flush();

callBackReturn = text.ToString();
}

public String GetCallbackResult()
    {
        return callBackReturn;
    }

The Error i Receive is on comboBox.RenderControl(html) line : Page cannot be null. Please ensure that this operation is being performed in the context of an ASP.NET request.

Can you dynamically create new Telerik controls using ClientSide Callbacks? Will this be something that will be supported in the future?

Thanks,

Matt
T. Tsonev
Telerik team
 answered on 15 Feb 2010
1 answer
143 views
i am developing an ERP and certainly i have to use several RadGrids now i need a functionality in my application
that if a apply some format in my configuration page... then format of date in all grid should have change...
What should do :(
Daniel
Telerik team
 answered on 15 Feb 2010
1 answer
74 views
Hello All,

I have a problem, i hope you could help me.

Here is the scenario:

Grid A : 3 columns, bound columns. read only, drag and drop enabled.
Grid B: 5 columns, bound columns on edit mode "in place".

I want to drag and drop one row from Grid A to Grid B and create the columns without information from Grid A in blank.

Is there any possibilty to do this without losing the info inserted on other rows on grid B and without recording the information on the database?
Tsvetoslav
Telerik team
 answered on 15 Feb 2010
1 answer
93 views
In your demo  http://demos.telerik.com/aspnet-ajax/ajax/examples/manager/dynamicajaxsettings/defaultcs.aspx?product=grid  you dont show the code for the codebehind EmployeesGrid.ascx.cs  can you post that asap.  I think i need to see that to understand how this works.  thanks.
Tsvetoslav
Telerik team
 answered on 15 Feb 2010
1 answer
429 views
Hello Friends

I used new radgrid control in my page. It have more than 18 column need to display without horizontal or vertical scroll.

In old grid it is display fine but i compared new radgrid to old grid. I see there is a more space between column in new rad grid.

How i will reduce the space between column?

Please help me.

Thanks & Regards
Jignesh Patel

Daniel
Telerik team
 answered on 15 Feb 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?