Telerik Forums
UI for ASP.NET AJAX Forum
10 answers
91 views
Hi All

Every now and again, with no real pattern our application throws a server error.

The error is 'There was a problem Extracting the DataKeyValues from the Datasource Please ensure that dataKeynames are specified......

The error is raised from several places.

The pages are hit 100's of times an hour with the error 4-5 time a day. 

The error I'm using version 1215 but the problem as also pressent in previous versions

I have try catches around all my code, but this still gets trhough.

Can anyone shead any light on this please.

Andy
Maria Ilieva
Telerik team
 answered on 27 Jan 2011
2 answers
67 views
Hi,
I have a question regarding AsyncUploader. I use this control to upload multiple files(images) and everything is working perfect. But I have a great problem regarding the layout. What I need is a button to call the function that the button " Select " calls it. I mean a button called "Load Photos" for example, which once clicked to open the window "Open" where I can select the files I need. A js script is perfect, a code behind will do also.
Thank you in advance,
Moroianu George
Moroianu George-Gabriel
Top achievements
Rank 1
 answered on 27 Jan 2011
2 answers
247 views
All Telerik Devs,

I tried this on multiple rad controls... it appears when I add ClientIDMode="Static" on the RadScheduler, or RadMenu, or the RadButton the RadWindow Control will just not open, or when it does open it will not show the content w/in the content template. 

Just an FYI
Georgi Tunev
Telerik team
 answered on 27 Jan 2011
1 answer
33 views
Hi,

We are facing a problem with hierarchal grid in our application. when we expand the arrow and select a child item and collapse the arrow then the selected child items are getting deselected. Any help will be appreciated. 
Mira
Telerik team
 answered on 27 Jan 2011
4 answers
91 views
Hi guys ,
I have gridview and listview in my page , i want to drag item from gridview to listview , can you give me a good example ?
Thanks
Nikolay Rusev
Telerik team
 answered on 27 Jan 2011
6 answers
710 views
I am creating a grid dynamically and its datasource is a datatable. I am not using need data source event since I am creating the grid dynamically.
I cannot insert an item or update an item. The datasource does not reflect the changes.
Also, when I click on 'Insert' link  the grid remains in edit mode.
Can someone tell me how to insert and update to an im-memory datatable ( not database)?

Thanks
Vasssek
Top achievements
Rank 1
 answered on 27 Jan 2011
2 answers
148 views
Dear Support,

I have used Radsplitter in which I want to fixed the header section, while my body section should scroll.
While scrolling my header section should not scroll it should be steady there only.
Both my header and Body section are in RadPane only.
Please guid me.

<telerik:RadSplitter ID="RadSplitter1" runat="server" OnClientLoad="SplitterLoad" Skin="Vista">
            <telerik:RadPane ID="LeftPane" runat="server" Width="670px">
                <div id="divHeading" runat="server" style="position: fixed; width:650px;">
            Here his my table showing Header Section
        </div>
                <div id="divBody" runat="server" style="overflow: auto;">
            Here I have used radGridView
         </div>
            </telerik:RadPane>
            <telerik:RadSplitBar ID="RadSplitBar1" runat="server" CollapseMode="Both"></telerik:RadSplitBar>
            <telerik:RadPane ID="EndPane" runat="server">
                Another gridview
            </telerik:RadPane>
</telerik:RadSplitter>
Asif
Top achievements
Rank 1
 answered on 27 Jan 2011
8 answers
272 views
I have rad grid in user control and I want to edit in the grid on row double click .My problem is that when I write the javascript code in user control is not working and gives error "RowDblClick not undefine" when I write the code in the aspx page "parent window" javascript is calling but grid not found is shown in that page.I donot know what is the problem can any one help me.I want to write this javascript code in user control not in the parent window beacuse I want resuable user control not like that half portion of code in user control and half portion in aspx page.

<script type="text/javascript">
     function RowDblClick(sender, eventArgs) {
         debugger
         //sender.get_masterTableView().editItem(eventArgs.get_itemIndexHierarchical());
         editedRow = eventArgs.get_itemIndexHierarchical();
         $find("<%= grdEvaluation.MasterTableView.ClientID %>").editItem(editedRow);
     }
  
     
  
</script>

<telerik:RadGrid ID="grdEvaluation" runat="server" AllowSorting="True" Skin="Outlook"
                Width="100%" AutoGenerateColumns="false">
                <MasterTableView Width="100%" EditMode="EditForms" DataKeyNames="QuestNo" Dir="<%$ Resources:Common,DIR %>">
                    <GroupByExpressions>
                        <telerik:GridGroupByExpression>
                            <SelectFields>
                                <telerik:GridGroupByField FieldName="EvalGroupName" HeaderText="Group Name"></telerik:GridGroupByField>
                            </SelectFields>
                            <GroupByFields>
                                <telerik:GridGroupByField FieldName="EvalGroupName" SortOrder="Ascending"></telerik:GridGroupByField>
                            </GroupByFields>
                        </telerik:GridGroupByExpression>
                    </GroupByExpressions>
                    <Columns>
                        <telerik:GridTemplateColumn HeaderText="Question">
                            <ItemTemplate>
                                <asp:Label ID="lblQuestion" runat="server"></asp:Label>
                                <asp:Label ID="lblQuestionTypeID" runat="server" Visible="false"></asp:Label>
                            </ItemTemplate>
                            <ItemStyle Width="40%" />
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn HeaderText="QuestionType">
                            <ItemTemplate>
                                <asp:Label ID="lblQuestionType" runat="server"></asp:Label>
                            </ItemTemplate>
                            <ItemStyle Width="10%" />
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn HeaderText="Answer">
                            <ItemTemplate>
                                <asp:Label ID="lblAnswer" runat="server"></asp:Label>
                                <asp:HiddenField ID="hfAnswer" runat="server" />
                            </ItemTemplate>
                            <ItemStyle Width="50%" />
                        </telerik:GridTemplateColumn>
                    </Columns>
                    <EditFormSettings EditFormType="Template">
                        <EditColumn UniqueName="EditCommandColumn1">
                        </EditColumn>
                        <FormTemplate>
                            <table id="Table2" cellspacing="2" cellpadding="1" width="100%" border="0">
                                <tr>
                                    <td style="width: 5%">
                                        <asp:Label ID="Label2" runat="server" Text="Question :"></asp:Label>
                                    </td>
                                    <td style="width: 95%">
                                        <asp:Label ID="lblQuestions" runat="server" Text='<%# Bind("QuestionName") %>'></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label ID="Label3" runat="server" Text="Answer :"></asp:Label>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtAnswer" TextMode="MultiLine" Height="50px" Width="900px" runat="server"
                                            Visible="false" Text='<%# Bind("Answer") %>'></asp:TextBox>
                                        <asp:DropDownList ID="ddlAnswer" runat="server" Visible="false">
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                            </table>
                            <table style="width: 20%;">
                                <tr>
                                    <td align="center" colspan="2">
                                        <asp:Button ID="Button1" Text="Update" runat="server" CommandName="Update" CausesValidation="false">
                                        </asp:Button
                                        <asp:Button ID="Button2" Text="Cancel" runat="server" CausesValidation="False" CommandName="Cancel">
                                        </asp:Button>
                                    </td>
                                </tr>
                            </table>
                        </FormTemplate>
                        <%--<PopUpSettings Modal="True"></PopUpSettings>--%>
                    </EditFormSettings>
                </MasterTableView>
                <ClientSettings EnablePostBackOnRowClick="false">
                    <ClientEvents OnRowDblClick="RowDblClick" />
                </ClientSettings>
            </telerik:RadGrid>


Farrukh
Top achievements
Rank 1
 answered on 27 Jan 2011
1 answer
156 views
Hello,

I have a page with multiple RadTabs and clicking a button on one of them brings up a modal RadWindow. When the modal window is closed, the page does a postback and some of the data is refreshed.  Afterwards, if you navigate to another tab, the CSS on the Telerik controls doesn't display properly

I've inspected it with Firebug, and some of the CSS files from WebResource.axd are missing after the windows was opened/closed (compare attached 0css.png to 2css.png).  The content in the RadWindow doesn't have any special CSS, and is using the same Telerik theme as the rest of the application.

In our code, we don't make any changes to anything CSS during the process of opening/loading the RadWindow. When we do a hard refresh, the page will correct itself.  When we do a refresh with re-sending the Post data, the CSS problems remain.

Included are several screenshots of the application before, during, and after the RadWindow is shown, with the list of CSS resources during each step.  Do you know what could be causing this loss in CSS resources from a RadWindow being closed?
Georgi Tunev
Telerik team
 answered on 27 Jan 2011
3 answers
461 views
I am trying to edit a checkbox in a grid on a popup edit form and can not seem to get acces to the control I need. The basic layout is I have a page with a RadGrid. The grid has a popup edit form that has a few controls (labels and textboxes) and a new grid that is populated when you edit the parent grid. On editing the parent I get primay key from the ItemDatabound if the item is in edit mode and is a grid editform item. I then
run my query to populate the child grid with the selected details I desire.
I am trying to allow a user to check or uncheck a checkbox that I then use to update a value in the database. I can access the underlying object in the itemcommand on the update by getting a reference to the grid and they getting the EditItems to then iterate through each GridItem. I have AllowMultiEdit set on my child grid and on the child grid pre_render I set each row to edit mode.What I don't have though is the checkbox control. If I try and do a find control on the child grid in the Editform I get a null back.

Here is a snippet of how I am defining the checkbox on the child grid:
<EditFormSettings EditFormType="Template">
  <PopUpSettings Width="800" Height="500" />
       <FormTemplate>
          ...
         <telerik:GridTemplateColumn UniqueName="chkResubmitted">
            <HeaderTemplate>
                 <asp:CheckBox id="headerChkbox" OnCheckedChanged="ToggleSelectedState" AutoPostBack="True"
                     runat="server" Text=" resubmitted" ></asp:CheckBox>
              </HeaderTemplate>
              <EditItemTemplate>
              <asp:CheckBox id="chkResubmittedEdit" runat="server" />
              </EditItemTemplate>
              <ItemTemplate>
              <asp:CheckBox id="chkResubmittedItem" OnCheckedChanged="ToggleRowSelection"  
                AutoPostBack="True" runat="server"></asp:CheckBox>
               </ItemTemplate>
               </telerik:GridTemplateColumn>

In my UpdateCommand I tried accessing the checkbox with this:
if (e.CommandName == RadGrid.UpdateCommandName)
          {
              GridEditableItem editedItem = e.Item as GridEditableItem;
              RadGrid dtlgrid = (editedItem.FindControl("grdClaimDetail") as RadGrid);
                
              CheckBox chk = dtlgrid.FindControl("chkResubmittedEdit");
              ...
 
Any suggestions on how I can access the checkbox on my child grid in my edit popup?
Princy
Top achievements
Rank 2
 answered on 27 Jan 2011
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?