Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
222 views
Hello

My RadGrid is based on following demo.
http://demos.telerik.com/aspnet-ajax/grid/examples/client/insertupdatedelete/defaultcs.aspx
There is no server side events or server side bindings.

It is functional but i want to do following things

  • I have template columns with edit, delete and other link. When i insert a new row and rebind and repaint on client side the links are not rendered for newly inserted row.
  • Enable row selection Edit link click that is a template column inside grid

   and disable row selection on row click

For all above if i get row object than i can work with it.

I am doing following thing. That works but how to disable row selection? I have onrowselecting event and there i check for eventargs dom to cancel for td but it is throwing an error in the event when i select from below. is there an efficient way?

 

 

 

 

 

And in function i have following code

<telerik:GridTemplateColumn
<ItemTemplate>  
  
 <a href="#" onclick="EditPersonClick('<%#DataBinder.Eval(Container.DataItem, "PersonId")%> 
  
','Person');return false;"> 
Edit
</a
 </ItemTemplate
  
 </telerik:GridTemplateColumn>

 

 

 

function EditPersonClick(personId) { 
var grid = $find(Person_GridFollowUp); 
var masterTable = grid.get_masterTableView(); 
var dataItems = masterTable.get_dataItems(); 
if (dataItems!=null && dataItems.length > 0) { 
for (var i = 0; i < dataItems.length; i++) { 
  
var dbPersonId= dataItems[i].getDataKeyValue("PersonId" 
  
); // primary key 
if (dbPersonId== personId) { 
var row = dataItems[i]; 
row.set_selected(true); 
return
}}}}

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Pavlina
Telerik team
 answered on 02 May 2011
2 answers
140 views
Hi all,

I'm trying to disable a listview on the client side and have been unable to do so even if I do the following:

document.getElementById(

 

'<%=Listview.ClientID %>').disabled = true

I can disable it server side but would rather client side disable it.

Thanks...

 

Jim
Top achievements
Rank 1
 answered on 02 May 2011
1 answer
170 views
Hello

We are using RadEditor and ImageManager to insert images into it...
What we need and could not find the option is to automatically add image width and height tags in the "<img" tag. (After pressing "insert" in Image Manger to add the image to RadEditor)

thank you,
Dror
Rumen
Telerik team
 answered on 02 May 2011
6 answers
161 views
Hi,

I upgraded my radcontrols from lowest version to the latest and this problem occurs. I only put my telerik dll to bin folder and add reference to it.

Any fix for this?
Rumen
Telerik team
 answered on 02 May 2011
1 answer
74 views
I have an ajax manager that works correctly unless it times out.  Which is it process the request, the busy image comes up, then the rad grid updates. But if it times out, I get the busy image, then the grid remains the same.  I saw the the post to increase the time out.  but I want to know is how to handle it if it does time out.  So I can display a message or clear the grid so the user is not confused.
Cori
Top achievements
Rank 2
 answered on 02 May 2011
1 answer
84 views
Dear Telerik,

I attached a screenshot of the weird shrink behaviour. Seems like all the data moves up
to the right side for some unknown reason. (Yes the data is correctly inserted in the series)
Perhaps you guys have an idea what's causing this ?

Kind Regards,
Kristof

The chart is completely build in code:
-
//Define layout
BaseChart.AutoLayout = true;
BaseChart.AutoTextWrap = false;
BaseChart.Appearance.FillStyle.MainColor = Color.White;
BaseChart.PlotArea.Appearance.FillStyle.MainColor = Color.White;
BaseChart.PlotArea.Appearance.FillStyle.FillType = Telerik.Charting.Styles.FillType.Solid;

//Define XAxis
BaseChart.PlotArea.XAxis.AutoScale = false;
BaseChart.PlotArea.XAxis.AutoShrink = false;
BaseChart.PlotArea.XAxis.LayoutMode = Telerik.Charting.Styles.ChartAxisLayoutMode.Between;

//Define YAxis
BaseChart.PlotArea.YAxis.AutoScale = true;
BaseChart.PlotArea.YAxis.AxisLabel.TextBlock.Text = "";
BaseChart.PlotArea.YAxis.AxisLabel.Visible = true;

//Define ChartTitle
BaseChart.ChartTitle.Appearance.Position.AlignedPosition = Telerik.Charting.Styles.AlignedPositions.TopLeft;
BaseChart.ChartTitle.TextBlock.Text = "";
BaseChart.ChartTitle.TextBlock.Visible = false;
 
 
// Rest is just adding normal series...
Kristof
Top achievements
Rank 1
 answered on 02 May 2011
5 answers
113 views
Hi,

We have a pplication that uses the RadScheduler to display appointments/Activities in the system. Now the appointments in the system allow to create daily recurring activity with options to occur every 1 ,2, 3 ...  days.

We also have implemeted the option of exporting the Scheduler Appointments in ICalendar format as shown in examples on this site.

However whenever there is a daily recurring appointment which occurs in an interval other than 1 (e.g. 2, 3)  the export finction crashes with following error.

"Cannot export appointments with daily recurrence and interval different than 1 in Outlook compatible mode."

I have tried the same in the examples shown on the site and they also crash whever i create a Dailly recurring activity with interval other than 1.

Please let us know how can this be fixed.

Thanks

Rajesh
Veronica
Telerik team
 answered on 02 May 2011
1 answer
68 views
Hi can you help me with my problem attached below?
Tsvetina
Telerik team
 answered on 02 May 2011
2 answers
320 views
I'm evaluating telerik for our company. I have three tabs created dynamically (copied mostly from your sample). Everything works. I can switch from tab to tab

However, if one of my tab content causes a postback, the only tab that actually loads is the first one. The other two, all I see are the tabs but no content.

From my observation, the "onTabSelecting" is called every time I select the tab but no postback (obviously this is due to the call to "args.get_tab().set_postBack(false);" inside the "onTabSelecting"). I suppose this is due to the fact that the tab has already been loaded. This is all fine. But, as soon as I cause a postback inside of one of my tab (done by clicking on a button in the content of my first tab, the second and third tabs no longer has any content). I notice when I caused the postback, the "onTabSelecting" is never called (which does make sense becuase I did not click the tab).

Any idea?
 

Dimitar Terziev
Telerik team
 answered on 02 May 2011
2 answers
93 views
Hi,

Is there any way to hide the NoRecordTemplete for Radgrid when the grid is on insert mode.

Your quick help will be highly appreciated.

Regards,
Saroj

Saroj Nanda
Top achievements
Rank 1
 answered on 02 May 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?