Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
125 views
Hi,
I wanto to show only two days in schedular it's possible ? how?

 
Veronica
Telerik team
 answered on 02 Feb 2011
1 answer
66 views
Gurus,
Is it possible to obtain the column name and cell content in Rowcontext menu?
Your help would be really appreciated...
Vasil
Telerik team
 answered on 02 Feb 2011
3 answers
121 views
I followed the example Selecting Last Inserted Item which seems to work pretty well, but only if I have paging enabled.
 
If I disable paging and UseStaticHeaders="false" it works.
If I disable paging and UseStaticHeaders="true" it does not work.

Should it be scrolling the item into view with UseStaticHeaders="true"?

What is the best workaround for this, to get the selected item into view when UseStaticHeaders="true"

Thanks in advance

Vasil
Telerik team
 answered on 02 Feb 2011
5 answers
112 views
hello,

I am using your control radfilter, and noticed the following problems:

- When I'm working with radfilter, and I select a column of type "bit" and say that it is false, the radgrid is filled with the correct filter, so try to give the true value, it returns an exception and not grid shall bind. By doing so I noticed that a breakpoint that say that the value false he always puts the matter after post put the true value. This bug only happens with columns of type "bit".

- I came across yet another problem when using the provider "RadFilterSqlQueryProvider"to get the sql expression, I noticed that in the cases of columns of type "bit" the provider puts "[ColumnName] = False" instead of putting "[ColumnName ] = 0or "[ColumnName] = 'False'".

Regards.
Rui
Top achievements
Rank 1
 answered on 02 Feb 2011
1 answer
60 views
I create a rad window with a url loaded in it.  

In this window, there is a rad grid with a good width, it looks like 100% the width of the rad window.

When I press the [+] button within the grid to add a record to this grid, it shows the MasterTableViewEditForm template of the grid and now there is a horizontal scroll bar on the rad window.  Inside the template, I have a div and a table like this:

                        <FormTemplate>
                            <div ID="RadGridEditForm" style="padding:5px 5px 5px 5px;">
                                <table cellpadding="2" width="100%">
                                    <tr>
                                        <td width="80%">
                                         .....

Notice how the table is set to 100%.  This causes the grid and hence the radwindow to be much wider than expected and I get a horizontal scroll bar on the radwindow.

If I guess at the width of the table, I can find a value that does not create a scroll bar, but should I have to do this?  How can I just set the width to 100% and have it stretch to 100% of the rad window and not something larger?  If I remove the width specifier from the table, the table is narrower than the window (only about 2/3rds the way across).  I don't see anything else pushing the window that wide, so I don't know why making this table 100% is making the rad window internally wider than it is displaying.

Michael Grant
Georgi Tunev
Telerik team
 answered on 02 Feb 2011
5 answers
285 views
I've done quite a bit of searching and cannot find an example of self-referencing hierarchical grid that is paginated at the database level.

For example:
  • Pull 50 categories from the database (set virtual item count to enable viewing of all pages).
  • Show an expand button if that category has a parent category.
  • If expand button is clicked, expand those 50 categories, repeating the same functionality in the above steps to allow categories to be expanded to the Nth level.

The only way I can accomplish this right now is to get a list of ALL categories in the database. This is not very efficient.

Is there any example displaying this?
PSCU Developers
Top achievements
Rank 1
 answered on 02 Feb 2011
1 answer
534 views
Hi

I'm Using this default for my grid. i want to change the row color for some condition in rad item databound. but it changing the row color.
when i mouse over the row of the changed color i'm getting default color that from (item Created) on mouse out i'm getting white color (item created) but i need that Changed color from item databound.

protected void Grd1_ItemCreated(object sender, Telerik.Web.UI.GridItemEventArgs e)
        {
            GridItemType item = e.Item.ItemType;

            switch (item)
            {
                case GridItemType.AlternatingItem:
                case GridItemType.Item:

                    TableRow row = e.Item as TableRow;
                    string clr = "white";

                    row.Attributes.Add("onmouseover", "this.style.backgroundColor = 'Yellow';");
                    row.Attributes.Add("onmouseout", "this.style.backgroundColor = '" + clr + "';");
                    break;
            }
        }

protected void Grd1_ItemDataBound(object sender, GridItemEventArgs e)
        {

if ((e.Item.ItemType == GridItemType.Item) || (e.Item.ItemType == GridItemType.AlternatingItem))
            {

string _No= grdScheduledPatients.MasterTableView.DataKeyValues[e.Item.ItemIndex]["Datakey"].ToString();

if (_No == "1")
                {
                    e.Item.BackColor = System.Drawing.Color.Green;
                }

}
        }

Give me idea How to change the row color without change the old row color..


Regards,
Ashok Anbarasu
Pavlina
Telerik team
 answered on 02 Feb 2011
2 answers
147 views
I am trying to filter a grid's data based on values selected in a combo box.  The combo box values are databound to a table and the grid is using a SQL Server stored procedure.  When I try to run the code I receive the following error:

ERROR [42000] [Microsoft][ODBC SQL Server Driver][SQL Server]Procedure or Function 'CRMDashboardSales' expects parameter '@CustBill', which was not supplied.

Why does SQL Server get this error when my SelectParameter is defined? 

Code for the grid's datasource:
<asp:SqlDataSource ID="gridsource2" runat="server"

    ConnectionString="<%$ ConnectionStrings:crmDashboardConnectionString %>"      ProviderName="<%$ ConnectionStrings:crmDashboardConnectionString.ProviderName %>"

 

 

 

     SelectCommand="CRMDashboardSales" SelectCommandType="StoredProcedure">

 

 

    <SelectParameters>

 

        <asp:ControlParameter ControlID="NamesDDL" Name="CustBill"

 

 

        PropertyName="SelectedValue" Type="String" />

 

    </SelectParameters>

 

</asp:SqlDataSource>

 

The combo box data value contains CustBill column and is specified as the parameter to send to the stored procedure.  I've also included the Ajax Manager code below for reference.  Thx.

<

telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"     
DefaultLoadingPanelID
="RadAjaxLoadingPanel1"> 
    <AjaxSettings>

 

 

    <telerik:AjaxSetting AjaxControlID="NamesDDL"> 
        <UpdatedControls
            <telerik:AjaxUpdatedControl ControlID="OrdersGrid" LoadingPanelID="AjaxLoadingPanel1" />

 

 

            <telerik:AjaxUpdatedControl ControlID="NamesDDL" />

 

 

        </UpdatedControls 

    </telerik:AjaxSetting
    </AjaxSettings>
</telerik:RadAjaxManager>

 

 

 

 

 

 

 

 



Scott
Top achievements
Rank 1
 answered on 02 Feb 2011
3 answers
104 views
Hello,
I have a question about the work of the RadEditor with an element of "Select", which you can choose from one of the RadEditor toolbox.
On the form located RadEditor with the ability to upload custom templates in the mode of Design. A template is the text and tables, some of the columns which are drop-down list, or more precisely an element of "Select"
<select style="width: 100px; height: 22px;"> </ select>
When the user clicks on the element he chooses it.
Can I do that he chose not an element but its value from the dropdown list as its done in Word or in Preview mode? Is it possible?

Thanks,
Victor.
Rumen
Telerik team
 answered on 02 Feb 2011
4 answers
203 views
Hi,

I have a chart which can have a number of different series plotted with a numerical y axis and a datetime x axis.  The majority of the y axis points will be clustered around a certain value, say in the range 110-120.  I have set AutoScale to true on the y-axis, but it still starts at 0 and goes up to around 120.  Is there anything I can do to automatically limit the y axis to cover just the plotted values? i.e. start at 100, end at 120 for example.  I could find the min and max y value amongst all my series and set the MinValue and MaxValue properties but this is time consuming when I have large series of several hundred items.

Thanks in advance.
Ves
Telerik team
 answered on 02 Feb 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?