Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
122 views
I have a radgrid that after insert it inserts another row if i updates the page.

I have a page with a usercontrol, that usercontrol has a radgrid.

When i inserts a new record with:

rg_Main.MasterTableView.IsItemInserted =

true;

 

rg_Main.Rebind();


It creates another row as expected. But if I refresh the page it inserts another row. For every refresh another row is created.

What am I doing wrong?

Regards

Carl-Johan Larsson
Carl-Johan
Top achievements
Rank 1
 answered on 29 Jun 2010
2 answers
201 views
Hi, I have a problem with a LinkButton which is initially not visible (-> set during Page_Load). The LinkButton is contained among with a few other controls in an ASP:Panel (see code):

<asp:Panel ID="pnlLogin" runat="server">                        
<asp:LoginName ID="loginName" runat="server" FormatString="Welcome {0}" />
<asp:LinkButton ID="btnUpdateProfile" runat="server" CssClass="login" Text="My Profile"></asp:LinkButton>                                       
<asp:LinkButton ID="btnLoginMain" runat="server" CssClass="login">Log In</asp:LinkButton>
<asp:LinkButton ID="btnCreateLogin" runat="server" CssClass="login">Register</asp:LinkButton>
</asp:Panel>    

After evaluating an ajax_request event on the server the visibility of the LinkButton is set to true if a certain condition is met.
At first sight everything seems alright, the previous hidden control is now displayed. However if one takes a look at the rendered
segment the link-quality is gone:

<div id="pnlLoginPanel">
<div id="pnlLogin">
<a id="btnLoginMain" class="login" href="javascript:__doPostBack('btnLoginMain','')">Log In</a>                    
<a id="btnCreateLogin" class="login" href="javascript:__doPostBack('btnCreateLogin','')">Register</a>
</div>
</div>         

This is quite unfortunate since this LinkButton should now function as OpenerElementID of a RadWindow - which it can't do any
more. Can anybody point out to me, what is going wrong ?

Thanks a lot,
Wolfgang
Wolfgang Sigel
Top achievements
Rank 1
 answered on 29 Jun 2010
3 answers
129 views
in 4.0 .net framework using Visual Studio2010 radajax panel gives error when trying to change a dropdown selection which is set to postback on selction change. it errors out at the line in bold:



if(typeof(this.__EVENTTARGET)!="undefined"&&typeof(this.__EVENTARGUMENT)!="undefined"){var b=new Telerik.Web.UI.RadAjaxRequestEventArgs(this.__EVENTTARGET,this.__EVENTARGUMENT,this._enableAJAX);
this.fireEvent(this,"OnResponseEnd",[b]);
}if(this._requestQueue.length>0){this._executePendingRequest();
}},_queueRequest:function(a,c){c.set_cancel(true);
if(this._requestQueue.length>=this._requestQueueSize){return;
}var b=c.get_postBackElement();
var e=b.id;
if(b.name){e=b.name;
}if(a._form.__EVENTTARGET&&a._form.__EVENTTARGET.value){e=a._form.__EVENTTARGET.value;
}var d=a._form.__EVENTARGUMENT.value;
Array.enqueue(this._requestQueue,[e,d]);
},_executePendingRequest:function(){var a=Array.dequeue(this._requestQueue);
var c=a[0];
var b=a[1];
var d=Sys.WebForms.PageRequestManager.getInstance();
d._doPostBack(c,b);
},_attachRequestHandlers:function(a,c,e){this._endRequestHandler=Function.createDelegate(this,this._endRequest);
a.add_endRequest(this._endRequestHandler);
this._onFormSubmitCompletedHandler=Function.createDelegate(this,this._onFormSubmitCompleted);
c.get_request().add_completed(this._onFormSubmitCompletedHandler);
c.get_request()._get_eventHandlerList()._list.completed.reverse();
if(e){var b=c.get_request().get_body();
var d=(b.lastIndexOf("&")!=b.length-1)?"&":"";
b+=d+"RadAJAXControlID="+a._uniqueIDToClientID(this._uniqueID);
c.get_request().set_body(b);
}},_getParentAjaxPanel:function(a){var b=null;
while(a!=null){if(typeof(a.id)!="undefined"&&$find(a.id)&&$find(a.id).Type=="Telerik.Web.UI.RadAjaxPanel"){b=$find(a.id);
break;
}a=a.parentNode;
}return b;
},getResponseItems:function(n,h,c){var j=Sys.WebForms.PageRequestManager.getInstance();
var e=n;
var i,k,g,b,m;
var a=0;
var f=null;
var d="|";
var l=[];
Veli
Telerik team
 answered on 29 Jun 2010
3 answers
489 views
Hi,

I have a radgrid with custom column having radio button, which allows only one selection at given time.
The functionality works perfect, but the problem I am facing is about the selected row color.

For eg: If I select first radio button, it highlights that row, now when I select another row, it de-selects the first selection but keeps it highlighted and also highlights the currently selected row.

Please let me know, exactly what I can do to avoid this situation.

Thank you,
Jay Mehta.
Princy
Top achievements
Rank 2
 answered on 29 Jun 2010
1 answer
97 views
Dear all,

I am developing a DNN module for my client, they have a licensed RadControl for ASP.Net Ajax and want me to use this control set in module development. I like the UI a lot but I have a problem with using this control in DNN. Don't be upset with me as i am just a newbie to RadControl. If I use RadControl for a standalone website, it works perfectly, but if I move the user control to make it a DNN module, the module cannot run, it just says object reference not set to....and stop. I did a google and found that the DNN included radcontrol cannot be used directly for module development. I try to replace the original Telerik.WebUI.dll file of DNN with new file of the RadControl installation, the DNN cannot run and it says "Error   1   Could not load file or assembly 'Telerik.Web.UI, Version=2010.1.309.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)"
What should I do to make my module work? I really want to use RadControl as it is very nice and don't want to change back to ASP.net controls.
Thank you very much,
CT
      

C T
Top achievements
Rank 1
 answered on 29 Jun 2010
2 answers
312 views
I have Telerik 2009.02.0817.20

See my .jpg file attachment.
Shows a RadChart using a Web20 skin.

There is a blue border around the outer most part of the graph.
Where the 4 red arrows are pointed.

Can I turn this border off?
Or can I change the color of this border to white?
Chris
Top achievements
Rank 1
 answered on 29 Jun 2010
1 answer
174 views
Hi,

I have a grid that has a grouping type column and sub grouping on date column.

I want the grid to be displayed  in a manner that the records with the type - Calendar are displayed first and then the records with the type Task are displayed following the same grouping by date pattern. I want this logical seperation of data to have headers on top that say Activity for the type of activity records and task for the type of task records.

I was able to create the sub group, but I wanted my sub group and the records under that to be indented so that it looks like a sub group. Right now the sub group just shows under the main group.

I have also attached a sample of how I want my grid displayed.

Could you suggest some way of doing that?

newbie
Top achievements
Rank 1
 answered on 28 Jun 2010
2 answers
167 views
I want the users to upload 1-10 files. Currently you can add/remove the upload controls, but I want to show 10 upload controls and hide the Add / Delete buttons and checkboxes next to controls. (all those extra options only confuse the users)

How do I accomplish this?
chris
Top achievements
Rank 1
 answered on 28 Jun 2010
4 answers
269 views
Hello,

I try to add a RadBinaryImage to my Webform after I clicked a certain row in my RadGrid.
Funny is that the GridBinaryImageColumn shows the thumbnail of the Image clearly but the RadBinaryImage (big image) won't show anything afterwords...

Code looks like this:
  RadBinaryImage img = new RadBinaryImage();
  img.DataValue = GetVideoById(videoId).FrontImage;
  img.AutoAdjustImageControlSize = false;
  img.Width = 600;
  img.Height = 300;
  cell = new HtmlTableCell();
  cell.Controls.Add(img);
  row = new HtmlTableRow();
  row.Cells.Add(cell);
  table1.Rows.Add(row);
  placeImg.Controls.Add(table1); -> Placeholder for table

Thanks for help!
Beat
Cory Hudson
Top achievements
Rank 2
 answered on 28 Jun 2010
3 answers
392 views
Hello,

I have around 7 rad editors spread over three user controls. I have lot of performance issue.
I am using following markup

 

 

<telerik:RadEditor ID="Editor2" runat="server" EditModes="Design" EnableResize="False"

 

 

 

Height="150px" StripFormattingOnPaste="MSWord" ToolbarMode="ShowOnFocus" ToolTip="Please enter data"

 

 

 

Width="100%" ToolProviderID="Editor1" Visible="False">

 

 

 

<Tools>

 

 

 

<telerik:EditorToolGroup>

 

 

 

<telerik:EditorTool Name="AjaxSpellCheck" />

 

 

 

</telerik:EditorToolGroup>

 

 

 

<telerik:EditorToolGroup>

 

 

 

<telerik:EditorTool Name="Bold" />

 

 

 

<telerik:EditorTool Name="Italic" />

 

 

 

<telerik:EditorTool Name="Underline" />

 

 

 

<telerik:EditorTool Name="Cut" />

 

 

 

<telerik:EditorTool Name="Copy" />

 

 

 

<telerik:EditorTool Name="Paste" />

 

 

 

<telerik:EditorTool Name="FontName" />

 

 

 

<telerik:EditorTool Name="RealFontSize" />

 

 

 

</telerik:EditorToolGroup>

 

 

 

<telerik:EditorToolGroup>

 

 

 

<telerik:EditorTool Name="InsertTable" />

 

 

 

<telerik:EditorTool Name="InsertImage" />

 

 

 

<telerik:EditorTool Name="LinkManager" />

 

 

 

<telerik:EditorTool Name="Unlink" />

 

 

 

<telerik:EditorTool Name="InsertOrderedList" />

 

 

 

<telerik:EditorTool Name="InsertUnorderedList" />

 

 

 

</telerik:EditorToolGroup>

 

 

 

</Tools>

 

 

 

<SpellCheckSettings SpellCheckProvider="PhoneticProvider" WordIgnoreOptions="RepeatedWords" />

 

 

 

</telerik:RadEditor>

I have this debug=false, have rad compression module set up and IIS 7 has compression enabled. I also have following setting in app_browser

 

<

 

 

browsers>

 

<

 

 

browser refID="Default">

 

<

 

 

controlAdapters>

 

<

 

 

adapter controlType="System.Web.UI.Page" adapterType="Telerik.Web.UI.RadHiddenFieldPageStateCompression" />

 

</

 

 

controlAdapters>

 

</

 

 

browser>

 

</

 

 

browsers>

 


Am i done with all the changes are is there any hope for improving performance. As for now this performance is not acceptable.

The performance is worse when i integrate the user controls in the page that has ajaxified rad tab control in it with RadMultipage view that have load on demand user controls.

Is there a sample project where i can just have div that displays rad editor html and on right click i can open the rad window in popup and when i hit save the div will get updated. That way i can get rid of all rad editors from the usercontrols.

But my first preference is to have them on page with optimum performance.

Regards
Mac

Dobromir
Telerik team
 answered on 28 Jun 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?