Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
216 views
Using  slider in a radgrid is perfect for a particular issue.  I have it all working except one thing.

I have placed a radslider in the header of my radgrid and am attempting to use it as a "select all" for the radsliders in the rows of the  associated column.  OnClientValueChange I am iterating thru the griddataitems and trying to use findcontrol to get a refrence to the slider and set the value.

I keep coming back with null.

Am I approaching this wrong or does this control not render in a fashion that allows me to do this?
Here is my javascript function:

function SelectDate(sender, eventArgs)
{

 var grid = $find("rgLoad").get_masterTableView();
 var griditems =grid.get_dataItems();
 
  for (var i=0; i<griditems.length; i++)        
        {    
         var slider = griditems[i].findControl("rslider");
         if(!slider==null)
            slider.set_value(sender.get_value());
        }


}

Let me know if I need to provide more info.

Sebastian
Telerik team
 answered on 30 Jun 2009
5 answers
159 views
Hello,

I'm a currently facing a critical issue with the Rad Calendars:

Everytime I select a date from the calendar's drop down, this date's month value is incremented. For example:
If I select the 4th of May,2009 (5/4/2009) , the selected date in the calendar's textbox would be the 4th of June 2009 (6/4/2009)
I'm using IE6 and IE7 , and Microsoft Visual Studio 2005.

Any Ideas?
Sebastian
Telerik team
 answered on 30 Jun 2009
6 answers
132 views
Hello,

First an foremost, let me tell you have done an excellent job with this product, is robust, portable and very well architected, im glad to be using them.

Second, I haven't been able to position my loading indicator correctly, it always appear in the top and the EnableSkinTransparency is not working.

Im doing the whole job as a server control (no aspx) it is also executed in the OnInit() of the webpart

Thanks for your support



#region

 

Ajax initialization

 

Page.ClientScript.RegisterStartupScript(

typeof(ReferralsListWebPart1), this.ID, "_spOriginalFormAction = document.forms[0].action;_spSuppressFormOnSubmitWrapper=true;", true);

 

 

if (this.Page.Form != null)

 

{

 

string formOnSubmitAtt = this.Page.Form.Attributes["onsubmit"];

 

 

if (!string.IsNullOrEmpty(formOnSubmitAtt) && formOnSubmitAtt == "return _spFormOnSubmitWrapper();")

 

{

 

this.Page.Form.Attributes["onsubmit"] = "_spFormOnSubmitWrapper();";

 

}

}

 

RadAjaxPanel panel = new RadAjaxPanel();

 

panel.ID =

"RadAjaxPanel1";

 

 

this.Controls.Add(panel);

 

 

RadAjaxManager ajaxManager = RadAjaxManager.GetCurrent(this.Page);

 

 

if (ajaxManager == null)

 

{

ajaxManager =

new RadAjaxManager();

 

ajaxManager.ID =

"RadAjaxManager1";

 

Controls.Add(ajaxManager);

 

this.Page.Items.Add(typeof(RadAjaxManager), ajaxManager);

 

}

 

 

 

RadAjaxLoadingPanel loadingPanel = new RadAjaxLoadingPanel();

 

loadingPanel.ID =

"AjaxLoadingPanel1";

 

loadingPanel.Width =

Unit.Percentage(100);

 

loadingPanel.Height =

Unit.Pixel(400);

 

loadingPanel.Transparency = 25;

loadingPanel.EnableSkinTransparency =

true;

 

 

AjaxLoadingPanelBackgroundPosition position = new AjaxLoadingPanelBackgroundPosition();

 

position =

AjaxLoadingPanelBackgroundPosition.Center;

 

loadingPanel.BackgroundPosition = position;

 

Image image = new Image();

 

image.ID =

"loadingImage";

 

image.AlternateText =

"Loading...";

 

image.ImageUrl =

"/_layouts/images/loading.gif";

 

loadingPanel.Controls.Add(image);

 

this.Controls.Add(loadingPanel);

 

panel.LoadingPanelID =

"AjaxLoadingPanel1";

 

 

#endregion

Sebastian
Telerik team
 answered on 30 Jun 2009
9 answers
433 views
Hi ,
I set the default button for my search button to trigger when user do the search and hit enter like this
 <asp:Panel id="pnlbtnSearch" runat="server" defaultButton="btnSearch"> 
                <table id="FilterControls" border="0" cellspacing="2"  style="margin-top: 20px"> 
                    <tr style="margin-left: 25px;padding-bottom:15px"> 
                        <td  class="labels" align="left" valign="top" style="padding-right:15px"> 
                         
                            <asp:label id="lblService" enableviewstate="False"  runat="server"  
                                text="Service:"></asp:label> 
                        </td> 
                        <td  align="left" valign="top" colspan="2" > 
                             <asp:textbox id="uxService" runat="server" width="195px"></asp:textbox> 
                        </td> 
                    </tr> 
                     
                     
                    <tr> 
                        <td style="height:30px" >  
                        </td> 
                        <td  style="text-align:left" ><a><asp:LinkButton ID="btnSearch" runat="server" Text="Search" CssClass="searchBtn" ToolTip="Search" 
                                OnClick="uxSubmit_Click" Style="float: right;"></asp:LinkButton></a> </td> 
                        <td style="text-align:right"  > 
                        <a> 
                            <asp:LinkButton ID="uxReset" runat="server" Text="Reset" ToolTip="Reset" CssClass="cancelBtn" 
                                OnClick="uxReset_Click" Style="float: right;"></asp:LinkButton></a> 
                                                 
                                 
                             
                        </td> 
                    </tr> 
                </table></asp:Panel> 
but hitting enter trigger the delete button on my radGrid.here is how delete button binded on my grid.
<telerik:GridButtonColumn ConfirmText="Warning! This will remove this service and any services underneath." 
                        ConfirmDialogType="RadWindow" ConfirmTitle="Delete" ButtonType="ImageButton" 
                        CommandName="Delete" Text="Delete" ImageUrl="~/Admin/ServiceFinder/images/Delete.gif" 
                        UniqueName="DeleteColumn"> 
                        <HeaderStyle Width="40px" /> 
                        <ItemStyle Width="40px" /> 
                    </telerik:GridButtonColumn> 
 Any ideas why this is happening? or any other way how I can handle to set  default button for hhe user to hit enter to trigger the search button?

Thanks,
Yoni
Sebastian
Telerik team
 answered on 30 Jun 2009
7 answers
202 views
Hello there, Telerik!

Glad to see something like this come along.  It was inevitable, especially given a certain other UI framework that Microsoft is getting -- perhaps uncomfortably -- close to by adopting their core library.

Anyway, my requirements for components we purchase are probably a little different than the majority of your clients.  We need nearly everything we put into the guild sites people create from our site to be dynamically styled, based upon settings the user makes in their control panel (if you're interested in where we're going with the controls you already offer, go make a site, click Control Panel, and look at the link under the "In Beta" accordion section).  

So, that being said, I was a little excited to see the words Telerik, Visual, Style, and Builder all together!  My question is: what are your plans for the tool?  If they are to keep it on your site as a way for people to generate skins, download a ZIP, and extract it to their site, then it will be a fantastic tool for intranet and public-facing sites that don't require personalization at the user level.

But jQuery UI does that with their tools, and it's free.

Might I suggest the following?  Please forgive me if they're already in your plans:

  1. Release it as an ASP.Net control.  Keep the requirement for Silverlight if you absolutely must, but release it so we can use it to let our users customize their sites, which, incidentally, would feature far more of your controls if skinning/styling could be handed over to the user more easily.
  2. Provide access to the output in a non-ZIP format.  .GetCss() would be the bare minimum, but it would be much better if we could have strongly-typed access to the elements they've set vaues for, and the values they've set for those elements.  That way, we can run it through some logical processing (say, if the user's on a mobile device) instead of parsing text.  Helps even more for persisting the preferences in our database, too.
  3. (see 2): If you do it the OO way, of course, the same settings could be applied to XAML for silverlight versions of the controls.
  4. Whack the whole Hue/Saturation thing and get back to color pickers.  Did you guys lock the human interactions guy in the closet while you did that?  ;)  

It would be great if this tool could grow to further establish Telerik amongst ASP.Net developers, who are looking around at alternative, free frameworks.  So far, yours does almost what the jQuery UI Theme Builder does, with Silverlight (and I'm not sure requiring Silverlight is considered a feature to end-users just yet -- certainly to bored developers!).  

One last thing.  I went through the Style Builder with the Mac.  Do you folks there plan on testing with the Mac?  If not, I'd be glad to list the current problems.  But if you already know about them, I'll save my fingers for coding.  =)

Oh and, one final note: if you can't release the source for this but you are willing to release it as a control, please, for the love of all that is holy, allow us to specify custom UI objects and what types of styling (text, background, etc.) can be applied to them.  Then take those objects and runtime and dynamically include them and return the user-selected results to the developer.  Sounds complicated -- probably better going the source route.  =D
Alex Gyoshev
Telerik team
 answered on 30 Jun 2009
1 answer
1.5K+ views
Hi,

We have our web application hosted on a shared server and have managed to get the hosting company to install the Radupload.DLL files into the GAC. Now when we try to upload a file, we can see the progress bar, however once it reaches the end of the progress bar, we are getting the following error. Do we need to apply any particular permissions on the dll once it has been installed on the GAC? the actual line of code that it is failing on is FilesSuccessResults.DataBind(). Where FilesSuccessResults is a repeater control listing out the file that has been uploaded.

System.Reflection.TargetInvocationException: Property accessor 'FileName' on object 'Telerik.WebControls.RadUploadUtils.RadUploadFile' threw the following exception:'Telerik.WebControls.RadUploadUtils.RadUploadFile.get_FileName()' ---> System.MethodAccessException: Telerik.WebControls.RadUploadUtils.RadUploadFile.get_FileName() ---> System.Security.SecurityException: Request failed. at System.Security.CodeAccessSecurityEngine.ThrowSecurityException(Assembly asm, PermissionSet granted, PermissionSet refused, RuntimeMethodHandle rmh, SecurityAction action, Object demand, IPermission permThatFailed) at System.Security.CodeAccessSecurityEngine.ThrowSecurityException(Object assemblyOrString, PermissionSet granted, PermissionSet refused, RuntimeMethodHandle rmh, SecurityAction action, Object demand, IPermission permThatFailed) at System.Security.CodeAccessSecurityEngine.CheckSetHelper(PermissionSet grants, PermissionSet refused, PermissionSet demands, RuntimeMethodHandle rmh, Object assemblyOrString, SecurityAction action, Boolean throwException) at System.Security.PermissionSetTriple.CheckSetDemand(PermissionSet demandSet, PermissionSet& alteredDemandset, RuntimeMethodHandle rmh) at System.Security.PermissionListSet.CheckSetDemand(PermissionSet pset, RuntimeMethodHandle rmh) at System.Security.PermissionListSet.DemandFlagsOrGrantSet(Int32 flags, PermissionSet grantSet) at System.Threading.CompressedStack.DemandFlagsOrGrantSet(Int32 flags, PermissionSet grantSet) at System.Security.CodeAccessSecurityEngine.ReflectionTargetDemandHelper(Int32 permission, PermissionSet targetGrant, CompressedStack securityContext) at System.Security.CodeAccessSecurityEngine.ReflectionTargetDemandHelper(Int32 permission, PermissionSet targetGrant) The action that failed was: Demand The type of the first permission that failed was: System.Security.PermissionSet --- End of inner exception stack trace --- at System.Reflection.MethodBase.PerformSecurityCheck(Object obj, RuntimeMethodHandle method, IntPtr parent, UInt32 invocationFlags) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.ComponentModel.ReflectPropertyDescriptor.GetValue(Object component) --- End of inner exception stack trace --- at System.ComponentModel.ReflectPropertyDescriptor.GetValue(Object component) at System.Web.UI.DataBinder.GetPropertyValue(Object container, String propName) at System.Web.UI.DataBinder.Eval(Object container, String[] expressionParts) at System.Web.UI.DataBinder.Eval(Object container, String expression) at System.Web.UI.TemplateControl.Eval(String expression) at ASP.promoitemedit_aspx.__DataBind__control6(Object sender, EventArgs e) in e:\inetpub\vs156194\milieextranet\PromoItemEdit.aspx:line 98 at System.Web.UI.Control.OnDataBinding(EventArgs e) at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) at System.Web.UI.Control.DataBind() at System.Web.UI.Control.DataBindChildren() at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) at System.Web.UI.Control.DataBind() at System.Web.UI.WebControls.Repeater.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem) at System.Web.UI.WebControls.Repeater.CreateControlHierarchy(Boolean useDataSource) at System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e) at System.Web.UI.WebControls.Repeater.DataBind() at MilieExtranetUI.PromoItemEdit.BindResults(UPLOAD_STATUS bSuccess) in C:\SVN\LMG\Millie\trunk\Code\MillieExtraNet\MillieExtraNet\PromoItemEdit.aspx.vb:line 994 at MilieExtranetUI.PromoItemEdit.btnUpload_Click(Object sender, EventArgs e) in C:\SVN\LMG\Millie\trunk\Code\MillieExtraNet\MillieExtraNet\PromoItemEdit.aspx.vb:line 1089

Paul
Telerik team
 answered on 30 Jun 2009
3 answers
70 views
Hi There,
I have a page with several tabs and inside each tab we have RadComboBoxes. The RadComboBoxes are receiving the attribute skin="Webblue" from a .Skin file in our App Themes folder. The tabs are set to only render the selected tab. The first tab looks fine. However, all the other tabs when they are selected and rendered the ComboBoxes' style is broken so that when an Item wraps it doesn't take up 2 lines it actually floats over the next item on the next line. So that the item under a wrapping item is unreadable. Please any help would be appreciated. Thanks.
Paul
Telerik team
 answered on 30 Jun 2009
0 answers
101 views
Hi ,

I need answer for this question for an interview. I am unable to fine them anywhere. Can any sharepoint guru here in the forum help me out by giving the answer.

Questions are - 

1) disadvantages of converting listform web part to dataform webpart
2) how to convert List form webpart to XSLT view
. Anyhelp would be thankful
abc 123
Top achievements
Rank 1
 asked on 30 Jun 2009
1 answer
207 views

Hi
 ScriptManager.RegisterStartupScript not working in share point web part with rad ajax panel.
with out rad ajax panel its working fine
 ScriptManager.RegisterStartupScript(this._radAjaxpanelminical, GetType(), "showandhide", "showHideContent()", true);

Can u guide me as soon as possible

Regards
Vairam
vairam
Top achievements
Rank 1
 answered on 30 Jun 2009
1 answer
86 views
Hi, How can I customize the group footers for to display only the groupings that I select and not all group footers??

Thanks for advance.
Shinu
Top achievements
Rank 2
 answered on 30 Jun 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?