Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
71 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
186 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
147 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
70 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
377 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
2 answers
99 views
Hi

I am dynamically creating a vertical menu using server side code to create the menuitems.

The data for the text is coming from database entries that represent names
of things in our system.

These names can be quite long.

Everything seemed fine with the menu until I entered data into our DB that caused
the menu to stretch horizontally.

When I hover over an item there is a gap in the highlighting.
There is a block of color wide rounded corners on the left. Then a gap.
Then the rest of the highlight, with rounded corners on the right.

Also the two separators I added to my menu don't stretch all the way to
the right.

Am I doing something wrong, or is there perhaps a bug?

TIA 
Kate
Telerik team
 answered on 16 Jun 2011
15 answers
1.5K+ views
I do not want the RadGrid NeedDataSource to fire on Page Load Event instead i need to fire it on Search button Clickin My Form.
i need to Populate radgrid only after the input Control Data and Search button Click.
Please Help me...
are there any properties i am missing on??

Regards,
Ashwin
kavitha
Top achievements
Rank 1
 answered on 16 Jun 2011
2 answers
113 views
Hello,  I really want to be able to click the xaxis labels and display another menu when that happens.  I read elsewhere that this is not supported yet, but that webpage was back in 2007.  Is this supported now?

Eric
Aaron King
Top achievements
Rank 1
 answered on 16 Jun 2011
1 answer
188 views
1.  I have downloaded the sample Telerik Sales Dashboard demo site.
2.  I have SQL Server 2008 installed and have the NorthWind database installed also.
3.  When I try to launch the web site using VS2010, I keep getting the error:

static public IObjectScope GetNewObjectScope()
{
Database db = Database();  <-- Error happens here
IObjectScope newScope = db.GetObjectScope();
return newScope;
}

Unable to reach database server on host ''.
Error Details:A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified).


I have tried all of the following connection strings in my web.config (one by one) file but none of them work:


<add name="NorthwindConnectionString" connectionString="Data Source=.\MYCOMPUTERNAME;AttachDbFilename=|DataDirectory|\Northwind.mdf;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>


    <add name="NorthwindConnectionString" connectionString="Data Source=.\MYCOMPUTERNAME;AttachDbFilename=|DataDirectory|\Northwind.mdf;Integrated Security=True" providerName="System.Data.SqlClient"/>


    <add name="NorthwindConnectionString" connectionString="Data Source=MYCOMPUTERNAME;Initial Catalog=Northwind;Integrated Security=True" providerName="System.Data.SqlClient"/>


    <add name="NorthwindConnectionString" connectionString="Server=MYCOMPUTERNAME; Database=Northwind.mdf; Integrated Security=true;" providerName="System.Data.SqlClient" />





What is going wrong here?  What is the correct connection string to use for SQL Server 2008?
Alexander
Telerik team
 answered on 16 Jun 2011
4 answers
1.4K+ views
Hi,

I was wondering if anyone would know how to perform the following:

I have a RadGrid (emails) and I would like the following:

Click on a row - select a single row, any other selected rows are de-selected (single selection - regardless of CTRL or SHIFT keys pressed)
Click on a row selector checkbox - allow multiple row selections (CTRL/SHIFT keys)

But the problem I have, if the user clicks on row 5 for example, it gets highlighted and then if they hold SHIFT key down and click on say row 8 below, all these rows are selected (5 to 8) but I want it to deselect the originally selected row (5) and then select the clicked row (8). I only want multiple selections to be made via the row selector checkbox click.

If I turn on UseClientSelectColumnOnly="true" then it doesn't select the row when I click on it, only when I click on the row selector checkbox as per it's name suggests.

This is ALL done client side, there are NO Postbacks. Data is fetched via web services.

To visualise this: EmailClient - the grid holds a list of email headers, the user clicks on a row and the full email is displayed in the details area of the page below the grid. If they click another row, this email is then shown in detail. If they select multiple rows, no email is show in the details area but instead I want to show a count of which emails are selected e.g. "5 Email Selected"

Hope someone can guide me ...

Many thanks,

Ro

 

 

 

 

 

Rohan
Top achievements
Rank 1
 answered on 16 Jun 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?