Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
105 views
hi! i would like to know what do i have to add to .aspx.vb pages so that i can create rad objects like this:

Dim rw As New RadWindow
 I tried to import Telerik.Web but is didn't do anything. I'm trying to create a new window when i click on a button and if necessary to pass some arguments to that same page that this new window is going to open.
I appreciate any help.

Fábio


(SOLVED PART ABOUT Import) - > imports Telerik.Web.UI
Fabio
Top achievements
Rank 1
 answered on 16 Jun 2011
1 answer
149 views
Here is the column in my ASP.Net Gridview that is working:

<

 

asp:TemplateField>

 

 

<ItemTemplate>

 

 

<asp:LinkButton runat="server" ID="lbtn1" CommandName="cmd1" CommandArgument='<%#Eval("id")%>' Text="View Sections" />

 

 

</ItemTemplate>

 

 

</asp:TemplateField>

The event is called and processed (the method called is 'protected void gv_RowCommand(Object sender, GridViewCommandEventArgs e)' and it assigns the ID to sqldatasource on the page for another use).

 


How do I implement this in a RadGrid and have it call a method in the code behind to pass the value to the other sqldatasource?

Thanks

James
Top achievements
Rank 1
 answered on 16 Jun 2011
1 answer
61 views
I just ran the install package for the latest version of controls and now my site will not run.  Every time I try I get the same error page which I'm attaching.  Can someone please help so I can work on my site again.  I really need to publish a new version and as it is now I'm completely stuck.
Pero
Telerik team
 answered on 16 Jun 2011
3 answers
144 views
Hello,

I want to achieve that when a user makes a selection with the combobox (cboVolgnr) 016 in my example (see pic), the results comes up and the user wants to clean up his selection but the selection is still there. I thought that the code was complete but it still doesn't works... My code:

 

<td style="width:50px">Volgnr</td>

<td style="width:75px"><telerik:RadComboBox ID="cboVolgnr" Runat="server" Width="75px" Filter="StartsWith"><HeaderTemplate>
<ul><li class="colvolg1">Volgnr</li><li class="colvolg2">Code</li><li class="colvolg3">EI</li><li class="colvolg4">Omschr</li></ul></HeaderTemplate>

 

<ItemTemplate>

 

<ul>

 

<li class="colvolg1"><%#Eval("Volgnr")%></li >

 

<li class="colvolg2"><%#Eval("Code")%></li >

 

<li class="colvolg3"><%#Eval("EI")%></li>

 

<li class="colvolg4"><%#Eval("Omschr")%></li >

 

</ul >

 

</ItemTemplate>

 

</telerik:RadComboBox>

 

</td >

cboVolgnr.Text = ""

 

 

 

 

 

 

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me

 

.Load

 

 

 

 

 

    Dim cn As New SqlConnection(cnnBN.ToString), cmd As SqlCommand, dr As

 

SqlDataReader

 

 

 

 

 

    Dim strSQL As String = "SELECT * FROM tblBWPeriodes WHERE DJ = "

 

& strDJ

 

 

 

 

 

    Try

 

 

 

 

        cn.Open()

 

 

 

 

        cmd = New SqlCommand(strSQL, cn)

 

 

 

 

        dr = cmd.ExecuteReader

 

 

        combo.DataTextField = 

 

"volgnr"

 

 

 

 

        combo.DataValueField = "volgnr"

 

 

 

 

        combo.DataSource = dr

 

 

 

 

        combo.DataBind()

 

 

        combo.Skin = 

 

"Office2007"

 

 

 

 

    Catch ex As Exception

 

 

 

 

        Throw ex

 

 

 

 

    End

 

Try

 

 

 

    dr = Nothing

 

 

 

 

    cmd = Nothing

 

 

 

 

    cn.Dispose()

 

 

 

 

    cn = Nothing

 

 

 

 

    cboVolgnr.HighlightTemplatedItems = True

 

 

 

 

    cboVolgnr.AllowCustomText = True

 

 

 

 

    cboVolgnr.EmptyMessage = "Alles"

 

 

 

 

    cboVolgnr.DropDownWidth = 500

 

 

     cboVolgnr.Height = 375

 

 

 

End

 

Sub

 

Protected Sub btnCriteria_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles

 

btnCriteria.Click

 

 

 

...

 

 

 

 

    cboVolgnr.Text = ""

 

 

 

 

End

 

Sub

Is there something I am missing?  Can you give me a help?

Kind regards,
Kris

 

 

 

 

 

 

 

 

 

 

 

Kris
Top achievements
Rank 2
 answered on 16 Jun 2011
5 answers
96 views
Hi all,
how to obtain the ID of the  just created appointment?
Thank's
Danilo
Peter
Telerik team
 answered on 16 Jun 2011
5 answers
72 views
Hi,
I'm using RadControls for ASP.NET AJAX Q3 2010 and browsing through IE8
I'm looking for a solution to reduce the number of appointments i'm displaying in weekview
Due to a low performace and IE DOS (Deniel of service) when there are more then 100 appointments per week
Is there a solution like: LoadOnDemand(scroll oriented) or "more..." per day links also in weekview like the one in month view?
Thank you.
Peter
Telerik team
 answered on 16 Jun 2011
1 answer
188 views
Design Source Code:
 <telerik:RadGrid ID="radgridencounterdtls" runat="server" AutoGenerateColumns="false"
            AllowPaging="true" PageSize="5" Skin="Default" GridLines="None" CellPadding="0"
            CellSpacing="0"
               PagerStyle-AlwaysVisible="true"
                OnItemDataBound="radgridencounterdtls_ItemDataBound"
              onupdatecommand="radgridencounterdtls_UpdateCommand"
              onneeddatasource="radgridencounterdtls_NeedDataSource"
              onitemcommand="radgridencounterdtls_ItemCommand">
            <MasterTableView DataKeyNames="ID,Tabs,Tabsname">
                <CommandItemSettings ExportToPdfText="Export to Pdf"></CommandItemSettings>
                <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
                    <HeaderStyle Width="20px"></HeaderStyle>
                </RowIndicatorColumn>
                <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
                    <HeaderStyle Width="20px"></HeaderStyle>
                </ExpandCollapseColumn>
                <Columns>
                 <telerik:GridTemplateColumn HeaderText="Template Name"  UniqueName="TemplateName"  >
                        <ItemTemplate>
                            <asp:Label ID="lblTemplateTypeid" runat="server" Text='<%# Eval("TemplateName") %>'></asp:Label>
                        </ItemTemplate>
                        <EditItemTemplate>
                        <asp:Label ID="lbleditTemplateTypeid" runat="server" Text='<%# Eval("TemplateName") %>'></asp:Label>
                        </EditItemTemplate>
                    </telerik:GridTemplateColumn>
                 <telerik:GridTemplateColumn HeaderText="Role" UniqueName="RoleName"  >
                        <ItemTemplate>
                            <asp:Label ID="lblRoleID" runat="server" Text='<%# Eval("RoleName") %>'></asp:Label>
                        </ItemTemplate>
                        <EditItemTemplate>
                         <asp:Label ID="lbleditRoleID" runat="server" Text='<%# Eval("RoleName") %>'></asp:Label>
                        </EditItemTemplate>
                    </telerik:GridTemplateColumn>
                 <telerik:GridTemplateColumn HeaderText="Location"  UniqueName="Locationname"   >
                        <ItemTemplate>
                            <asp:Label ID="lblLocationID" runat="server" Text='<%# Eval("Locationname") %>'></asp:Label>
                        </ItemTemplate>
                        <EditItemTemplate>
                        <asp:Label ID="lbleditLocationID" runat="server" Text='<%# Eval("Locationname") %>'></asp:Label>
                        </EditItemTemplate>
                </telerik:GridTemplateColumn>
                 <telerik:GridTemplateColumn HeaderText="Department"  UniqueName="DepartmentName">
                        <ItemTemplate>
                            <asp:Label ID="lbldepartmentId" runat="server" Text='<%# Eval("DepartmentName") %>'></asp:Label>
                        </ItemTemplate>
                        <EditItemTemplate>
                          <asp:Label ID="lbleditdepartmentId" runat="server" Text='<%# Eval("DepartmentName") %>'></asp:Label>
                        </EditItemTemplate>
                    </telerik:GridTemplateColumn>
                 <telerik:GridTemplateColumn HeaderText="Physician" UniqueName="PhysicianName" >
                        <ItemTemplate>
                            <asp:Label ID="lblPhysicianID" runat="server" Text='<%# Eval("PhysicianName") %>'></asp:Label>
                        </ItemTemplate>
                        <EditItemTemplate>
                         <asp:Label ID="lbleditPhysicianID" runat="server" Text='<%# Eval("PhysicianName") %>'></asp:Label>
                       
                        </EditItemTemplate>
                    </telerik:GridTemplateColumn>
                 <telerik:GridTemplateColumn HeaderText="Tabs" UniqueName="Tabsname" HeaderStyle-HorizontalAlign="Left"  EditFormColumnIndex="4"   HeaderStyle-VerticalAlign="Top" >
                        <ItemTemplate>
                            <asp:Label ID="lblTabs" runat="server" Text='<%# Eval("Tabsname") %>' Font-Bold="false" Font-Size="Smaller" Width="200"></asp:Label>
                        </ItemTemplate>
                        <EditItemTemplate>
                        <div>
                          <span style="float:left;"><telerik:RadListBox ID="rdlistbxEditEnctr" runat="server" Height="150px" SelectionMode="Multiple"  Width="230px" TransferMode="Copy"                                  AllowTransfer="true" TransferToID="rdlistbxEditselectedEnctr" EmptyMessage="No Record Found" CausesValidation="false" >
                         </telerik:RadListBox></span>
                         <span style="float:left;">
                         <telerik:RadListBox ID="rdlistbxEditselectedEnctr" runat="server" AllowReorder="true"
                               EmptyMessage="No Record Selected"
                              Height="150px"  Width="200px"  SelectionMode="Multiple"  CausesValidation="true"  >
                        </telerik:RadListBox>
                      <asp:CustomValidator ID="CustomValidator1" runat="server" ErrorMessage="*Required"
ClientValidationFunction = "ValidateListBox" ValidationGroup="editenctr" >*Required</asp:CustomValidator>
 
                        </span>      
                          
                        </div>
                        </EditItemTemplate>
                    </telerik:GridTemplateColumn>
                 <telerik:GridTemplateColumn>
                        <ItemTemplate>
                          <div style="color:#E75B18;"><span>
                              <asp:LinkButton ID="lnkbtnedit" CommandArgument='<%# Eval("ID") %>' ForeColor="#E75B18" CommandName="Edit" runat="server">Edit</asp:LinkButton>/   <asp:LinkButton ID="lnkbtndelete" runat="server" CommandArgument='<%# Eval("ID") %>'  ForeColor="#E75B18" CommandName="delete"  OnClientClick="return delete_click();" Text="Delete"></asp:LinkButton>  </span></div>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                </Columns>
                <EditFormSettings ColumnNumber="6"  EditColumn-HeaderStyle-ForeColor="#E75B18"    >
                    <FormCaptionStyle   ForeColor="#E75B18"  HorizontalAlign="Left" />
                </EditFormSettings>
            </MasterTableView>
            <FilterMenu EnableImageSprites="False">
            </FilterMenu>
            <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Web20">
            </HeaderContextMenu>
            <ValidationSettings CommandsToValidate="Update" EnableValidation="true" ValidationGroup="editenctr" />
        </telerik:RadGrid>

Javascript code:
 function ValidateListBox(sender, args) {
             var gridvw = document.getElementById("<%=radgridencounterdtls.ClientID%>");
       
          var options = gridvw.getElementsByTagName("select");
         if (options.length > 0) {
              args.IsValid = true;
        }
        else {
           args.IsValid = false;
         }      


Hi, I am facing  a problem to check empty radlist box in radgrid edititem template using custom validation. I have used above  javascript code and have validation is working properly...i have mentioned  radlistbox and its related custom validator  above context ("rdlistbxEditselectedEnctr " & "CustomValidator")
Genady Sergeev
Telerik team
 answered on 16 Jun 2011
3 answers
150 views
Is it possible to use the full install of SQL Server 2008 for the  Telerik Sales Dashboard demo website instead of SQL EXPRESS version?

if so, what connection string do I use in the web.config file?

Thanks

Zoran
Telerik team
 answered on 16 Jun 2011
1 answer
71 views
Hello,

I am binding my radcahrt to a database, and I would like one column in the database to denote the series name (where all rows of the same name would go the same series), one row for the x-value and one row for the y-value.  How can I do this?  The nested binding documentation out there seems to only be for silverlight/wpf, and not for a database.

Thanks,
Eric
Eric
Top achievements
Rank 1
 answered on 16 Jun 2011
2 answers
392 views
Hello,

I'm trying to achieve the following functionality. I have a RadGrid that contains a GridDateTimeColumn, with filtering enabled. This field is populated from a SqlDataSource that selects a DATE column from an Oracle table. The column in the RadGrid shows the date along with the time, that is fine as the RadGrid is being used like a log. What I would like is that when the user selects a date to filter on, ONLY the date part of the filter is looked at, and all entries with that date are displayed in the RadGrid. What is happening, and I believe this is the expected behavior, is that the RadGrid is actually filtering for 11/3/2009 12:00 AM, instead of just 11/3/2009. Is it possible to achieve this desired filtering functionality?

I thought maybe something could be done during the RadGrid1_ItemCommand event, but I couldn't figure out how to say: Use 11/3/2009 for filter and compare to only the date part of the value in the column. I think it is possible to achieve the first part of what I said (modifying the e.CommandArgument text), but I don't know how to tell the RadGrid to only look at the first part of the GridDataItem text.

Thanks,
Casey 
Robert Jordan
Top achievements
Rank 1
 answered on 16 Jun 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
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
Bronze
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?