Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
149 views
I have Test.aspx that contains a RadScheduler. I am binding the scheduler to a DataTable and the data table is based on a SQL Server 2008 table. The table in the SQL Server database is tblAppointments, modeled after a table in Aspnetdb.mdf; a sample database included with the Telerik ASP.NET Ajax installation (Telerik.Web.UI, v.2011.3.1305.40 Dev).
When Test.aspx first loads, it will correctly display within the sceduler all of the appointments that have been stored in tblAppointments. When I modify any of the appointments displayed by the scheduler, the scheduler is refreshed, but after the refresh, no appointments are displayed (none of the appointments are displayed by the scheduler). If I close and start a new browser instance that re-opens Test.aspx, then the appointments reappear, including the latest modification that I made to one of the appointments.
I have googled the snot out of this and have reviewed the following resources, but these have not helped me to find the cause of my problem:
I can upload my ASPX and its code for anyone who would like to review it, but you would have to find a SQL Server database that you can connect to, plus find an appointments table. This telerik control isn't going to do me any good if I can't find a solution to this problem.
Thanks,
Steven
Peter
Telerik team
 answered on 28 Mar 2012
1 answer
106 views
My apologies in advance.

I know this question has been asked millions of times. I've seen them all over the place in the forums. 

However, I'm not really sure that, all those times, the right question was actually asked. So, please, let me try for the 1000001 time:

I have this table with customer info of all kinds, which when fully expanded, takes tens of thousands of records. I would like to show this table to the users of my application using a RadGrid. Of course, I don't want to shove the full contents of this table at once to my users' throats; I would like the data to show gradually, as the users scroll in the table, in chunks of 100 by 100 (preferably).

Using many, many techniques, the RadGrid can do this just fine.

Now, I would also like to enable this cool functionality of the RadGrid that, when a user drags a column cell to the top of the grid, the grid automatically groups the data and displays it hierarchically, much like a tree view, with one, two, or many columns if needed.

So, you see, basically I would like (as the title said) Outlook-style grouping, *and at the same time*, on-demand loading of data into the grid, to make my users' life easier. 

Is this feasible, at all, with the current version of the RadGrid? What is the right combination of techniques that will let me do this thing I just described? Name them however you want, I don't care. Just, please, tell me what can I do to implement such a scenario.

Any comments will be highly appreciated!

Maria Ilieva
Telerik team
 answered on 28 Mar 2012
3 answers
211 views
Hi,

I am using Radgrid in one of my project ,i want to get editImageUrl and want to change it from code behind;
When i run the application and if i try to get the editimageurl i am getting the following error.
"Object reference not set to an instance of an object."
The html i am using is

<

 

MasterTableView DataKeyNames="Id" AutoGenerateColumns="false" CommandItemDisplay="Top">

<Columns>

<telerik:GridEditCommandColumn UniqueName="EditCommandColumn" HeaderText="Edit column" ButtonType="ImageButton"

 

EditImageUrl = "

~/Alarm.png"

 

 >

<ItemStyle Width="50px" />

</telerik:GridEditCommandColumn>

......

if i try to get "EditImageUrl " of grideditcommandcoloumn it is throughting the above error.
Note:I tried to assign GridEditCommandColoumn from codebehind same issue is coming
Code:

GridEditCommandColumn edc = new GridEditCommandColumn();

edc.ButtonType =

GridButtonColumnType.ImageButton;

edc.EditImageUrl =

"~/Alarm.png";

Response.Write(edc.EditImageUrl);


Please help me on this.
Princy
Top achievements
Rank 2
 answered on 28 Mar 2012
1 answer
120 views
Hi,

I resize my grid when the window load. It works well for every browser except Internet Explorer. The grid is always "null".

I tried what they say in this thread, but this is not working, so I guess I got something different.

Here is my code (jQuery):

$(window).load(function()
{
    Resize();
 
    $(window).resize(function()
    {
        Resize();
    });
});
 
function Resize()
 {
    var grid = $find("<%= mygrid.ClientID %>");
    if (grid != null)
    {
        grid.get_element().style.height = $("#form1").height() + "px";
        grid.repaint();
    }
 }

What am I missing?

I don't want to use pageLoad because it fire before Pictures are load, that's why I'm using $(window).load().

Thanks
Pavlina
Telerik team
 answered on 28 Mar 2012
1 answer
97 views
Hi,

    How can we set the columns property of textarea inside RadMultiPageView using javascript.Please reply ASAP.

Princy
Top achievements
Rank 2
 answered on 28 Mar 2012
3 answers
123 views
Implement a custom appointment provider. Is there a mechanism for the provider to get the resources once and then keep them in the scheduler for duration of the page? I would expect the provider to supply the resources and the scheduler to keep them until they are explicitly changed (ie. for another view). But in my case, the provider has to get the resources from the database every time it is accessed (ie. getting appoitments, adding appointment)

I have overridden GetResources(ISchedulerInfo schedulerInfo) to return the resources available to the scheduler; however, it doesn't seem right to me that it queries the backend for the resource definitions on every postback.

If I set the resources programmatically the scheduler seems to maintain the resources on postbacks. For example...

if (!Page.IsPostBack)
{
    ResourceType providers = new ResourceType("Providers");
    providers.DataSource = ScheduleAdapter.GetViewResources(defaultView.ResourceViewID);
    providers.KeyField = "ResourceID";
    providers.TextField = "Resource";
    providers.ForeignKeyField = "ResourceID";
 
    RadScheduler1.ResourceTypes.Add(providers);
}

What am I missing with the implementation of a custom provider? How do you get the provider to supply the scheduler with its Resource collection just once.

Thanks.
Peter
Telerik team
 answered on 28 Mar 2012
5 answers
230 views

Hi,

I have a radgrid in which I'm binding the data. For instance I have the column "SER" in the grid. The value of "SER" in the grid is
"NG  101101". The length is fixed i.e 10.

When i export the above data using export to excel, the radgrid exports the above data to "NG 101101".  It removes one space. I don't want the excel to remove the space. I need to maintain the data as such.

Could you please help me achieve what I want.

Thanks,
Raji

Daniel
Telerik team
 answered on 28 Mar 2012
5 answers
169 views

Hi,

I am adding a new Ribbon tab with two ribbon buttons dynamically. When i click the added ribbon button, its throwing the error,
Error: Sys.WebForms.PageRequestManagerServerErrorException: Index was out of range. Must be non-negative and less than the size of the collection.

What may be the Issue?

 

Thanks,
Mohan

Garry
Top achievements
Rank 2
Veteran
 answered on 28 Mar 2012
1 answer
208 views
Hi,

I am using RadComboBox in my application, but when I run this application and treid to select non selected combobox item then it will not allow to select.

Here is sample code.

<rad:RadComboBox ID="RadComboBox1" runat="server">
                   <Items>
                       <rad:RadComboBoxItem runat="server" Text="A" Value="1" />
                       <rad:RadComboBoxItem runat="server" Text="B" Value="2" />
                       <rad:RadComboBoxItem runat="server" Text="C" Value="3" />
                   </Items>
               </rad:RadComboBox>

Please find attached snap with is thread.I am not able to select Item other than A.

Thanks in advance.
Dimitar Terziev
Telerik team
 answered on 28 Mar 2012
4 answers
171 views
First div tag gets reformatted on save. 

Original Code:
<
div class="main-block comparison" id="comparison">
   <div class="main-frame">
    <div class="left-col">
         <h2>Product Comparison</h2>
         <p>Quisque commodo hendrerit lorem quis egestas. Maecenas quis tortor arcu.  </p>
    </div>
    <div class="right-col">
        <div class="image-holder"> <img src="_themes/v2/images/img.png" alt="" /></div>
        <a href="#" class="launch-btn"><span>Click to Launch Comparison Tool</span></a>
   </div>
 </div>
</div>

And it gets reformatted as:
<div class="main-block"> 

I tried adding StripFormattingOptions="noneSupressCleanMessage" and ConvertToXhtml="false"
to see if that made a difference. 

Telerik dll version: 2011.3.1115.40
Rumen
Telerik team
 answered on 28 Mar 2012
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?