Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
206 views
i have created a radgrid with an update button image type and created custom update commands....whenever i hit edit the grid will instantaneously change into the in line edit mode and the correct index will be changed but the data it self is from a completly deferant records it is as if the select command was edited though it isnt.... i cannot use the automatic update commands because my table is a 4 tables unioned together so i used a template column and the item template is a pen image and the updated or canel is a x and correct mark...it is something i found at your site and it is not working...
Pavlina
Telerik team
 answered on 22 May 2009
1 answer
161 views
Hi Folks.
I would like to know the ways of Customizing the Rad Scheduler Skin in accordance with the Sharepoint Cardinal theme calendar.
Awaiting for your reply.
Thanks
Paul
Telerik team
 answered on 22 May 2009
1 answer
85 views
I have a custom control that insert a input of type hidden:
  Telerik.Web.UI.Editor.CommandList["InsertSubmissionForm"] = function(commandName, editor, args)
    {
       var myCallbackFunction = function(sender, args)
       {
          
                var myString +="<tr>" +
                        "<td align=\"center\" colspan=\"2\"><input class=\"AHbtnfield\" id=\"btnSubmitInitialForm\" onclick=\"return ValidateForm();\" type=\"submit\" value=\"Submit\" name=\"btnSubmitInitialForm\" /> <input id=\"hiddenSubmitInitialForm\" type=\"hidden\" value=\"hiddenSubmitInitialForm\" name=\"hiddenSubmitInitialForm\" /> </td>" +
                        "</tr>" +
                        "<tr>" +
                        "<td colspan=\"3\" charoff=\"2\">* = required</td>" +
                        "</tr>";
            
            
            
        
            editor.pasteHtml("<div id=\"submissionDiv\">" + myString + "</div>");
 
       }

It inserts fine but then the hidden field shows up in ie. If i click preview and then design it disapears then if i click html then design it comes back.

Anyway I can prevent this?

Thanks
Rumen
Telerik team
 answered on 22 May 2009
1 answer
108 views
Hi,

I have a RadTreeView Control inside a RadCombo template which is based on the Telerik samples.
The only change I have made is to bind the RadTreeView to a LinqDataSource. All works fine with one exception:

How do I prevent the RadCombo from closing if the selected node has no parents (top-level node) ?
In other words, I want to force a user to select a child node.

Thank you in advance

Gerry 






Princy
Top achievements
Rank 2
 answered on 22 May 2009
5 answers
147 views
I'm looking to give my combo box 2 very unique displays

HTML DROP DOWN
I want to make my combo box look identical to a <select /> drop down box

HTML TEXT BOX
I want to add "auto-suggest" items inside the search window of our web site.  None of the skins match the look and feel of my website.

I need to be able to display the combo box without any drop down arrow, or decorator to the right of the text box. I also need the textbox to look just like the standard html input text box with the default look.

thanks
Paul
Telerik team
 answered on 22 May 2009
1 answer
143 views
Hi
For Rad toolbar the following lines of code is used in aspx page to attach the event onClientClick.  Please can u tell me how we can move this line of code into server side i.e, aspx.cs file?

<script language="javascript" type="text/javascript"> 
<%= tbDebtRequirement.ClientID %>.attachEvent(""OnClientClick"",""ToolBarEvents"");
</Script>

I tried the following in Code behind(.cs) file. But it does not work..

 string sJscript = "";
 sJscript = @"'<%= tbDebtRequirement.ClientID %>'.attachEvent(""OnClientClick"",""ToolBarEvents"");";
this.ClientScript.RegisterStartupScript(typeof(Page), "jj", sJscript, false);

This wont give any javascript error but the event will not get fired.

Thanks
Siva Kumar KB
Bent
Top achievements
Rank 2
 answered on 22 May 2009
2 answers
91 views
Hi, I am using RadControls for ASP.NET AJAX version 2009.1.402.35.  I got an error when running in Firefox.  The error occurs after a RadCombox post back.    When the handler is done in server side, the page loading handler in client side can go through. But the page loaded handler never been able to called.  When runing in IE, both page handler went through.  Please help!!!
Thanks,
P.S.  Also we investigated the implementation of _getAbbrmonthIndex.  It looks right:

_getAbbrMonthIndex:function(a)
    {if(!this._upperAbbrMonths)
    this._upperAbbrMonths=this._toUpperArray(this.dateTimeFormat.AbbreviatedMonthNames);
    return Array.indexOf(this._upperAbbrMonths,this._toUpper(a))
    },





----------------------------------------------------------------  Error -----------------------------------------------------------------
_getAbbrMonthIndex()("")Telerik....ae524c98b (line 1065)
Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_ScriptManager1_HiddenField&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a3bbfe379-348b-450d-86a7-bb22e53c1978%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2009.1.402.35%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3ae2aefbad-6eca-4fec-a07c-998a5a2d33c0%3a16e4e7cd%3af7645509%3a24ee1bba%3ae330518b%3a1e771326%3ac8618e41%3bESRI.ArcGIS.ADF.Web.UI.WebControls%2c+Version%3d9.3.1.3000%2c+Culture%3dneutral%2c+PublicKeyToken%3d8fc3cc631e44ad86%3aen-US%3a5b74ae6b-e789-47e1-85a7-8889e4c7ad29%3a6f849c84%3aa8a8211a%3ac5527224%3bTelerik.Web.UI%2c+Version%3d2009.1.402.35%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3ae2aefbad-6eca-4fec-a07c-998a5a2d33c0%3a11a04f7e%3bAjaxControlToolkit%2c+Version%3d1.0.10920.32880%2c+Culture%3dneutral%2c+PublicKeyToken%3d28f01b0e84b6d53e%3aen-US%3a816bbca1-959d-46fd-928f-6347d6f2c9c3%3adc2d6e36%3ab14bb7d5%3a5acd2e8e%3bESRI.ArcGIS.ADF.Web.UI.WebControls%2c+Version%3d9.3.1.3000%2c+Culture%3dneutral%2c+PublicKeyToken%3d8fc3cc631e44ad86%3aen-US%3a5b74ae6b-e789-47e1-85a7-8889e4c7ad29%3adaa3e9c%3adf3baf57%3a7b1c26c6%3a264ee7f6%3a931bab0a%3ae9d1c022%3a211cda53%3bTelerik.Web.UI%2c+Version%3d2009.1.402.35%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3ae2aefbad-6eca-4fec-a07c-998a5a2d33c0%3aaa288e2d%3aa7e79140%3ae524c98b()()Telerik....ae524c98b (line 11047)
[Break on this error] this._upperAbbrMonths=this._toUpperArray...s.dateTimeFormat.AbbreviatedMonthNames);
Sebastian
Telerik team
 answered on 22 May 2009
1 answer
3.2K+ views

Hi

I need change border color of Date Picker date input. It have CssClass "radEnabledCss_Default" and If I change color of border it doesnt do anything. Now it have color with code #626262 and this code of color I cant find in all project. I think that this color is from some default setting and dont know how I can change it.

 

Can you help me?

 

David Slavík

Princy
Top achievements
Rank 2
 answered on 22 May 2009
1 answer
104 views
Hi,

I have a RadGrid which in most of the cases display the same image per row.

When i use HTTP Analyzer, i see that the image is being loaded multiple times, meaning that if I have 100 rows that should display it, it will be loaded (or searched in cache) for 100 times.

What's the best way to optimize it and get rid of those unnecessary requests?

Thanks.
Shinu
Top achievements
Rank 2
 answered on 22 May 2009
1 answer
115 views
Hello
Here is my sqldatasource statement
 <asp:SqlDataSource id="SqlDSLegende" runat="server" 
            connectionstring="<%$ ConnectionStrings:ConnectionString %>" 
            providerName="<%$ ConnectionStrings:ConnectionString.ProviderName %>" 
            selectcommand="SELECT dbo_GPM_T_MAT_GRP.INTERV, Right([dbo_gpm_T_MAT_GRP.MAT],1) AS Expr3, dbo_GPM_T_MAT_GRP.GRP, dbo_GPM_T_MAT_GRP.ID_ECO, dbo_GPM_T_MSG_CODE.CAT_MSG_CODE, dbo_GPM_T_MSG_CODE.DESCR FROM (dbo_GPM_T_MAT_GRP INNER JOIN dbo_GPM_T_MAT ON (dbo_GPM_T_MAT_GRP.ID_ECO = dbo_GPM_T_MAT.ID_ECO) AND (dbo_GPM_T_MAT_GRP.MAT = dbo_GPM_T_MAT.MAT)) INNER JOIN dbo_GPM_T_MSG_CODE ON dbo_GPM_T_MAT_GRP.ID_ECO = dbo_GPM_T_MSG_CODE.ID_ECO GROUP BY Left([dbo_GPM_T_MAT_grp].[mat],3), dbo_GPM_T_MAT_GRP.INTERV, Right([dbo_gpm_T_MAT_GRP.MAT],1), dbo_GPM_T_MAT_GRP.GRP, dbo_GPM_T_MAT_GRP.ID_ECO, dbo_GPM_T_MSG_CODE.CAT_MSG_CODE, dbo_GPM_T_MSG_CODE.DESCR HAVING (((Left([dbo_GPM_T_MAT_grp].[mat],3))='tra') AND ((dbo_GPM_T_MAT_GRP.INTERV)=?) AND ((Right([dbo_gpm_T_MAT_GRP.MAT],1))='5') AND ((dbo_GPM_T_MAT_GRP.GRP)=?) AND ((dbo_GPM_T_MAT_GRP.ID_ECO)=?) AND ((dbo_GPM_T_MSG_CODE.CAT_MSG_CODE)='as5' Or (dbo_GPM_T_MSG_CODE.CAT_MSG_CODE)='fo5')) OR (((Left([dbo_GPM_T_MAT_grp].[mat],3))='tra') AND ((dbo_GPM_T_MAT_GRP.INTERV)=?) AND ((Right([dbo_gpm_T_MAT_GRP.MAT],1))='4') AND ((dbo_GPM_T_MAT_GRP.GRP)=?) AND ((dbo_GPM_T_MAT_GRP.ID_ECO)=?) AND ((dbo_GPM_T_MSG_CODE.CAT_MSG_CODE)='as4' Or (dbo_GPM_T_MSG_CODE.CAT_MSG_CODE)='fo4')) OR (((Left([dbo_GPM_T_MAT_grp].[mat],3))='tra') AND ((dbo_GPM_T_MAT_GRP.INTERV)=?) AND ((Right([dbo_gpm_T_MAT_GRP.MAT],1))='3') AND ((dbo_GPM_T_MAT_GRP.GRP)=?) AND ((dbo_GPM_T_MAT_GRP.ID_ECO)=?) AND ((dbo_GPM_T_MSG_CODE.CAT_MSG_CODE)='as3' Or (dbo_GPM_T_MSG_CODE.CAT_MSG_CODE)='fo3')) OR (((Left([dbo_GPM_T_MAT_grp].[mat],3))='tra') AND ((dbo_GPM_T_MAT_GRP.INTERV)=?) AND ((Right([dbo_gpm_T_MAT_GRP.MAT],1))='2') AND ((dbo_GPM_T_MAT_GRP.GRP)=?) AND ((dbo_GPM_T_MAT_GRP.ID_ECO)=?) AND ((dbo_GPM_T_MSG_CODE.CAT_MSG_CODE)='as2' Or (dbo_GPM_T_MSG_CODE.CAT_MSG_CODE)='fo2')) OR (((Left([dbo_GPM_T_MAT_grp].[mat],3))='tra') AND ((dbo_GPM_T_MAT_GRP.INTERV)=?) AND ((Right([dbo_gpm_T_MAT_GRP.MAT],1))='1') AND ((dbo_GPM_T_MAT_GRP.GRP)=?) AND ((dbo_GPM_T_MAT_GRP.ID_ECO)=?) AND ((dbo_GPM_T_MSG_CODE.CAT_MSG_CODE)='as1' Or (dbo_GPM_T_MSG_CODE.CAT_MSG_CODE)='fo1'))">  
            <SelectParameters> 
                <asp:Parameter Name="INTERV" Type="String" /> 
                <asp:Parameter Name="GRP" Type="string" /> 
                <asp:Parameter Name="ID_ECO" Type="int32" /> 
                
            </SelectParameters> 
        </asp:SqlDataSource> 
It says to me that COUNT field incorrect.
So I put
 <asp:SqlDataSource id="SqlDSLegende" runat="server" 
            connectionstring="<%$ ConnectionStrings:ConnectionString %>" 
            providerName="<%$ ConnectionStrings:ConnectionString.ProviderName %>" 
            selectcommand="SELECT dbo_GPM_T_MAT_GRP.INTERV, Right([dbo_gpm_T_MAT_GRP.MAT],1) AS Expr3, dbo_GPM_T_MAT_GRP.GRP, dbo_GPM_T_MAT_GRP.ID_ECO, dbo_GPM_T_MSG_CODE.CAT_MSG_CODE, dbo_GPM_T_MSG_CODE.DESCR FROM (dbo_GPM_T_MAT_GRP INNER JOIN dbo_GPM_T_MAT ON (dbo_GPM_T_MAT_GRP.ID_ECO = dbo_GPM_T_MAT.ID_ECO) AND (dbo_GPM_T_MAT_GRP.MAT = dbo_GPM_T_MAT.MAT)) INNER JOIN dbo_GPM_T_MSG_CODE ON dbo_GPM_T_MAT_GRP.ID_ECO = dbo_GPM_T_MSG_CODE.ID_ECO GROUP BY Left([dbo_GPM_T_MAT_grp].[mat],3), dbo_GPM_T_MAT_GRP.INTERV, Right([dbo_gpm_T_MAT_GRP.MAT],1), dbo_GPM_T_MAT_GRP.GRP, dbo_GPM_T_MAT_GRP.ID_ECO, dbo_GPM_T_MSG_CODE.CAT_MSG_CODE, dbo_GPM_T_MSG_CODE.DESCR HAVING (((Left([dbo_GPM_T_MAT_grp].[mat],3))='tra') AND ((dbo_GPM_T_MAT_GRP.INTERV)=?) AND ((Right([dbo_gpm_T_MAT_GRP.MAT],1))='5') AND ((dbo_GPM_T_MAT_GRP.GRP)=?) AND ((dbo_GPM_T_MAT_GRP.ID_ECO)=?) AND ((dbo_GPM_T_MSG_CODE.CAT_MSG_CODE)='as5' Or (dbo_GPM_T_MSG_CODE.CAT_MSG_CODE)='fo5')) OR (((Left([dbo_GPM_T_MAT_grp].[mat],3))='tra') AND ((dbo_GPM_T_MAT_GRP.INTERV)=?) AND ((Right([dbo_gpm_T_MAT_GRP.MAT],1))='4') AND ((dbo_GPM_T_MAT_GRP.GRP)=?) AND ((dbo_GPM_T_MAT_GRP.ID_ECO)=?) AND ((dbo_GPM_T_MSG_CODE.CAT_MSG_CODE)='as4' Or (dbo_GPM_T_MSG_CODE.CAT_MSG_CODE)='fo4')) OR (((Left([dbo_GPM_T_MAT_grp].[mat],3))='tra') AND ((dbo_GPM_T_MAT_GRP.INTERV)=?) AND ((Right([dbo_gpm_T_MAT_GRP.MAT],1))='3') AND ((dbo_GPM_T_MAT_GRP.GRP)=?) AND ((dbo_GPM_T_MAT_GRP.ID_ECO)=?) AND ((dbo_GPM_T_MSG_CODE.CAT_MSG_CODE)='as3' Or (dbo_GPM_T_MSG_CODE.CAT_MSG_CODE)='fo3')) OR (((Left([dbo_GPM_T_MAT_grp].[mat],3))='tra') AND ((dbo_GPM_T_MAT_GRP.INTERV)=?) AND ((Right([dbo_gpm_T_MAT_GRP.MAT],1))='2') AND ((dbo_GPM_T_MAT_GRP.GRP)=?) AND ((dbo_GPM_T_MAT_GRP.ID_ECO)=?) AND ((dbo_GPM_T_MSG_CODE.CAT_MSG_CODE)='as2' Or (dbo_GPM_T_MSG_CODE.CAT_MSG_CODE)='fo2')) OR (((Left([dbo_GPM_T_MAT_grp].[mat],3))='tra') AND ((dbo_GPM_T_MAT_GRP.INTERV)=?) AND ((Right([dbo_gpm_T_MAT_GRP.MAT],1))='1') AND ((dbo_GPM_T_MAT_GRP.GRP)=?) AND ((dbo_GPM_T_MAT_GRP.ID_ECO)=?) AND ((dbo_GPM_T_MSG_CODE.CAT_MSG_CODE)='as1' Or (dbo_GPM_T_MSG_CODE.CAT_MSG_CODE)='fo1'))">  
            <SelectParameters> 
                <asp:Parameter Name="INTERV" Type="String" /> 
                <asp:Parameter Name="GRP" Type="string" /> 
                <asp:Parameter Name="ID_ECO" Type="int32" /> 
                <asp:Parameter Name="INTERV" Type="String" /> 
                <asp:Parameter Name="GRP" Type="string" /> 
                <asp:Parameter Name="ID_ECO" Type="int32" /> 
                <asp:Parameter Name="INTERV" Type="String" /> 
                <asp:Parameter Name="GRP" Type="string" /> 
                <asp:Parameter Name="ID_ECO" Type="int32" /> 
                <asp:Parameter Name="INTERV" Type="String" /> 
                <asp:Parameter Name="GRP" Type="string" /> 
                <asp:Parameter Name="ID_ECO" Type="int32" /> 
                <asp:Parameter Name="INTERV" Type="String" /> 
                <asp:Parameter Name="GRP" Type="string" /> 
                <asp:Parameter Name="ID_ECO" Type="int32" /> 
 
            </SelectParameters> 
        </asp:SqlDataSource> 
Even if for me, that doesn't make sense...But the error is gone.
Unfortunatly, there is no record in my datagrid linked to this sqldatasource

In code behind I put that code
  Me.SqlDsLegende.SelectParameters("ID_ECO").DefaultValue = dsLogin.Tables(0).Rows(0).Item("ID_ECO")  
  Me.SqlDSLegende.SelectParameters("INTERV").DefaultValue = dsLogin.Tables(0).Rows(0).Item("NO_INTERV")  
  Me.SqlDSLegende.SelectParameters("GRP").DefaultValue = "01" 

So, does somebody know how to handle many time the same parameter in the same statement??
Thank you very much
Shinu
Top achievements
Rank 2
 answered on 22 May 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?