Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
113 views
Hi,
I have a Masterpage.
Inside this Masterpage is a Contentpage which has a Radajaxmanager and a Tabstrip + MultipageView.
For each Multipage a Webusercontrol which has Radgrid is loaded dynamically (onclick of Tabstrip).

What i want to achieve is, that if a particular Button in the Radgrid (which resides in the Webusercontrol) is clicked,
the Tab changes and shows the Grid of another Webusercontrol.

Until now, everything works fine. Except that the Tab is not changing. (The Multipage changes, and the other Grid is shown, but the selected tab remains).

If i set enableajax of Ragajaxmanager to false, it works as expected.

Here is some of my Code:
 
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" Runat="server"
    Skin="Default">
</telerik:RadAjaxLoadingPanel>
<telerik:RadAjaxManager runat="server" ID="RadAjaxManager1" OnAjaxRequest="RadAjaxManager1_AjaxRequest"  EnableAJAX="true" >
    <AjaxSettings>
       <telerik:AjaxSetting AjaxControlID="rtsGostTab">
            <UpdatedControls>
                  
                <telerik:AjaxUpdatedControl ControlID="RadMultiPage1" LoadingPanelID="RadAjaxLoadingPanel1" />
                <telerik:AjaxUpdatedControl ControlID="rtsGostTab" />
            </UpdatedControls>
        </telerik:AjaxSetting>
     <telerik:AjaxSetting AjaxControlID="RadMultiPage1">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadMultiPage1" LoadingPanelID="RadAjaxLoadingPanel1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>
 
 
 <telerik:RadTabStrip ID="rtsGostTab" SelectedIndex="0" CssClass="tabStrip"
                 runat="server" MultiPageID="RadMultiPage1" Skin="Office2010Blue" OnTabClick="RadTabStrip1_TabClick" Orientation="HorizontalTop">
             </telerik:RadTabStrip>
             <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0" OnPageViewCreated="RadMultiPage1_PageViewCreated" CssClass="multiPage">
             </telerik:RadMultiPage>

As I said, in the Webusercontrol is a simple Grid, so i tried following in the Code behind.
void GostGrid_ItemCreated(object sender, GridItemEventArgs e)
{
    if ((e.Item) is GridDataItem)
    {
        GridDataItem item = (GridDataItem)e.Item;
        LinkButton btn = (LinkButton)item["Perspective"].FindControl("lbtnPerspective");
        RadAjaxManager AjaxManager = RadAjaxManager.GetCurrent(Page);
        AjaxManager.AjaxSettings.AddAjaxSetting(btn, this.Page.Master.FindControl("MainContentPlaceHolder").FindControl("rtsGostTab"), null);
    }
}

I expected, that if I click on the Linkbutton, the Tabstrip updates too (as it does if i set enableajax to false).

Has anybody an advise?
Maria Ilieva
Telerik team
 answered on 20 Nov 2012
3 answers
65 views
Wondering whether anyone has suggestions about best practices for speeding up publishing.

The developers on my project regularly update websites using the VS 2010 Publish Website wizard and FTP. The site files are generally less than 5mb, and then there are the 35mb of Telerik DLL and XML files. Files are precompiled, so no raw code is placed on the remote server.

These applications often change; a new report is added, a form is modified, etc., and changes are posted as they are requested and completed. The publish wizard replaces the whole site structure, uploading 40mb of files of which at least 35mb haven't changed.

Is there a reliable way to publish only the changed files, and exclude the Telerik files?

TIA for any suggestions.
Andrey
Telerik team
 answered on 20 Nov 2012
1 answer
421 views
Hai,
    
     How can I change the font size of the raddatepicker. thanks in advance.

Allen
Princy
Top achievements
Rank 2
 answered on 20 Nov 2012
1 answer
93 views
Hi
How can I hide the 'more' link of the appointments in the radscheduler??

thanks
RT
Princy
Top achievements
Rank 2
 answered on 20 Nov 2012
1 answer
104 views
Hi there
How can I remove the refresh button from my grid.

thanks
RT
Shinu
Top achievements
Rank 2
 answered on 20 Nov 2012
1 answer
99 views
Hi,
     I want to access controls placed in norecordtemplate from code behind. Can anybody help me do this. thanks
Savyo
Shinu
Top achievements
Rank 2
 answered on 20 Nov 2012
1 answer
128 views
Dear All 
Hi 
I want to rewrite my url without display id field in my url 
for example: 
From - http://www.domain.com/page.aspx?id=1&title=xyz
To - http://www.domain.com/xyz.aspx
So is it possible to rewrite url without id filed 
Plz anyone can help me............

thanx in advance..
Sushobhit Raman
moegal
Top achievements
Rank 1
 answered on 20 Nov 2012
4 answers
113 views
Hi Team,

I don't know how to name the exact term of my requirement. I can say it is like Pie of Pie chart.

Details of Requirement:
In my asp.net page, I want to display 2 pie charts on a same chart area (let say the data is monthly status of task created for a project). The first chart will contain 2 points, 1st point for the percentage (%) of Completed category tasks and 2nd point for rest of category tasks. The 2nd chart will contain the detail breakdown the rest of categroy task like "Not Started" or "WIP" etc.

I have attached a sample image the kind of requirement I am having. I want to know whether it can be possible with Telerik chart or not, if yes then how.

Thanks in advance for the replies...

Regards
Tripati
Top achievements
Rank 1
 answered on 20 Nov 2012
1 answer
106 views
Hi Guys,

We have a grid with 2 nested child grids. Originally we had used load on demand but the users wanted an auto-expand feature. So we have added an autoexpand function to loop through and expand where possible. The result is really slow and IE is throwing a "Stop running this script" warning.

I looked at the rendered code and noticed that there is a hell of a lot of javascript being created

Sys.Application.add_init(function() {
    $create(Telerik.Web.UI.RadGrid, {"ClientID":"ctl00_CPH1_m_radgrdLevelHICL_ctl00_ctl63_m_radgrdLevel1","ClientSettings":{"AllowAutoScrollOnDragDrop":true,"ShouldCreateRows":true,"DataBinding":{},"Selecting":{"CellSelectionMode":0},"Scrolling":{},"Resizing":{},"ClientMessages":{},"KeyboardNavigationSettings":{"AllowActiveRowCycle":false,"EnableKeyboardShortcuts":true,"FocusKey":89,"InitInsertKey":73,"RebindKey":82,"ExitEditInsertModeKey":27,"UpdateInsertItemKey":13,"DeleteActiveRow":127,"ExpandDetailTableKey":39,"CollapseDetailTableKey":37},"Animation":{}},"Skin":"Default","UniqueID":"ctl00$CPH1$m_radgrdLevelHICL$ctl00$ctl63$m_radgrdLevel1","_activeRowIndex":"","_controlToFocus":"","_currentPageIndex":0,"_editIndexes":"[]","_embeddedSkin":true,"_gridTableViewsData":"[{\"ClientID\":\"ctl00_CPH1_m_radgrdLevelHICL_ctl00_ctl63_m_radgrdLevel1_ctl00\",\"UniqueID\":\"ctl00$CPH1$m_radgrdLevelHICL$ctl00$ctl63$m_radgrdLevel1$ctl00\",\"PageSize\":10,\"PageCount\":1,\"EditMode\":\"EditForms\",\"AllowPaging\":false,\"CurrentPageIndex\":0,\"VirtualItemCount\":0,\"AllowMultiColumnSorting\":false,\"AllowNaturalSort\":true,\"AllowFilteringByColumn\":false,\"PageButtonCount\":10,\"HasDetailTables\":false,\"HierarchyLoadMode\":\"Client\",\"PagerAlwaysVisible\":false,\"IsItemInserted\":false,\"clientDataKeyNames\":[],\"_dataBindTemplates\":false,\"_selectedItemStyle\":\"\",\"_selectedItemStyleClass\":\"rgSelectedRow\",\"_columnsData\":[{\"UniqueName\":\"ExpandColumn\",\"Resizable\":false,\"Reorderable\":false,\"Selectable\":false,\"Groupable\":false,\"ColumnType\":\"GridExpandColumn\",\"DataTypeName\":\"System.String\",\"ExpandImageUrl\":\"\",\"CollapseImageUrl\":\"\",\"Display\":true},{\"UniqueName\":\"CheckboxColumn\",\"Resizable\":true,\"Reorderable\":true,\"Selectable\":true,\"Groupable\":true,\"ColumnType\":\"GridTemplateColumn\",\"DataTypeName\":\"System.String\",\"DataField\":\"\",\"Display\":true},{\"UniqueName\":\"LinkButtonColumn\",\"Resizable\":true,\"Reorderable\":true,\"Selectable\":false,\"Groupable\":false,\"ColumnType\":\"GridButtonColumn\",\"DataTypeName\":\"System.String\",\"ButtonType\":\"LinkButton\",\"CommandName\":\"Redirect\",\"CommandArgument\":\"\",\"Text\":\"\",\"DataTextField\":\"CodeNumber\",\"DataTextFormatString\":\"\",\"ImageUrl\":\"\",\"Display\":true},{\"UniqueName\":\"CodeNumber\",\"Resizable\":true,\"Reorderable\":true,\"Selectable\":true,\"Groupable\":true,\"ColumnType\":\"GridBoundColumn\",\"DataTypeName\":\"System.String\",\"DataField\":\"CodeNumber\",\"Display\":true},{\"UniqueName\":\"CodeName\",\"Resizable\":true,\"Reorderable\":true,\"Selectable\":true,\"Groupable\":true,\"ColumnType\":\"GridBoundColumn\",\"DataTypeName\":\"System.String\",\"DataField\":\"CodeDescription\",\"Display\":true},{\"UniqueName\":\"Type\",\"Resizable\":true,\"Reorderable\":true,\"Selectable\":true,\"Groupable\":true,\"ColumnType\":\"GridBoundColumn\",\"DataTypeName\":\"System.String\",\"DataField\":\"Type\",\"Display\":true},{\"UniqueName\":\"IngestDate\",\"Resizable\":true,\"Reorderable\":true,\"Selectable\":true,\"Groupable\":true,\"ColumnType\":\"GridBoundColumn\",\"DataTypeName\":\"System.String\",\"DataField\":\"IngestDate\",\"Display\":true},{\"UniqueName\":\"AddElementColumn\",\"Resizable\":true,\"Reorderable\":true,\"Selectable\":true,\"Groupable\":true,\"ColumnType\":\"GridTemplateColumn\",\"DataTypeName\":\"System.String\",\"DataField\":\"\",\"Display\":true},{\"UniqueName\":\"DeleteColumn\",\"Resizable\":true,\"Reorderable\":true,\"Selectable\":true,\"Groupable\":true,\"ColumnType\":\"GridTemplateColumn\",\"DataTypeName\":\"System.String\",\"DataField\":\"\",\"Display\":true}]}]","_hierarchySettings":{"ExpandTooltip":"Expand","CollapseTooltip":"Collapse","SelfExpandTooltip":"Self reference expand","SelfCollapseTooltip":"Self reference collapse","ViewState":{}},"_masterClientID":"ctl00_CPH1_m_radgrdLevelHICL_ctl00_ctl63_m_radgrdLevel1_ctl00","_shouldFocusOnPage":false,"allowMultiRowSelection":false,"clientStateFieldID":"ctl00_CPH1_m_radgrdLevelHICL_ctl00_ctl63_m_radgrdLevel1_ClientState"}, null, null, $get("ctl00_CPH1_m_radgrdLevelHICL_ctl00_ctl63_m_radgrdLevel1"));
});

That code is generated for every child and grandchild grid, can someone explain to me whats happening here and if there is anything I can do to prevent it?

Regards
Ross
Marin
Telerik team
 answered on 20 Nov 2012
1 answer
47 views
I have a radgrid and updating using EditMode=Popup.

When I get the newvalues the values are getting sorted in the order of 'Column name'.

How do I get the order that is displayed in the radgrid?

CODE:
If TypeOf e.Item Is GridEditFormItem Then
                Dim id As Integer = Convert.ToInt32(e.Item.OwnerTableView.DataKeyValues(e.Item.ItemIndex)("rowId").ToString())
                e.Item.OwnerTableView.ExtractValuesFromItem(newValues, editedItem)
Eyup
Telerik team
 answered on 20 Nov 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
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?