Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
103 views

I am able to edit only the last row in a radgrid.When I select any other row ..it throws an error..

"There was a problem extracting DataKeyValues from the DataSource. Please ensure that DataKeyNames are specified correctly and all fields specified exist in the DataSource."

All the datakeynames are defined, still getting the above error.

Did any one faced this problem..If I m able to edit one row why not others..please suggest.

Thanks

Jayesh Goyani
Top achievements
Rank 2
 answered on 21 Aug 2013
1 answer
109 views
Hello, I am facing the following problem:
some time ago to generate pdf made ​​from a Report was fast and normal, however now the same PDF with the same code takes about 5 minutes for the file generation can not identify What did this slowly leaving this generation, because in project (Location on my machine) generation is instantaneous, however when it is updated on the server (which by the way is much faster) application arrives to give "time out" so much time it takes to generate.
Slav
Telerik team
 answered on 21 Aug 2013
3 answers
273 views

I have a RadDropDownTree on my page as follows:

<telerik:RadDropDownTree ID="Tree1" runat="server" ButtonSettings-ShowClear="true" OnClientEntryAdded="EntryAdded" AutoPostBack="true" DefaultMessage="--Select--" DefaultValue="-1" OnEntryAdded="Tree1_EntryAdded">
    <DropDownSettings AutoWidth="Enabled" CssClass="raddropdowntree" />
</telerik:RadDropDownTree>

The EntryAdded client side event is used to collapse the dropdown upon selection and is as follows:

function EntryAdded(sender, eventArgs) {
    sender.closeDropDown();
    return true;
}

The EntryAdded server side event is currently blank.

My problem is that the server side event EntryAdded is not fired if I specify the OnClientEntryAdded client side event. Postback happens upon selection of any item in the dropdowntree, Page_Load is fired, but then the control returns to the page without invoking the EntryAdded event. Another issue is that after postback, my selected value is cleared and it goes back to the default value of "--Select--".

I also tried replacing the declaration with  OnClientEntryAdded="if(!EntryAdded()) { return false; }"  but this returns a JavaScript error, saying if is unexpected.

If I remove the client side event, the EntryAdded server side event is invoked and the selected value of the dropdowntree is also retained. 

The entire thing is in a RadAjaxPanel, if it helps.


Please advise. Thanks in advance.


Peter Filipov
Telerik team
 answered on 21 Aug 2013
3 answers
100 views
I am using radscheduler to show the appointments. i need to display yearly schedule in timeline view. So a slot will be for month and the header will be like 'January, 2013' 'February, 2013' and  so on. So far i have been able to achieve this functionality using the code below:
If e.Command = Telerik.Web.UI.SchedulerNavigationCommand.SwitchToMonthView Then
            e.Cancel = True
 
            rscCalendar.TimelineView.NumberOfSlots = 12
            rscCalendar.TimelineView.SlotDuration = System.TimeSpan.FromDays(30)
            rscCalendar.TimelineView.TimeLabelSpan = 1
            rscCalendar.TimelineView.HeaderDateFormat = "MMMM dddd MM/dd/yyyy"
            rscCalendar.TimelineView.ColumnHeaderDateFormat = "MMMM, yyyy"
            rscCalendar.SelectedDate = "1/1/2013"
end if
 Now, the problem i am having is, assigning the slot duration to number of days in a month. As you can see i am using System.TimeSpan.FromDays(30)now, its assigning the slot duration to 30 days. But i want to
assign the slot duration to individual slots. Is this possible and could you show me how to do
it?

Plamen
Telerik team
 answered on 21 Aug 2013
3 answers
305 views
I am aware of the ability to use a DB field for this, as well as this article which gets close to a solution, but neither is sufficient for my purposes. Is there a property like BackgroundColor for anything other than the items in a PieSeries? I just want to be able to set each piece of data's color separately. Thanks!
Stamo Gochev
Telerik team
 answered on 21 Aug 2013
3 answers
235 views
I'm using knockout to bind a view model to DOM elements.  This works great for basic HTML controls so I was wondering if their custom bindings feature could be used when TreeView nodes are checked/unchecked to update the underlying ViewModel or to check/uncheck TreeView checkboxes when the VM changes.

Thanks, Dave.
Genady Sergeev
Telerik team
 answered on 21 Aug 2013
3 answers
68 views
Please look into the below code snippet. Here I have RADAjaxPanels, splitter and some asp web controls.

Program compiles well, at runtime it goes into code behind execute all the code (in debug mode confirmed this) although
the issue i am having is the line of code gets executed it doesn't change Label color to red neither populates the Label with intended value.

ASP file code snippet

<!-- For Ajax Code Block -->
<telerik:RadCodeBlock ID="RadCodeBlockLeftPane" runat="server">
    <script type="text/javascript">
        function invokeAjaxrequestLeftPane() {
            $find("<%= RadAjaxPanelLeftPane.ClientID%>").ajaxRequestWithTarget("<%= RadAjaxPanelLeftPane.UniqueID %>", "LoadDocumentFromLibrary");
        }
    </script>
</telerik:RadCodeBlock>
 
<telerik:RadSplitter ID="RadSplitterForPanel" runat="server" Height="1300" Width="100%" EnableViewState="false">
 
        <telerik:RadPane ID="PaneLeft" runat="server" Height="100%" Width="60%" Scrolling="Y">
 
            <asp:Label ID="LabelTest" runat="server" Text="Left Panel">
                   Left Pane
            </asp:Label>
 
            <input type="button" value="Load Document" onclick="invokeAjaxrequestLeftPane();" />
 
            <telerik:RadAjaxPanel ID="RadAjaxPanelLeftPane" runat="server" OnAjaxRequest="RadAjaxPanelLeftPane_AjaxRequest">
 
            </telerik:RadAjaxPanel>
 
        </telerik:RadPane>
         
        <telerik:RadSplitBar ID="RadSplitbarForPane" runat="server" CollapseMode="Both">
        </telerik:RadSplitBar>
 
        <telerik:RadPane ID="PaneRight" runat="server" Height="100%" Width="40%">
            Right Pane
 
        </telerik:RadPane>
 
 
    </telerik:RadSplitter> 

Code Behind file method
/// <summary>
        /// Ajax panel for loading the document from the library
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void RadAjaxPanelLeftPane_AjaxRequest(object sender, AjaxRequestEventArgs e)
        {
            switch (e.Argument)
            {
                case "LoadDocumentFromLibrary":
                    LabelTest.Text = " I am clicked at " + System.DateTime.Now;
                    LabelTest.BackColor = System.Drawing.Color.Red;
                    break;
                default:
                    break;
            }//switch
        }//RadAjaxPanelLeftPane_AjaxRequest

Thanks, Amit
Eyup
Telerik team
 answered on 21 Aug 2013
1 answer
49 views
I have 3 telerik tabs:

I have 3 telerik tabs:
 
<telerik:RadTabStrip ID="tabStrip" runat="server" MultiPageID="multiPage"">
    <Tabs>
        <telerik:RadTab runat="server" Text="Pending Invoices" PageViewID="PageView1">
        </telerik:RadTab>
        <telerik:RadTab runat="server" Text="Paid Invoices" PageViewID="PageView2">
        </telerik:RadTab>
        <telerik:RadTab runat="server" Text="My Payment Account" PageViewID="PageView3">
        </telerik:RadTab>               
    </Tabs>
</telerik:RadTabStrip>
 
with 3 page view:
 
<telerik:RadMultiPage ID="multiPage" runat="server"
    <telerik:RadPageView ID="PageView1" runat="server"></telerik:RadPageView>
    <telerik:RadPageView ID="PageView2" runat="server"></telerik:RadPageView>
    <telerik:RadPageView ID="PageView3" runat="server"> </telerik:RadPageView>
</telerik:RadMultiPage>
 
Now, the contents of PageView1 is showing up in PageView2 and PageView3 after I added the below code:
 
<telerik:RadAjaxManager ID="radAjaxManager" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="tabStrip">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="tabStrip" />
                <telerik:AjaxUpdatedControl ControlID="multiPage" />
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="multiPage">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="tabStrip" />
                <telerik:AjaxUpdatedControl ControlID="multiPage" />
            </UpdatedControls>
        </telerik:AjaxSetting>           
    </AjaxSettings>
</telerik:RadAjaxManager>
 
 
Please give me an advise, i'm lost in this telerik control. TIA!
Nencho
Telerik team
 answered on 21 Aug 2013
2 answers
117 views
Hi Team,

I am trying to display the AjaxLoading Panel on page load, but it is not displaying. I have some other controls(buttons) and on their click event it is displaying the loding image.

I am using the below code:


<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel" runat="server"/>
                <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="RadAjaxLoadingPanel">
                <telerik:RadTreeList ID="RadTreeListAssigment" runat="server" DataKeyNames="ObjectId"
                        AllowRecursiveSelection="true" OnItemCreated="RadTreeListAssigment_ItemCreated"
                        AllowPaging="true" PageSize="50"  ParentDataKeyNames="EntityObjectId"
                        Width="100%" AllowMultiItemSelection="true" OnChildItemsDataBind="RadTreeListAssigment_ChildItemsDataBind"
                        OnItemDataBound="RadTreeListAssigment_ItemDataBound" GridLines="None" AutoGenerateColumns="false"
                        OnNeedDataSource="RadTreeListAssigment_NeedDataSource"  AllowSorting="true"    
                        OnItemCommand="RadTreeListAssigment_ItemCommand">
                        <Columns>
                            <telerik:TreeListSelectColumn HeaderStyle-Width="12px" UniqueName="chkBox" HeaderText="">
                            </telerik:TreeListSelectColumn>
                        </Columns>
                        <ClientSettings>
                        <Scrolling AllowScroll="true" ScrollHeight="454px" UseStaticHeaders="true" />
                        </ClientSettings>                       
                        <PagerStyle Mode="NextPrevAndNumeric" AlwaysVisible="true" />
                    </telerik:RadTreeList>
                    </telerik:RadAjaxPanel>
I am also using the RadAjaxManager in master page, so cannot use it here as soln provided by other website.

Could anybody help on this.

Regards,
Hitesh

Eyup
Telerik team
 answered on 21 Aug 2013
12 answers
1.0K+ views

I have a user control in which I have several repeaters. In two of the repeaters, I have two RadNumericText boxes that on a change event does some server side code. The controls themselves are triggers to an Ajax update that updates other controls on other repeaters.

So far I have the logic working with other RadNumericText boxes on the same page but every so often two of these controls will raise the text change event of the other control.

<telerik:RadNumericTextBox ID="DesiredCreditLineTextBox" Runat="server" MinValue="0" Skin="Vista" AutoPostBack="true" OnTextChanged="DesiredCreditLine_TextChanged" />

<telerik:RadNumericTextBox ID="DesiredTermPaymentTextBox" Runat="server" MinValue="0" Skin="Vista" AutoPostBack="true" OnTextChanged="TermPayment_TextChanged" Type="Currency" Width="100px" />

The two controls exist in two different repeaters. In only this one case (I have it working on other controls), the "DesiredTermPaymentTextBox" is raising the "DesiredCreditLine_TextChanged" event.

Any ideas why this anomaly would occur?

 

Vasil
Telerik team
 answered on 21 Aug 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?