Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
35 views
Hi,
how to set size for RadSplitter using Jquery?

Thanki.
Dobromir
Telerik team
 answered on 28 Mar 2012
5 answers
78 views
I was wondering if it was possible to use our own custom modal from instead of AdvancedInsertTemplate. So when a user double clicks on the Appointment instead of showing him/her a AdvancedInsertTemplate our own Modal form will show up. When user fills out that modal form and click Insert we will simply re-bind scheduler to see new appointment. Thanks
Peter
Telerik team
 answered on 28 Mar 2012
1 answer
117 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
83 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
183 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
70 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
83 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
102 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
192 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
145 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?