Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
105 views
Just a quick word of thanks to Telerik for developing the Style Builder. It has its quirks and issues, but overall is a great tool. I was able to create a custom theme for a new project for the entire RadControls set within 30 mins. Normally this would have taken hours if not days to complete.

Please continue to focus efforts on improving and advancing the Visual Style Builder. Its value to RadControls customers is immense!

Thanks again,

Kevin.
Paul
Telerik team
 answered on 01 Oct 2009
1 answer
125 views
Hello there,

I have an editform in a RadGrid, i use a template and in this template i placed a raddatepicker, but when i push on the little calender field to popup the calendar it shows a big way to the left. Sometimes out of the screen and sometimes just in depending on the position of the editform. How can i make the raddatepicker show up just like normally under the field?

Btw i tried to use a datepicker under the div and that one just worked fine, it only goes wrong when i use it within the editform.

Below my code:
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ucKlantMutatie.ascx.cs" 
    Inherits="VEGAS.Klanten.ucKlantToevoegen" %> 
<link href="../App_Themes/hypotheekVegas/shHypotheek.css" rel="stylesheet" type="text/css" /> 
<link href="../App_Themes/vegas/forms-algemeen.css" rel="stylesheet" type="text/css" /> 
<div style="border-style: outset; width: 700px; border-color: Gray;"> 
    <telerik:RadGrid ID="RGKlantMutatie" runat="server" OnNeedDataSource="RGKlantMutatie_NeedDataSource" 
        OnUpdateCommand="RGKlantMutatie_UpdateCommand"  
        OnItemCommand="RGKlantMutatie_ItemCommand" GridLines="None" 
        Skin="Web20" AutoGenerateColumns="False"  
        OnItemDataBound="RGKlantMutatie_ItemDataBound"> 
        <MasterTableView EditMode="PopUp" CommandItemSettings-RefreshText="Vernieuw"> 
<CommandItemSettings AddNewRecordText="Voeg nieuwe datumcontrole toe" RefreshText="Vernieuw"></CommandItemSettings> 
            <Columns> 
                <telerik:GridBoundColumn DataField="intKlantID" Visible="True" SortExpression="intKlantID" 
                    UniqueName="intKlantID" HeaderText="Klant ID"> 
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="strNaam" Visible="True" SortExpression="strNaam" 
                    UniqueName="strNaam" HeaderText="Naam"> 
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="strVoorletters" HeaderText="Voorletters" SortExpression="strVoorletters" 
                    UniqueName="strVoorletters" Visible="True"> 
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="strTussenvoegsel" HeaderText="Tussenvoegsel" 
                    SortExpression="strTussenvoegsel" UniqueName="strTussenvoegsel" Visible="True"> 
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="strStraat" HeaderText="Straat" SortExpression="strStraat" 
                    UniqueName="strStraat" Visible="True"> 
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="strHuisnummer" HeaderText="Huisnr." SortExpression="strHuisnummer" 
                    UniqueName="strHuisnummer" Visible="True"> 
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="strToevoeging" HeaderText="Toevoeging" SortExpression="strToevoeging" 
                    UniqueName="strToevoeging" Visible="True"> 
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="strPlaats" HeaderText="Plaats" SortExpression="strPlaats" 
                    UniqueName="strPlaats" Visible="True"> 
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="strPostcode" HeaderText="Postcode" SortExpression="strPostcode" 
                    UniqueName="strPostcode" Visible="True"> 
                </telerik:GridBoundColumn> 
                <telerik:GridCheckBoxColumn DataField="blnAdresVerouderd" DataType="System.Boolean" 
                    HeaderText="Adres verouderd" SortExpression="blnAdresVerouderd" UniqueName="blnAdresVerouderd"> 
                </telerik:GridCheckBoxColumn> 
                <telerik:GridBoundColumn DataField="strEmail" HeaderText="E-mail" SortExpression="strEmail" 
                    UniqueName="strEmail" Visible="True"> 
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="intNationaliteitID" HeaderText="Nationaliteit" 
                    SortExpression="intNationaliteitID" UniqueName="intNationaliteitID" Visible="True"> 
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="strGeslacht" HeaderText="Geslacht" SortExpression="strGeslacht" 
                    UniqueName="strGeslacht" Visible="True"> 
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="strBurgelijkestaat" HeaderText="Burgerlijke staat" 
                    SortExpression="strBurgelijkestaat" UniqueName="strBurgelijkestaat" Visible="True"> 
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="strBSN" HeaderText="BSN" SortExpression="strBSN" 
                    UniqueName="strBSN" Visible="True"> 
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="strRekeningnummer" HeaderText="Rekeningnummer" 
                    SortExpression="strRekeningnummer" UniqueName="strRekeningnummer" Visible="True"> 
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="intLegitimatietypeID" HeaderText="Legitimatietype" 
                    SortExpression="intLegitimatietypeID" UniqueName="intLegitimatietypeID" Visible="True"> 
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="strLegitimatienummer" HeaderText="Legitimatienummer" 
                    SortExpression="strLegitimatienummer" UniqueName="strLegitimatienummer" Visible="True"> 
                </telerik:GridBoundColumn> 
                <telerik:GridEditCommandColumn EditText="Wijzig" UniqueName="EditCommandColumn"> 
                </telerik:GridEditCommandColumn> 
            </Columns> 
            <EditFormSettings EditFormType="Template" PopUpSettings-Height="460px" PopUpSettings-Width="800px"> 
<EditColumn UniqueName="EditCommandColumn1"></EditColumn> 
                <FormTemplate> 
                    <table id="Table2" cellspacing="2" cellpadding="1" width="1000" border="0" rules="none" 
                        style="border-collapse: collapse; background: white;"> 
                        <tr> 
                            <td colspan="2" style="font-size: small"> 
                                <b>SubTrajectstap details</b> 
                            </td> 
                        </tr> 
                            </table> 
            <table class="tblMain-form" cellspacing="2" cellPadding="0" border="0"> 
                <tr> 
                    <td class="form-label" width="100">Naam:</td> 
                    <td width="250"><asp:textbox id="txtNaam" Width="250px" MaxLength="30" runat="server" CssClass="pers-textbox"></asp:textbox></td> 
                    <td class="form-label" width="100">Voorletters:</td> 
                    <td width="75"><asp:textbox id="txtVoorletters" Width="75" MaxLength="10" runat="server" CssClass="pers-textbox"></asp:textbox></td> 
                    <td class="form-label" width="100">Tussenvoegsel:</td> 
                    <td width="75"><asp:textbox id="txtTussenvoegsel" Width="75" MaxLength="10" runat="server" CssClass="pers-textbox"></asp:textbox></td> 
                </tr> 
            </table> 
            <table class="tblMain-form" cellspacing="2" cellPadding="0" border="0"> 
                <tr> 
                    <td class="form-label" width="100">Straat:</td> 
                    <td width="250"><asp:textbox id="txtAdres" Width="250" MaxLength="30" runat="server" CssClass="pers-textbox"></asp:textbox></td> 
                    <td class="form-label" width="100">Huisnummer:</td> 
                    <td width="75"><asp:textbox id="txtHuisnummer" Width="75" MaxLength="5" runat="server" CssClass="pers-textbox"></asp:textbox></td> 
                    <td class="form-label" width="100">Toevoeging:</td> 
                    <TD width="75"><asp:textbox id="txtToevoeging" Width="75" MaxLength="10" runat="server" CssClass="pers-textbox"></asp:textbox></td> 
                </tr> 
            </table> 
            <table class="tblMain-form" cellspacing="2" cellPadding="0" border="0"> 
                <tr> 
                    <td class="form-label" width="100">Plaats:</td> 
                    <td width="250"><asp:textbox id="txtPlaats" Width="250" MaxLength="30" runat="server" CssClass="pers-textbox"></asp:textbox></td> 
                    <td class="form-label" width="100">Postcode:</td> 
                    <td width="75"><asp:textbox id="txtPostcode" Width="75" MaxLength="7" runat="server" CssClass="pers-textbox"></asp:textbox></td> 
                    <td class="form-label" width="100" nowrap>Adres verouderd:</td> 
                    <td width="75"><telerik:RadComboBox ID="cboVerouderd" Runat="server"  
                            Enabled="False" Width="75"> 
                        </telerik:RadComboBox></td> 
                </tr> 
            </table> 
            <table class="tblMain-form" cellspacing="2" cellPadding="0" border="0"> 
                <tr> 
                    <td class="form-label" width="100">Telefoon:</td> 
                    <td width="100"><asp:textbox id="txtTelefoon" Width="100" MaxLength="15" runat="server" CssClass="pers-textbox"></asp:textbox></TD> 
                    <td class="form-label" width="100">Mobiel:</td> 
                    <td width="100"><asp:textbox id="txtMobiel" Width="100" MaxLength="15" runat="server" CssClass="pers-textbox"></asp:textbox></TD> 
                </tr> 
            </table> 
            <table class="tblMain-form" cellspacing="2" cellPadding="0" border="0"> 
                <tr> 
                    <td class="form-label" width="100">Email:</td> 
                    <TD width="500"><asp:textbox id="txtEmail" Width="500" MaxLength="50" runat="server" CssClass="pers-textbox"></asp:textbox></td> 
                </tr> 
            </table> 
            <table class="tblMain-form" cellspacing="2" cellPadding="0" border="0"> 
                <tr> 
                    <td class="form-label" width="100">Geboortedatum:</td> 
                    <td width="200"> 
                        <telerik:RadDatePicker ID="dtpGeboortedatum" runat="server" Calendar-CultureInfo="nl-NL" Enabled="True" DateInput-MinDate="1-1-1900 0:00:00" MinDate="1-1-1900 0:00:00" DateInput-ForeColor="#666666" DatePopupButton-Visible="True" DateInput-DateFormat="dd-MM-yyyy" DateInput-DisplayDateFormat="dd-MM-yyyy"> 
                        </telerik:RadDatePicker> 
                    </td> 
                    <td class="form-label" style="WIDTH: 100px" width="100">Overlijdensdatum:</td> 
                    <td width="200"> 
                        <telerik:RadDatePicker ID="dtpOverlijdensdatum" runat="server" Calendar-CultureInfo="nl-NL" Enabled="True" DateInput-MinDate="1-1-1900 0:00:00" MinDate="1-1-1900 0:00:00" DateInput-ForeColor="#666666" DatePopupButton-Visible="True" DateInput-DateFormat="dd-MM-yyyy" DateInput-DisplayDateFormat="dd-MM-yyyy"> 
                        </telerik:RadDatePicker> 
                    </td> 
                    <td class="form-label" style="WIDTH: 100px" noWrap width="100">Nationaliteit:</td> 
                    <td width="100"><telerik:RadComboBox ID="cboNationaliteit" Runat="server" > 
                        </telerik:RadComboBox> 
                        </td> 
                </tr> 
            </table> 
            <table class="tblMain-form" cellspacing="2" cellPadding="0" border="0"> 
                <tr> 
                    <td class="form-label" style="WIDTH: 100px" width="100">Geslacht:</td> 
                    <td width="100"><telerik:RadComboBox ID="cboGeslacht" Runat="server" Width="82px"> 
                        </telerik:RadComboBox></td> 
                    <td class="form-label" style="WIDTH: 108px" noWrap width="108">Burgerlijke staat:</td> 
                    <td width="200"><telerik:RadComboBox ID="cboBurgelijkestaat" Runat="server" > 
                        </telerik:RadComboBox> 
                        </td> 
                </tr> 
            </table> 
            <table class="tblMain-form" cellspacing="2" cellPadding="0" border="0"> 
                <tr> 
                    <td class="form-label" width="100">Sofinummer:</td> 
                    <td width="90"><asp:textbox id="txtSofinummer" Width="90" MaxLength="9" runat="server" CssClass="pers-textbox" 
                            ></asp:textbox></td> 
                    <td class="form-label" width="160">Rekeningnummer:</td> 
                    <td width="100"><asp:textbox id="txtRekening" Width="100" MaxLength="10" runat="server" CssClass="pers-textbox" 
                            ></asp:textbox></td> 
                </tr> 
            </table> 
            <table class="tblMain-form" cellspacing="2" cellPadding="0" border="0"> 
                <tr> 
                    <td class="form-label" width="100">Legitimatie:</td> 
                    <td width="120"><telerik:RadComboBox ID="cboLegitimatie" Runat="server"  
                            Width="130px"> 
                        </telerik:RadComboBox></td> 
                    <td class="form-label" width="130">Nummer:</td> 
                    <td width="100"><asp:textbox id="txtLegitimatieNummer" Width="100" MaxLength="10" runat="server" CssClass="pers-textbox"></asp:textbox></td> 
                </tr> 
            </table> 
<table> 
                        <tr> 
                            <td align="left" colspan="2"> 
                                <asp:Button ID="btnUpdate" Text='<%# (Container is GridEditFormInsertItem) ? "Toevoegen" : "Opslaan" %>' 
                                    runat="server" CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>' 
                                    CausesValidation="true" ValidationGroup="submit"></asp:Button>&nbsp; 
                                <asp:Button ID="btnCancel" Text="Annuleer" runat="server" CausesValidation="False" 
                                    CommandName="Cancel"></asp:Button> 
                            </td> 
                        </tr> 
                    </table> 
                     
                </FormTemplate> 
            </EditFormSettings> 
        </MasterTableView> 
        <ClientSettings> 
            <Scrolling AllowScroll="True" UseStaticHeaders="True" ScrollHeight="50px" /> 
        </ClientSettings> 
    </telerik:RadGrid> 
</div> 

Yavor
Telerik team
 answered on 01 Oct 2009
1 answer
153 views
I have a tabstrip with 3 multipage view. Each pageview has a grid on it. I am requesting data each time an user visits the tab for these grids.

Here is my issue:

First time when I visit a tab I get data for that particular grid only. It works. If I click on another tab I am getting data for both the first tab as well as the second tab I have visited. If I visit the 3rd tab I am getting data for all the 3 grids in the response. However the WCF service which feeds the data to these grid is only called for the grid/tab the user has just clicked.

Why is this behaviour this is using tremendous bandwidth and we are using Barracuda firewall and it is blocking these pages as th length of the POST is exceeded.

Please advise.

Thanks
Paul
Telerik team
 answered on 01 Oct 2009
3 answers
146 views
Hello,

can you send me an code-example for a  vb.net based web-service, like ProductCategories.cs?

Best regards.

Christian
Paul
Telerik team
 answered on 01 Oct 2009
1 answer
105 views
Hi,

I have boolean(bit)  field in my table. I want show check box to that boolean filed. HOw can i show check box for boolean filed without using template column?

lakmal
Shinu
Top achievements
Rank 2
 answered on 01 Oct 2009
4 answers
259 views
Hi,

I'm trying to incorporate the RadFileExporer inside my radgrid edit form to select a image.   I have it working with the open button in a grid templatecolumn and the Explorer.aspx file but I cant figure out how to get the file value back to the text field in the edit form.

In my grid page I added the OnFileSelected java but I relized that it wont be able to find the text control to set the value for saving back to the database.

So basiccly I want to have the textbox with the filename,  then a open button to select the file from explorer.aspx in a radwindow then have it put the filename value in the textbox in the edit form.

Are there any examples of this that I can look at?

Thanks
-Keith
Jaimie
Top achievements
Rank 1
 answered on 01 Oct 2009
1 answer
108 views
Just wondering what the recommended way it to find multiple nodes that have a certain attribute for example.

Since FindNodeByAttribute only returns one result.  I'm mainly concerned with the server side that the moment, but wouldn't mind knowing the answer for client side as well.

Thanks
Schlurk
Top achievements
Rank 2
 answered on 30 Sep 2009
1 answer
103 views
I have a N-tier application patterned after the Northwind N-tier example.

Page Codebehind:

**** this is where my problem is ("Object reference not set to an instance of an object")

        protected void RadGrid1_UpdateCommand(object source, GridCommandEventArgs e) 
        { 
            IDictionary dict = new Hashtable(); 
            GridEditFormItem editedItem = (GridEditFormItem)e.Item; 
            editedItem.OwnerTableView.ExtractValuesFromItem(dict, editedItem); 
 
            User editeduser = new User(); 
 
    ****        editeduser.Uid = int.Parse(dict["Uid"].ToString()); 
            editeduser.First = dict["First"].ToString(); 
            editeduser.Last = dict["Last"].ToString(); 
            editeduser.Username = dict["Username"].ToString(); 
 
            dataProvider.UpdateUser(editeduser); 
        } 

Since the column "Uid" is both hidden and read only it doesn't show up in "dict".

How can I work around this? What is the correct way to access the value of a hidden read only value from UpdateCommand event?


ScalarSyS
Top achievements
Rank 1
 answered on 30 Sep 2009
3 answers
147 views
Hi,

I'm trying to work out the best way of handling forms with the Telerik controls.  I've started to use the form view ASP component but it seems somewhat basic.  Are there any plans for a Telerik enhanced formview component?

Alternatively does anyone have any suggestions for RAD creation of forms complete with the view, edit (update and create) functionality.

Thanks in advance for any assistance.

Regards,

Jon

keith robideau
Top achievements
Rank 1
 answered on 30 Sep 2009
3 answers
437 views
I have two date pickers that I am trying to validate for a start and end date. I have this in my code but it always returns back as an invalid entry, even when the end date is later than the start date. Any ideas why? Here is my code. Thanks,
        <tr>
            <td>
                <center>
                    <span class="adminTableLabel">Start Date</span>
                    <telerik:RadDateTimePicker ID="startDate" Skin="Web20" runat="server" Width="150px">
                    </telerik:RadDateTimePicker>
                    <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator1" ControlToValidate="startDate"
                        ErrorMessage="Please enter a start date." CssClass="errorMessage"></asp:RequiredFieldValidator>
                </center>
            </td>
            <td class="addBusinessSpacing">
            </td>
            <td>
                <center>
                    <span class="adminTableLabel">End Date</span>
                    <telerik:RadDateTimePicker ID="endDate" Skin="Web20" runat="server" Width="150px">
                    </telerik:RadDateTimePicker>
                    <asp:CompareValidator ID="dateCompareValidator" runat="server"
                        ControlToValidate="endDate" ControlToCompare="startDate"
                        Operator="GreaterThan" Type="date"
                        ErrorMessage="The end date must be later than the start date."
                        CssClass="errorMessage">
                    </asp:CompareValidator>
                </center>
            </td>
        </tr>
Pavlina
Telerik team
 answered on 30 Sep 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?