Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
143 views
Hello, i am testin to populate radpivotgrid from sql view but i dont see any data on it  do i have to add fields manualy? i checked get started its say ionly need to define datasourse and thats it but i couldnt manage it. do i missin something? or it cant populate from datasource i need to add fiels manualy?

How its look:
        <telerik:RadScriptManager ID="RadScriptManager1" Runat="server">
        </telerik:RadScriptManager>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:ASTAVUK2014ConnectionString %>" 
            SelectCommand="SELECT * FROM [TEKB_VET_SON]"></asp:SqlDataSource>
        <telerik:RadPivotGrid ID="RadPivotGrid1" runat="server" 
            DataSourceID="SqlDataSource1" EnableConfigurationPanel="True" Skin="MetroTouch">
        </telerik:RadPivotGrid>
Eyup
Telerik team
 answered on 09 Jun 2014
3 answers
552 views
Hi all i have a problem with rad date picker,
when i use it in a simple page with form and with the radscripmanager it doesnt do nothins the textboxes work but the calendar buttons dont work.

Any Ideas???

Best regards
Eyup
Telerik team
 answered on 09 Jun 2014
2 answers
123 views
I have a radcombobox and allowcustomtext is true. Is there a property to validate the entered text with the drop down items. Dropdown items are from database and I want if the entered text is different from database data to show error message.

Thank you!
Emilia
Top achievements
Rank 1
 answered on 09 Jun 2014
8 answers
406 views
Hi,

I have a RadTreeView and a RadTabStrip. When I click on a tab, some content displays below it in a PlaceHolder.
I would also like for some nodes in RadTreeView to do exactly the same - for example node Stations would select tab Stations (I already figured out how to do this using JavaScript) and I also want it to display the content that goes with the tab, but nothing shows up
.
When I do tab.select() in JavaScript, the correct tab is selected, but there is no postback. How can I make the tab do a postback so that effect will be the same as clicking on it?

Thank you,
Andrea
Sebastian
Telerik team
 answered on 09 Jun 2014
5 answers
146 views
Please find the attached actual and expected png images.  Actual image does not have gray background to the left of the arrow image of detail table. We would like to know the css so that actual image has gray background as expected image.

Please help.
Eyup
Telerik team
 answered on 09 Jun 2014
1 answer
156 views
Hi,
is it possible to increase height to Agenda View in RadScheduler?
Thanks
Nencho
Telerik team
 answered on 09 Jun 2014
3 answers
296 views
Hi gentlemans,

Here is my aspx code:
<telerik:GridTemplateColumn DataField="DA_RESLN" HeaderText="Date de résolution" UniqueName="DA_RESLN" SortExpression="DA_RESLN"
ShowFilterIcon="True" HeaderStyle-Width="120px" FilterControlWidth="100px"
AutoPostBackOnFilter="True" FilterDelay="2000">
    <ItemTemplate>
        <asp:Label ID="LabelDateResolution" Text='<%#Eval("DA_RESLN", "{0:yyyy-MM-dd}")%>' runat="server"></asp:Label>
    </ItemTemplate>
    <EditItemTemplate>
        <telerik:RadDatePicker runat="server" ID="DatePickerDateResolution" SelectedDate='<%#Eval("DA_RESLN")%>' Calendar-Visible="True" ></telerik:RadDatePicker>
        <asp:CustomValidator ID="DatePickerDateResolution_Validator" runat="server" ErrorMessage="*Obligatoire" Display="Dynamic" ValidateEmptyText="True" ControlToValidate="DatePickerDateResolution" OnServerValidate="dtePickerDaReslnValidator_ServerValidate"></asp:CustomValidator>
    </EditItemTemplate>
</telerik:GridTemplateColumn>

I must be missing something here because the filter is rendered correctly and works perfectly except that it dosent show the calendar at right of the inputbox just like a GridDateTimeColumn does. Anyone ??

Thanks in advance,
Eyup
Telerik team
 answered on 09 Jun 2014
1 answer
165 views
I am using radmultipage for a wizard.
I have a grid on one of the tabs.

My grid has a lot of spacing/padding when it renders. The grids on separate pages look fine, they just look broken inside a tabstrip.
Also my combobox images do not load properly in edit mode.

I have attached images for both.

Below is my grid declaration:

<telerik:RadGrid ID="rgContingentBeneficiary" runat="server" OnNeedDataSource="rgContingentBeneficiary_NeedDataSource"
    OnInsertCommand="rgContingentBeneficiary_InsertCommand" OnUpdateCommand="rgContingentBeneficiary_UpdateCommand"
    OnItemCreated="rgContingentBeneficiary_ItemCreated" OnDeleteCommand="rgContingentBeneficiary_DeleteCommand"
    OnItemDataBound="rgContingentBeneficiary_ItemDataBound">
    <MasterTableView Width="750px" CommandItemDisplay="Bottom" EditMode="EditForms" DataKeyNames="BeneficiaryID,BeneficiaryPercent">
        <CommandItemSettings ShowRefreshButton="false" ShowExportToExcelButton="false" ShowExportToPdfButton="false"
            ShowExportToWordButton="false" ShowExportToCsvButton="false" ShowAddNewRecordButton="true"
            AddNewRecordText="Add New Beneficiary" />
        <Columns>
            <telerik:GridBoundColumn DataField="BeneficiaryID" UniqueName="BeneficiaryID" Display="false">
            </telerik:GridBoundColumn>
            <telerik:GridTemplateColumn HeaderText="Full Name" SortExpression="Beneficiary" UniqueName="Beneficiary"
                ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left" HeaderStyle-Width="44%"
                ItemStyle-Wrap="true">
                <ItemTemplate>
                    <%# Eval("Beneficiary")%>
                </ItemTemplate>
            </telerik:GridTemplateColumn>
            <telerik:GridTemplateColumn HeaderText="Relationship" SortExpression="BeneficiaryRelationship"
                ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left" HeaderStyle-Width="30%"
                UniqueName="BeneficiaryRelationship">
                <ItemTemplate>
                    <%# Eval("BeneficiaryRelationship")%>
                </ItemTemplate>
            </telerik:GridTemplateColumn>
            <telerik:GridTemplateColumn HeaderText="Percentage" SortExpression="BeneficiaryPercentage"
                HeaderStyle-Width="20%" UniqueName="BeneficiaryPercentage">
                <ItemTemplate>
                    <telerik:RadNumericTextBox ID="txtBeneficiaryPercentage" runat="server" DbValue='<%# Eval("BeneficiaryPercentage") %>'
                        Type="Percent" BorderStyle="None" BackColor="Transparent" NumberFormat-DecimalDigits="1">
                        <ClientEvents OnBlur="Blur" OnFocus="Focus" />
                    </telerik:RadNumericTextBox>
                </ItemTemplate>
                <FooterTemplate>
                    <telerik:RadTextBox ID="txtFooterTotal" runat="server" BorderStyle="None" BackColor="Transparent">
                        <ClientEvents OnLoad="Load" />
                    </telerik:RadTextBox>
                </FooterTemplate>
            </telerik:GridTemplateColumn>
            <telerik:GridEditCommandColumn ButtonType="ImageButton" EditText="Edit" CancelText="Cancel"
                HeaderStyle-Width="3%" UniqueName="EditCommandColumn">
                <ItemStyle />
            </telerik:GridEditCommandColumn>
            <telerik:GridButtonColumn ButtonType="ImageButton" ConfirmText="Delete this Beneficiary?"
                HeaderStyle-Width="3%" CommandName="Delete" Text="Delete" UniqueName="DeleteColumn">
                <ItemStyle HorizontalAlign="Center" />
            </telerik:GridButtonColumn>
        </Columns>
        <EditFormSettings EditFormType="Template">
            <PopUpSettings Modal="false" Width="650px" />
            <EditColumn UniqueName="EditCommandColumn">
            </EditColumn>
            <FormTemplate>
                <fieldset>
                    <legend><b>Current Designation</b></legend>
                    <table width="650px">
                        <tr>
                            <td colspan="6">
                                <asp:ValidationSummary ID="ValidationSummary1" runat="server" EnableClientScript="true"
                                    DisplayMode="List" HeaderText="Please correct the errors below:" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                  
                            </td>
                            <td>
                                <asp:Label ID="Label1" runat="server" Text="Full Name:"></asp:Label>
                            </td>
                            <td>
                                <telerik:RadTextBox ID="txtFullName" runat="server" Width="150px" Text='<%# Eval("Beneficiary")%>'>
                                    <ReadOnlyStyle ForeColor="DarkGray" />
                                </telerik:RadTextBox>
                                <asp:RequiredFieldValidator ID="reqFullName" runat="server" ControlToValidate="txtFullName"
                                    Text="*" ErrorMessage="* Beneficiary Name is required"></asp:RequiredFieldValidator>
                            </td>
                            <td>
                                  
                            </td>
                            <td>
                                <asp:Label ID="Label3" runat="server" Text="Address 1:"></asp:Label>
                            </td>
                            <td>
                                <telerik:RadTextBox ID="txtAddress1" runat="server" Width="150px" Text='<%# Eval("Address1")%>'>
                                </telerik:RadTextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                  
                            </td>
                            <td>
                                <asp:Label ID="Label8" runat="server" Text="Relationship:"></asp:Label>
                            </td>
                            <td>
                                <telerik:RadComboBox ID="ddlRelationship" runat="server"  LoadingMessage="Loading Relationship..."
                                    DataSourceID="_dataSrcRelationship" DataTextField="BeneficiaryRelationship" DataValueField="BeneficiaryRelationship"
                                    MarkFirstMatch="True" ToolTip="Select a Relationship" AllowCustomText="false"
                                    Width="150px">
                                </telerik:RadComboBox>
                                <asp:RequiredFieldValidator ID="reqRelationship" runat="server" ControlToValidate="ddlRelationship"
                                    Text="*" ErrorMessage="* Relation Type is required"></asp:RequiredFieldValidator>
                            </td>
                            <td>
                                  
                            </td>
                            <td>
                                <asp:Label ID="Label10" runat="server" Text="Address 2:"></asp:Label>
                            </td>
                            <td>
                                <telerik:RadTextBox ID="txtAddress2" runat="server" Width="150px" Text='<%# Eval("Address2")%>'>
                                </telerik:RadTextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                  
                            </td>
                            <td>
                                <asp:Label ID="Label7" runat="server" Text="Percentage:"></asp:Label>
                            </td>
                            <td>
                                <telerik:RadNumericTextBox ID="txtPercentage" Width="150px" runat="server" Text='<%# Eval("BeneficiaryPercentage") %>'
                                    MinValue="0" MaxValue="100" MaxLength="4">
                                    <NumberFormat DecimalDigits="1" />
                                </telerik:RadNumericTextBox>
                                  
                                <asp:RequiredFieldValidator ID="reqPercentage" runat="server" ControlToValidate="txtPercentage"
                                    Text="*" ErrorMessage="* Percentage is required"></asp:RequiredFieldValidator>
                            </td>
                            <td>
                                  
                            </td>
                            <td>
                                <asp:Label ID="Label4" runat="server" Text="City:"></asp:Label>
                            </td>
                            <td>
                                <telerik:RadTextBox ID="txtCity" runat="server" Width="150px" Text='<%# Eval("City")%>'>
                                </telerik:RadTextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                  
                            </td>
                            <td>
                                <asp:Label ID="Label2" runat="server" Text="Birth Date/Trust Date:"></asp:Label>
                            </td>
                            <td>
                                <telerik:RadDatePicker ID="rdpBirthDate" runat="server" Width="150px" DbSelectedDate='<%# Eval("BeneficiaryBirthDate")%>'
                                    MinDate="1/1/1900">
                                    <ClientEvents OnDateSelected="OnDateSelected" />
                                    <DateInput ID="DateInput1" runat="server">
                                        <ClientEvents OnError="onDateError" OnBlur="onBlur" />
                                    </DateInput>
                                </telerik:RadDatePicker>
                                <asp:CustomValidator runat="server" ID="cvBirthDate" ClientValidationFunction="CustomValidate"
                                    Text="*" ErrorMessage="* Date should be valid and less than today's date." />
                            </td>
                            <td>
                                  
                            </td>
                            <td>
                                <asp:Label ID="Label5" runat="server" Text="State:"></asp:Label>
                            </td>
                            <td>
                                <telerik:RadComboBox ID="ddlState" runat="server"  LoadingMessage="Loading State..."
                                    DataSourceID="_dataSrcStateList" DataTextField="StateCode" DataValueField="StateCode"
                                    MarkFirstMatch="False" ToolTip="Select a State" AllowCustomText="false" Width="100px">
                                </telerik:RadComboBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                  
                            </td>
                            <td>
                                <asp:Label ID="Label9" runat="server" Text="SSN/Tax ID:"></asp:Label>
                            </td>
                            <td>
                                <telerik:RadTextBox ID="txtBeneficiarySsn" runat="server" Width="150px" Text='<%# Eval("BeneficiarySsn")%>'>
                                </telerik:RadTextBox>
                            </td>
                            <td>
                                  
                            </td>
                            <td>
                                <asp:Label ID="Label6" runat="server" Text="Postal Code:"></asp:Label>
                            </td>
                            <td>
                                <telerik:RadNumericTextBox ID="txtPostalCode" Width="150px" runat="server" Text='<%# Bind("PostalCode") %>'
                                    MinValue="00001" MaxValue="99999">
                                    <NumberFormat DecimalDigits="0" GroupSizes="5" />
                                </telerik:RadNumericTextBox>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="4">
                                  
                            </td>
                            <td>
                                <asp:Label ID="Label12" runat="server" Text="Country:"></asp:Label>
                            </td>
                            <td>
                                <telerik:RadTextBox ID="txtCountry" runat="server" Width="150px" Text='<%# Eval("Country")%>'>
                                </telerik:RadTextBox>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="6" style="text-align: center">
                                <br />
                            </td>
                        </tr>
                        <tr>
                            <td colspan="5" style="text-align: left">
                                  
                            </td>
                            <td style="text-align: left">
                                <telerik:RadButton ID="btnUpdate" runat="server" Text="OK" CommandArgument="Update record"
                                    CommandName='<%# ((bool)DataBinder.Eval(Container, "OwnerTableView.IsItemInserted")) ? "PerformInsert" : "Update" %>'>
                                    <Icon PrimaryIconUrl="../../App_Themes/Images/rbOk.jpg" PrimaryIconLeft="5"
                                        PrimaryIconTop="4"></Icon>
                                </telerik:RadButton>
                                  
                                <telerik:RadButton runat="server" ID="btnCancel" CommandName="Cancel" CommandArgument="Cancel Edit"
                                    Text="Cancel" CausesValidation="false">
                                    <Icon PrimaryIconUrl="../../App_Themes/Images/rbCancel.jpg" PrimaryIconLeft="5"
                                        PrimaryIconTop="4"></Icon>
                                </telerik:RadButton>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="6" style="text-align: center">
                                <br />
                            </td>
                        </tr>
                    </table>
                </fieldset>
            </FormTemplate>
        </EditFormSettings>
    </MasterTableView>
</telerik:RadGrid>

Venelin
Telerik team
 answered on 09 Jun 2014
1 answer
230 views
I've Two tabs, First tab where I've defined class = "k-state-active". In 2nd tab, i've few buttons & Grid. Based on button click I need Grid (in the 2nd tab) to be populated (server side) after the postback. I've below JQuery to show 2nd tab after postback which is not working.


$(function () {
   $('Button').click(function () {
       var tabstrip = $("#tabstrip").kendoTabStrip().data("kendoTabStrip");​​
       tabstrip.select(1);
    });
});

With above code, I'm getting first tab instead of 2nd tab after button click. Please help.
Alex Gyoshev
Telerik team
 answered on 09 Jun 2014
1 answer
89 views
<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server">
 
 
           <telerik:RadGrid ID="radGridBooks" runat="server"
               AutoGenerateColumns="False"
               ShowFooter="True"
               CellSpacing="0"
               GridLines="None"
               Skin="Default"
               OnNeedDataSource="radGridBooks_NeedDataSource">
 
               <MasterTableView CommandItemDisplay="Top" EditMode="PopUp" GridLines="None" TableLayout="Fixed">
 
                   <CommandItemSettings AddNewRecordText="Add New Book" RefreshText="Refresh"></CommandItemSettings>
                   <Columns>
 
                       <telerik:GridEditCommandColumn></telerik:GridEditCommandColumn>
                       <telerik:GridBoundColumn DataField="ID" UniqueName="ID" HeaderText="Book ID"></telerik:GridBoundColumn>
                       <telerik:GridBoundColumn DataField="Name" HeaderText="Book Name">
                           <ColumnValidationSettings EnableRequiredFieldValidation="true" EnableModelErrorMessageValidation="true">
                               <RequiredFieldValidator ForeColor="Red" ErrorMessage="Required"></RequiredFieldValidator>
                           </ColumnValidationSettings>
                       </telerik:GridBoundColumn>
                       <telerik:GridButtonColumn Text="Del" CommandName="DeleteBook" CommandArgument="ID"></telerik:GridButtonColumn>
                   </Columns>
                   <EditFormSettings EditFormType="Template" CaptionDataField="ID" PopUpSettings-ScrollBars="Auto" PopUpSettings-Modal="True" PopUpSettings-ShowCaptionInEditForm="true">
                       <FormTemplate>
                           <table width="100%">
                               <tr>
                                   <td>Try</td>
                               </tr>
                           </table>
                       </FormTemplate>
                   </EditFormSettings>
               </MasterTableView>
               <ClientSettings EnableRowHoverStyle="true">
               </ClientSettings>
           </telerik:RadGrid>
 
       </telerik:RadAjaxPanel>



LOOK THIS PHOTO
Princy
Top achievements
Rank 2
 answered on 09 Jun 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?