Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
161 views
I'm trying to add a RadMap (2014.2.618.45) to an existing application that uses Kendo UI (2014.1.318). When both the RadMap and Kendo UI libraries are on the same page, there are javascript and CSS issues. An example is TypeError: l.kendoWidget is undefined. What version of the Kendo libraries are used in the RadMap? Any ideas on how to get these to work on the same page?

Thanks!
Ianko
Telerik team
 answered on 22 Dec 2014
2 answers
217 views
Hi, I'm pretty new to asp.net and Ajax and I'm trying to write a simple apps that will update and create news for our intranet.

The scenario is pretty simple.
I have a radgrid that list all the news, and a dataform that show the item selected from the grid.
So far so good. Editing and inserting new item works.

However, I need to prepopulate some fields ( or edit some existing data ) when I change the value of my combobox inside the dataform.

Here the markup
<telerik:RadAjaxManagerProxy ID="ramp1" runat="server">
         <AjaxSettings >
             <telerik:AjaxSetting AjaxControlID="RadDataForm1" >
                 <UpdatedControls >
                     <telerik:AjaxUpdatedControl ControlID="gridPanel" LoadingPanelID="RadAjaxLoadingPanel1" />
                 </UpdatedControls >
             </telerik:AjaxSetting >
             <telerik:AjaxSetting AjaxControlID="RadGrid1">
                 <UpdatedControls>
                     <telerik:AjaxUpdatedControl ControlID="editorPanel" LoadingPanelID="RadAjaxLoadingPanel1" />
                 </UpdatedControls>
             </telerik:AjaxSetting>
         </AjaxSettings >
    </telerik:RadAjaxManagerProxy>
     
    <div id="editor" style="float:left;">
        <asp:Panel ID="editorPanel" runat="server" >
            <telerik:RadAjaxPanel runat="server" ID="test2" LoadingPanelID="RadAjaxLoadingPanel2">
            <telerik:RadDataForm ID="RadDataForm1" runat="server" DataSourceID="EntityDataSource2" OnItemUpdated="RadDataForm1_ItemUpdated" OnItemInserted="RadDataForm1_ItemInserted" DataKeyNames="ID" OnPreRender="RadDataForm1_PreRender" >
                <LayoutTemplate>
                    <div class="RadDataForm RadDataForm_<%# Container.Skin %> rdfLeftAligned rdfNoFieldHint rdfNoFieldHint">
                        <div id="itemPlaceholder" runat="server">
                        </div>
                        <div style="display:none">
                            <telerik:RadCalendar ID="rdfSharedCalendar" runat="server" RangeMinDate="<%#new DateTime(1900, 1, 1) %>"  />
                        </div>
                        <div style="display:none">
                            <telerik:RadTimeView ID="rdfSharedTimeView" runat="server"  />
                        </div>
                    </div>
                </LayoutTemplate>
                <ItemTemplate>
                    <fieldset class="rdfFieldset rdfBorders">
                        <legend class="rdfLegend">Détail</legend>
                        <div class="rdfRow">
                            <asp:Label ID="TypeIDLabel2" runat="server" CssClass="rdfLabel" Text="TypeID"></asp:Label>
                            <telerik:RadComboBox ID="TypeIDComboBox" runat="server" DataSourceID="EntityDataSource3" DataTextField="Description" DataValueField="ID" SelectedValue='<%# Eval("TypeID")%>' Enabled="false"></telerik:RadComboBox>
                        </div>
                        <div class="rdfRow">
                            <asp:Label ID="TitreLabel2" runat="server" CssClass="rdfLabel" Text="Titre"></asp:Label>
                            <asp:Label ID="TitreLabel1" runat="server" CssClass="rdfFieldValue" Text='<%# Eval("Titre") %>' />
                        </div>
                        <div class="rdfRow">
                            <asp:Label ID="DatePublicationLabel2" runat="server" CssClass="rdfLabel" Text="DatePublication"></asp:Label>
                            <asp:Label ID="DatePublicationLabel1" runat="server" CssClass="rdfFieldValue" Text='<%# Eval("DatePublication") %>' />
                        </div>
                        <div class="rdfRow">
                            <asp:Label ID="DateCreationLabel2" runat="server" CssClass="rdfLabel" Text="DateCreation"></asp:Label>
                            <asp:Label ID="DateCreationLabel1" runat="server" CssClass="rdfFieldValue" Text='<%# Eval("DateCreation") %>' />
                        </div>
                        <div class="rdfRow">
                            <asp:Label ID="DescriptionCourteLabel2" runat="server" CssClass="rdfLabel" Text="DescriptionCourte"></asp:Label>
                            <asp:Label ID="DescriptionCourteLabel1" runat="server" CssClass="rdfFieldValue" Text='<%# Eval("DescriptionCourte") %>' />
                        </div>
                        <div class="rdfRow">
                            <asp:Label ID="DescriptionLongueLabel2" runat="server" CssClass="rdfLabel" Text="DescriptionLongue"></asp:Label>
                            <asp:Label ID="DescriptionLongueLabel1" runat="server" CssClass="rdfFieldValue" Text='<%# Eval("DescriptionLongue") %>' />
                        </div>
                        <div class="rdfRow">
                            <asp:Label ID="CreateurLabel2" runat="server" CssClass="rdfLabel" Text="Createur"></asp:Label>
                            <asp:Label ID="CreateurLabel1" runat="server" CssClass="rdfFieldValue" Text='<%# Eval("Createur") %>' />
                        </div>
                        <div class="rdfRow">
                            <asp:Label ID="ImageFilenameLabel2" runat="server" CssClass="rdfLabel" Text="ImageFilename"></asp:Label>
                            <asp:Label ID="ImageFilenameLabel1" runat="server" CssClass="rdfFieldValue" Text='<%# Eval("ImageFilename") %>' />
                        </div>
                        <div class="rdfCommandButtons">
                            <hr class="rdfHr" />
                            <telerik:RadButton ID="InitInsertButton" runat="server" ButtonType="SkinnedButton" CausesValidation="False" CommandName="InitInsert" Text="Insert" ToolTip="Nouveau" />
                            <telerik:RadButton ID="EditButton" runat="server" ButtonType="SkinnedButton" CausesValidation="False" CommandName="Edit" Text="Modifier" ToolTip="Modifier" />
                        </div>
                    </fieldset>
                </ItemTemplate>
                <EditItemTemplate>
                    <fieldset class="rdfFieldset rdfBorders">
                        <legend class="rdfLegend">Edit</legend>
                        <div class="rdfRow">
                            <asp:Label ID="IDLabel2" runat="server" CssClass="rdfLabel" Text="ID"></asp:Label>
                            <asp:Label ID="IDLabel1" runat="server" CssClass="rdfFieldValue" Text='<%# Eval("ID") %>' />
                        </div>
                        <div class="rdfRow">
                            <asp:Label ID="TypeIDLabel2" runat="server" AssociatedControlID="TypeIDComboBox" CssClass="rdfLabel" Text="TypeID"></asp:Label>
                            <telerik:RadComboBox ID="TypeIDComboBox" runat="server" DataSourceID="EntityDataSource3" DataTextField="Description" DataValueField="ID" SelectedValue='<%# Bind("TypeID")%>'
                                AutoPostBack="true" OnSelectedIndexChanged="TypeIDComboBox_SelectedIndexChanged1" ></telerik:RadComboBox>
                        </div>
                        <div class="rdfRow">
                            <asp:Label ID="TitreLabel2" runat="server" AssociatedControlID="TitreTextBox" CssClass="rdfLabel" Text="Titre"></asp:Label>
                            <telerik:RadTextBox ID="TitreTextBox" runat="server" Text='<%# Bind("Titre") %>' WrapperCssClass="rdfInput" />
                        </div>
                        <div class="rdfRow">
                            <asp:Label ID="DatePublicationLabel2" runat="server" AssociatedControlID="DatePublicationTextBox" CssClass="rdfLabel" Text="DatePublication"></asp:Label>
                            <telerik:RadDateTimePicker ID="DatePublicationTextBox" runat="server" CssClass="rdfPicker" DbSelectedDate='<%# Bind("DatePublication") %>' MinDate="<%#new DateTime(1900, 1, 1) %>" SharedCalendarID='<%# Container.OwnerDataForm.FindControl("rdfSharedCalendar").UniqueID %>' SharedTimeViewID='<%# Container.OwnerDataForm.FindControl("rdfSharedTimeView").UniqueID %>' />
                        </div>
                        <div class="rdfRow">
                            <asp:Label ID="DateCreationLabel2" runat="server" AssociatedControlID="DateCreationTextBox" CssClass="rdfLabel" Text="DateCreation"></asp:Label>
                            <telerik:RadDateTimePicker ID="DateCreationTextBox" runat="server" CssClass="rdfPicker" DbSelectedDate='<%# Bind("DateCreation") %>' MinDate="<%#new DateTime(1900, 1, 1) %>" SharedCalendarID='<%# Container.OwnerDataForm.FindControl("rdfSharedCalendar").UniqueID %>' SharedTimeViewID='<%# Container.OwnerDataForm.FindControl("rdfSharedTimeView").UniqueID %>'/>
                        </div>
                        <div class="rdfRow">
                            <asp:Label ID="DescriptionCourteLabel2" runat="server" AssociatedControlID="DescriptionCourteTextBox" CssClass="rdfLabel" Text="DescriptionCourte"></asp:Label>
                            <telerik:RadTextBox ID="DescriptionCourteTextBox" runat="server" Text='<%# Bind("DescriptionCourte") %>' WrapperCssClass="rdfInput" />
                        </div>
                        <div class="rdfRow">
                            <asp:Label ID="DescriptionLongueLabel2" runat="server" AssociatedControlID="DescriptionLongueTextBox" CssClass="rdfLabel" Text="DescriptionLongue"></asp:Label>
                            <telerik:RadTextBox ID="DescriptionLongueTextBox" runat="server" Text='<%# Bind("DescriptionLongue") %>' WrapperCssClass="rdfInput" />
                        </div>
                        <div class="rdfRow">
                            <asp:Label ID="CreateurLabel2" runat="server" AssociatedControlID="CreateurTextBox" CssClass="rdfLabel" Text="Createur"></asp:Label>
                            <telerik:RadTextBox ID="CreateurTextBox" runat="server" Text='<%# Bind("Createur") %>' WrapperCssClass="rdfInput" />
                        </div>
                        <div class="rdfRow">
                            <asp:Label ID="ImageFilenameLabel2" runat="server" AssociatedControlID="ImageFilenameTextBox" CssClass="rdfLabel" Text="ImageFilename"></asp:Label>
                            <telerik:RadTextBox ID="ImageFilenameTextBox" runat="server" Text='<%# Bind("ImageFilename") %>' WrapperCssClass="rdfInput" />
                        </div>
                        <div class="rdfCommandButtons">
                            <hr class="rdfHr" />
                            <telerik:RadButton ID="UpdateButton" runat="server" ButtonType="SkinnedButton" CommandName="Update" Text="Enregistrer" ToolTip="Enregistrer" />
                            <telerik:RadButton ID="CancelButton" runat="server" ButtonType="SkinnedButton" CausesValidation="False" CommandName="Cancel" Text="Canceller" ToolTip="Canceller" />
                        </div>
                    </fieldset>
                </EditItemTemplate>
                <InsertItemTemplate>
                    <fieldset class="rdfFieldset rdfBorders">
                        <legend class="rdfLegend">Insert</legend>
                        <div class="rdfRow">
                            <asp:Label ID="TypeIDLabel2" runat="server" AssociatedControlID="TypeIDComboBox" CssClass="rdfLabel" Text="TypeID"></asp:Label>
                            <telerik:RadComboBox ID="TypeIDComboBox" runat="server" DataSourceID="EntityDataSource3" DataTextField="Description" OnSelectedIndexChanged="TypeIDComboBox_SelectedIndexChanged"
                                DataValueField="ID" SelectedValue='<%# Bind("TypeID")%>' AutoPostBack="true"></telerik:RadComboBox>
                        </div>
                        <div class="rdfRow">
                            <asp:Label ID="TitreLabel2" runat="server" AssociatedControlID="TitreTextBox" CssClass="rdfLabel" Text="Titre"></asp:Label>
                            <telerik:RadTextBox ID="TitreTextBox" runat="server" Text='<%# Bind("Titre") %>' WrapperCssClass="rdfInput" />
                        </div>
                        <div class="rdfRow">
                            <asp:Label ID="DatePublicationLabel2" runat="server" AssociatedControlID="DatePublicationTextBox" CssClass="rdfLabel" Text="DatePublication"></asp:Label>
                            <telerik:RadDateTimePicker ID="DatePublicationTextBox" runat="server" CssClass="rdfPicker" DbSelectedDate='<%# Bind("DatePublication") %>' MinDate="<%#new DateTime(1900, 1, 1) %>" SharedCalendarID='<%# Container.OwnerDataForm.FindControl("rdfSharedCalendar").UniqueID %>' SharedTimeViewID='<%# Container.OwnerDataForm.FindControl("rdfSharedTimeView").UniqueID %>'  />
                        </div>
                        <div class="rdfRow">
                            <asp:Label ID="DateCreationLabel2" runat="server" AssociatedControlID="DateCreationTextBox" CssClass="rdfLabel" Text="DateCreation"></asp:Label>
                            <telerik:RadDateTimePicker ID="DateCreationTextBox" runat="server" CssClass="rdfPicker" DbSelectedDate='<%# Bind("DateCreation") %>' MinDate="<%#new DateTime(1900, 1, 1) %>" SharedCalendarID='<%# Container.OwnerDataForm.FindControl("rdfSharedCalendar").UniqueID %>' SharedTimeViewID='<%# Container.OwnerDataForm.FindControl("rdfSharedTimeView").UniqueID %>'  />
                        </div>
                        <div class="rdfRow">
                            <asp:Label ID="DescriptionCourteLabel2" runat="server" AssociatedControlID="DescriptionCourteTextBox" CssClass="rdfLabel" Text="DescriptionCourte"></asp:Label>
                            <telerik:RadTextBox ID="DescriptionCourteTextBox" runat="server" Text='<%# Bind("DescriptionCourte") %>' WrapperCssClass="rdfInput" />
                        </div>
                        <div class="rdfRow">
                            <asp:Label ID="DescriptionLongueLabel2" runat="server" AssociatedControlID="DescriptionLongueTextBox" CssClass="rdfLabel" Text="DescriptionLongue"></asp:Label>
                            <telerik:RadTextBox ID="DescriptionLongueTextBox" runat="server" Text='<%# Bind("DescriptionLongue") %>' WrapperCssClass="rdfInput" />
                        </div>
                        <div class="rdfRow">
                            <asp:Label ID="CreateurLabel2" runat="server" AssociatedControlID="CreateurTextBox" CssClass="rdfLabel" Text="Createur"></asp:Label>
                            <telerik:RadTextBox ID="CreateurTextBox" runat="server" Text='<%# Bind("Createur") %>' WrapperCssClass="rdfInput" />
                        </div>
                        <div class="rdfRow">
                            <asp:Label ID="ImageFilenameLabel2" runat="server" AssociatedControlID="ImageFilenameTextBox" CssClass="rdfLabel" Text="ImageFilename"></asp:Label>
                            <telerik:RadTextBox ID="ImageFilenameTextBox" runat="server" Text='<%# Bind("ImageFilename") %>' WrapperCssClass="rdfInput" />
                        </div>
                        <div class="rdfCommandButtons">
                            <hr class="rdfHr" />
                            <telerik:RadButton ID="PerformInsertButton" runat="server" ButtonType="SkinnedButton" CommandName="PerformInsert" Text="Insérer" ToolTip="Insérer" />
                            <telerik:RadButton ID="CancelButton" runat="server" ButtonType="SkinnedButton" CausesValidation="False" CommandName="Cancel" Text="Canceller" ToolTip="Canceller" />
                        </div>
                    </fieldset>
                </InsertItemTemplate>
                <EmptyDataTemplate>
                    <div class="RadDataForm RadDataForm_<%# Container.Skin %>">
                        <div class="rdfEmpty">
                            There are no items to be displayed.</div>
                    </div>
                </EmptyDataTemplate>
            </telerik:RadDataForm>
            </telerik:RadAjaxPanel>
            
        </asp:Panel>
    </div>
        <div id="previewPane" style="float:left;width:500px">
            <fieldset>
                <legend >Apperçu</legend>
                <div>
                    <telerik:RadTabStrip ID="RadTabStrip1" runat="server" SelectedIndex="1">
                        <Tabs>
                            <telerik:RadTab runat="server" Text="Divers">
                            </telerik:RadTab>
                            <telerik:RadTab runat="server" Text="Secondaire" Selected="True">
                            </telerik:RadTab>
                            <telerik:RadTab runat="server" Text="Principale">
                            </telerik:RadTab>
                        </Tabs>
                    </telerik:RadTabStrip>
                </div>
            </fieldset>
        </div>
        <div style="clear:both;"></div>
        <div id="grid">
            <asp:Panel ID="gridPanel" runat="server" >
            <telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="EntityDataSource1" AllowSorting="true" OnSelectedIndexChanged="RadGrid1_SelectedIndexChanged">
                <MasterTableView AutoGenerateColumns="False" DataSourceID="EntityDataSource1" DataKeyNames="ID">
                    <Columns>
                        <telerik:GridBoundColumn DataField="ID" DataType="System.Int32"  HeaderText="ID" Display="true" UniqueName="ID">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="TypeID" DataType="System.Int32" FilterControlAltText="Filter TypeID column" HeaderText="Type"  SortExpression="TypeID" UniqueName="TypeID">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="Titre" FilterControlAltText="Filter Titre column" HeaderText="Titre"  SortExpression="Titre" UniqueName="Titre">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="DescriptionCourte" FilterControlAltText="Filter DescriptionCourte column" HeaderText="Description Courte"  SortExpression="DescriptionCourte" UniqueName="DescriptionCourte">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="ImageFilename" FilterControlAltText="Filter ImageFilename column" HeaderText="Image URL"  SortExpression="ImageFilename" UniqueName="ImageFilename">
                        </telerik:GridBoundColumn>
                    </Columns>
                </MasterTableView>
                <ClientSettings EnablePostBackOnRowClick="true" Selecting-AllowRowSelect="true" >
                </ClientSettings>
            </telerik:RadGrid>
            </asp:Panel>
        </div>
    <telerik:RadAjaxLoadingPanel runat="server" ID="RadAjaxLoadingPanel2" ></telerik:RadAjaxLoadingPanel>
 
    <asp:EntityDataSource ID="EntityDataSource1" runat="server" ConnectionString="name=RopackNewsEntities" DefaultContainerName="RopackNewsEntities"
        EnableFlattening="False" OrderBy="it.[ID]" EntitySetName="NewsData"
        Select="it.[ID],it.[TypeID], it.[Titre], it.[DescriptionCourte], it.[ImageFilename]"></asp:EntityDataSource>
 
    <asp:EntityDataSource ID="EntityDataSource3" runat="server" ConnectionString="name=RopackNewsEntities" DefaultContainerName="RopackNewsEntities"
        EnableFlattening="False" OrderBy="it.[ID]" EntitySetName="NewsType"> </asp:EntityDataSource>
 
    <asp:EntityDataSource runat="server" ID="EntityDataSource2" ConnectionString="name=RopackNewsEntities" DefaultContainerName="RopackNewsEntities"
        EnableFlattening="False" EntitySetName="NewsData"
        OrderBy="it.[ID]"
        Where="it.[ID]=@myID"
        EnableUpdate="True" EntityTypeFilter="NewsData" EnableInsert="true">
        <WhereParameters>
            <asp:ControlParameter ControlID="RadGrid1" Name="myID" PropertyName="SelectedValue" Type="Int32" />
        </WhereParameters>
        <UpdateParameters>
            <asp:Parameter Name="TypeID" Type="Int32" />
            <asp:Parameter Name="Titre" Type="String" />
        </UpdateParameters>
    </asp:EntityDataSource>

On the SelectedIndexChanged of my combobox, I'm trying to get the DataItem and change some data (just for the purpose of testing im not even checking the new value of the comboxbox),
but the result is that my dataform is not updated.
I know I'm missing some key concept but I couldn't find my mistake.

protected void TypeIDComboBox_SelectedIndexChanged1(object sender, RadComboBoxSelectedIndexChangedEventArgs e)
    {
        RadDataForm1.Rebind();
        NewsData test = (NewsData)RadDataForm1.Items[0].DataItem;
         test.Titre = "naissance";
     /**** Something is missing here!!!! I guess!!! *****/
    }

Any helps would be appreciated to acheive my scenario

Thank you.
Riad
Top achievements
Rank 1
 answered on 22 Dec 2014
1 answer
225 views
Hello there,

I read the following threads about how to ajaxify controls inside repeaters. But I can't still solve my problem.

http://www.telerik.com/forums/radcalender-inside-repeater---events-not-working
http://www.telerik.com/forums/correct-way-to-ajaxify-controls-inside-a-repeater-that-rebind-a-second-repeater
http://www.telerik.com/forums/ajaxify-controls-inside-a-repeater
http://www.telerik.com/forums/cannot-ajaxify-button-inside-the-repeater

Basically my architecture is like this:

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

---MasterPage
              <Telerik:RadScriptManager ID="radScriptManager" runat="server" AsyncPostBackTimeout="300" />

            <Telerik:RadAjaxManager ID="RadAjaxManager" runat="server" RestoreOriginalRenderDelegate="false" EnablePageHeadUpdate="false" DefaultLoadingPanelID="pnlAjaxLoadingPanel" UpdatePanelsRenderMode="Inline">
                <AjaxSettings>
                    <Telerik:AjaxSetting AjaxControlID="pnlTest">
                        <UpdatedControls>
                            <Telerik:AjaxUpdatedControl ControlID="pnlTest" />
                        </UpdatedControls>
                    </Telerik:AjaxSetting>
                </AjaxSettings>
            </Telerik:RadAjaxManager>

   --- MyPage
       <Telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy" runat="server">
           <AjaxSettings>
               <Telerik:AjaxSetting AjaxControlID="pnlMain">
                   <UpdatedControls>
                       <Telerik:AjaxUpdatedControl ControlID="pnlMain" />
                   </UpdatedControls>
               </Telerik:AjaxSetting>
               <Telerik:AjaxSetting AjaxControlID="linkbutton1">
                   <UpdatedControls>
                       <Telerik:AjaxUpdatedControl ControlID="pnlMain" />
                       <Telerik:AjaxUpdatedControl ControlID="repeater1" />
                       <Telerik:AjaxUpdatedControl ControlID="repeater2" />
                   </UpdatedControls>
               </Telerik:AjaxSetting>
           </AjaxSettings>
       </Telerik:RadAjaxManagerProxy>
     ---Panel id=pnlMain
         ---UserControl1 id=ctrl1
              ---Repeater1 id=repeater1
                   ---UserControl2 id=ctrl2
                       ---Repeater id=repeater2
                          ---LinkButton id=linkbutton1
  
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------

It's a little bit complicated what I'm trying to do. The thing is when I click on my linkbutton1, it performs like a postback (most like a glitch) and nothing happens. I need to do second click to make it work. It has always this behavior whether I add the ajax setting or not.

So, I traced the code with a breakpoint and everything works with the first postback on server side but the on the client side it only reacts on the second postback.

How can I add the ajax setting to my linkbutton1 refreshes efectively the main panel section(pnlMain) from the MyPage where I declared the ajax settings with Rad Ajax Manager Proxy.

Thanks.
Konstantin Dikov
Telerik team
 answered on 22 Dec 2014
4 answers
128 views
I have been trying to use RadMap within a RadPane of the RadSplitter control (it should be said I have no issues when not using the RadSplitter and the Map renders correctly).

The RadSplitter is setup to go to 100% width and height, which works fine, yet on initial load the base layer map is very small and only seems to load 1 or 2 tiles, the map control itself does seem to expand to the correct screen size as the copyright information is still displayed in the bottom right hand corner. (See Initial_Load.png)

If I further use a map with JSON points and a shape layer the base layer map is again not loaded properly, the shape layer is only partially loaded, but oddly the push pins are correctly loaded in relation to the map control as a whole. (See Initial_load_with_JSON.....png)

After clicking within the map control once the base layer map loads correctly, however it is not centered as per the load parameters (it is centering on the very small initial load tile).  Additionally even after getting all the base layer map, only a partial shape layer is loaded. Originally I thought this was an issue with RadSplitter, but I have used other splitter controls and it still has the same issue. (See After_Map_Click....png)

Could you maybe provide a very simple example whereby the map control is within a 2 pane radsplitter set for 100% width and height and explain where I am going wrong.

Thanks
Ianko
Telerik team
 answered on 22 Dec 2014
1 answer
80 views
Is it possible to set up a calculated field to show the percentage difference between values of the same field?

Example:

Jan Value    % Diff between Dec-Jan   Feb Value    % Diff between Jan-Feb    Mar Value    % Diff between Feb-Mar....
Konstantin Dikov
Telerik team
 answered on 22 Dec 2014
1 answer
95 views
2014Q3 controls.

Field definitions

<Fields>
    <telerik:PivotGridRowField Caption="Company Name" DataField="sEntityName"
        UniqueName="sEntityName">
    </telerik:PivotGridRowField>
    <telerik:PivotGridRowField Caption="Material" DataField="Material"
        UniqueName="Material">
    </telerik:PivotGridRowField>
    <telerik:PivotGridColumnField Caption="Year" DataField="SubmissionYear"
        UniqueName="SubmissionYear">
    </telerik:PivotGridColumnField>
    <telerik:PivotGridColumnField Caption="Period" DataField="Period"
        UniqueName="Period">
    </telerik:PivotGridColumnField>
    <telerik:PivotGridAggregateField Caption="KG" DataField="KG"
        GrandTotalAggregateFormatString="{0:###,###.00}" UniqueName="KG" CellStyle-CssClass="ptRJ" TotalFormatString="{0:###,###.00}" DataFormatString="{0:###,###.00}">
    </telerik:PivotGridAggregateField>
    <telerik:PivotGridAggregateField DataField="% of Total" CalculationDataFields="KG,TotalKG" CalculationExpression="{0}/{1}" DataFormatString="{0:p}">
    </telerik:PivotGridAggregateField>
</Fields>

KG = amount of a certain material for one company
TotalKG = amount of a certain material for all companies

The % of Total column is working properly for detail rows and subtotal rows.  However for the grand total row I get 6.25%, which is 100 / 16 (the number of companies) / 100.  I am expecting to see 100% as the Grand Total of Sum of KG equals the total of all materials for all companies. Bug or something else?
Konstantin Dikov
Telerik team
 answered on 22 Dec 2014
2 answers
77 views
The names of groups are rendered in a div element with class 'rocItemField'.
In my system, I have some javascript to handle the click event on this text to open a popup to edit the group name, etc.
I need this div to be keyboard accessible, but because its a div you can't tab to it.

Is there a way to define the template for a group on an orgChart, like the way you can define a template for an item?
Then i can set the group name within an anchor and have it keyboard accessible.

or can anyone recommend another approach? eg hack change all divs of class rocItemField into anchors with href='#' ?
Peter Filipov
Telerik team
 answered on 22 Dec 2014
1 answer
89 views
Hi,
I created a pivot with a chart like this demo
http://demos.telerik.com/aspnet-ajax/pivotgrid/examples/applicationscenarios/chartintegration/defaultcs.aspx
and I was wondering if is it possible to export both object in excel/word/pdf .. I don't know.. any format is fine.

Thanks
Kostadin
Telerik team
 answered on 22 Dec 2014
3 answers
96 views
Hi, I have radasynupload control in datagrid. I have one button(say, button1) in another cell of a datagrid. My requirement is to continue async upload even after the button1 is clicked. I have used postbacktrigger property to add the control ids on which the rad control should postback. However the file upload stops after button1 is clicked.
Also, I read that Radasyncupload will not continue when you re-bind the datagrid. There is Ajax uploader control which holds the state even after data grid is refreshed if the control is added in update panel. Is there a way to do the same with Telerik radasync.

thanks
Hristo Valyavicharski
Telerik team
 answered on 22 Dec 2014
2 answers
63 views
Hi, i need to know how to create/copy a node to a different parent.
in my tree structure i have a root and groups. when i'm  down inside a group i also want to make a copy of the node and add it to a different group.

in my code i have this which add the pending user node to the GroupNode.

                    RadTreeNode nodePending = new RadTreeNode()
                    {
                        Value = group.Id.ToString() + "|" + invitation.Id.ToString(),
                        ForeColor = System.Drawing.Color.Gray
                    };

                   GroupNode.Nodes.Add(nodePending);

i would like to add "nodePending" to a different group which was create here in a different loop

                RadTreeNode nodeUser = new RadTreeNode()
               {
                Text = "(Users)",
               };

the problem is if i use the following code below it does not like me putting in "nodeuser.Nodes.add"

                   nodeUser.Nodes.Add(nodePending);


suggestions?




Peter Filipov
Telerik team
 answered on 22 Dec 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?