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

I have an issue with Rad Async Upload,
When URL rewriting rule specified in web.config file below is my rewriting rule
1.<rewrite>
2.           <rules>
3.               <rule name="Convert to lower case" stopProcessing="true">
4.                   <match url="[A-Z]" ignoreCase="false" />
5.                   <action type="Redirect" url="{ToLower:{URL}}" />
6.               </rule>
7.           </rules>
8.       </rewrite>

RadAsync upload file is blinking yellow., 
When I remove the rewriting URL, its working.

Could any one help me out so that, keeping the rewriting URL rad async upload file should work.



Thanks
Phaneendra
Genady Sergeev
Telerik team
 answered on 22 Dec 2014
1 answer
79 views
just updated telerik control from Q3-2013 to Q3-2014. I have a radgrid with paging and rowselect set to true.
when I click on a row after the grid loads its throws a webpage error. but it works just fine from the second try onwards without refreshing the grid.
any help will be appreciated.

thank you.
murali.
Angel Petrov
Telerik team
 answered on 22 Dec 2014
2 answers
192 views
I have a standard wizard with start, 2 steps and finish RadWizardSteps. On the Start Step I have a toggle Radbutton with the default Add New Product checked.

If I just hit the enter key nothing happens.
If I click anywhere within the wizard and hit enter the focus jumps to the built-in Cancel button and the Cancel action is performed (redirect to home page)

If I toggle to the other button Add New Product based on... This triggers some serverside code which displays a RadTextBox for the user to enter the existing product they want to base the new product on.

Entering a value in the RadTextBox and hitting enter the focus jumps to the built-in Cancel button and the Cancel action is performed.

How can I make the built-in Next button the default button?
Jon
Top achievements
Rank 1
 answered on 22 Dec 2014
4 answers
271 views
Hi,

We are using RadEditor to copy-paste the formatted text and it works fine.
Now the requirement is we should be able to copy-paste Image as well , How can we achieve this through RadEditor Control?
Please provide the solution at the earliest..

Thanks,
Savitha
Niko
Telerik team
 answered on 22 Dec 2014
6 answers
168 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
221 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
233 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
134 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
84 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
100 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?