Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
153 views
Anyone have any suggestions on how to add a dock command server-side. I'm creating the commands on the fly and want to add a "reload" button (there is one on the RadWindow) and then handle that myself. But I can't seem to create a DockCommand.
Telerik.Web.UI.DockCommand.DockCommand(string, string, string, string, bool)' is inaccessible due to its protection level   


Pero
Telerik team
 answered on 12 Feb 2010
3 answers
219 views
This sounds simple enough but for the life of me I can't seem to get this wired correctly. I am creating RadDock's dynamically and I want to add Custom DockCommands to the RadDock that will call one of two server side functions. I can never seem to get the server side function to fire, what am I missing?

Here is an example of how I am creating the RadDock and the subsequent DockCommand.

RadDock rd = new RadDock();
        rd.ID = usage + "_" + "FORM_" + loadedForm.getID() + "_" + ff.getFormFieldID() + "_" + ffs.getFormFieldSettingsID();
        rd.DockMode = DockMode.Docked;
        rd.DefaultCommands = Telerik.Web.UI.Dock.DefaultCommands.None;
        rd.Width = 300;
        rd.Height = 80;

        DockCommand command = new DockCommand();
        command.AutoPostBack = true;
        command.Name = "Command1";

        rd.Commands.Add(command);

However, I never get anything in Command1_Command, Command1_Click etc. What piece is missing to cause the Server Side function to fire when a custom command is clicked on the RadDock?

Thank you,
Derek

Pero
Telerik team
 answered on 12 Feb 2010
1 answer
106 views

Hello,

I'd need a RadTextBox with the following characteristics:

- colour of the border: #ababab,
- height of the component: 22px,
- distance of the base of the text from the bottom: 5px,
- colour of the text: #333333,
- font of the text: verdana,
- size of the text: 11px.

Could you please send me the corresponding code,
(css head + html) valid for:

Internet Explorer,
Firefox,
Opera,
Safari,
Chrome?

Thank you

Alberto Bresesti

Shinu
Top achievements
Rank 2
 answered on 12 Feb 2010
4 answers
191 views
Hi,

I have a page which contains a RadMenu, RadGrid and RadScheduler and is taking a pretty big hit when being loaded - something close to 500 KBytes on first display so am trying RadCompression to improve this.  I have followed the information in the link below:


but have a question about the options in the browsers section.  Are the Hidden field method and session state method exclusive, or could I add both section to the browsers file?  My problem is that using the hidden field method I'm still taking a fairly large hit of 256 K in the javascript on first load in the hidden field.  

If I remove that and use session state, the Javascript obviously still has to be downloaded.  Also doing some testing the session state method does not seem to have much impact at all on the bytes sent to the client.

Finally, because my Clients have a pretty slow intranet they are complaining of crashes and other problems when large pages are loading, and they are using IE6 and I'm not sure whether that benefits from RadCompression or not as googling around seems to indicate that compression does not work on IE6.

What would be the best recommendation in this circumstance, ie:

Very slow Intranet
IE6 as the browser and unwilling or unable to change

Sorry if this post is messy, but I'm getting a lot of pressure to speed up my application, and they do actually like the look of it so I do not want to strip out the Telerik controls.

David Penny
sitefinitysteve
Top achievements
Rank 2
Iron
Iron
Veteran
 answered on 12 Feb 2010
1 answer
122 views

Hello,

I'd need a ComboBox with the following characteristics:

- colour of the border: #ababab,
- height of the component: 22px,
- distance of the base of the text from the bottom: 5px,
- colour of the text (input+items): #333333,
- font of the text (input+items): verdana,
- size of the text (input+items): 11px,
- distance of items: 13px.

Could you please send me the corresponding code,
(css head + html) valid for:

Internet Explorer,
Firefox,
Opera,
Safari,
Chrome?

Thank you

Alberto Bresesti

 

Shinu
Top achievements
Rank 2
 answered on 12 Feb 2010
2 answers
202 views
Hi,

I'm working with the telerik:RadGrid. I need a column working as a GridHyperLinkColumn but with an image.
I try with asp:ImageButton but I don't know how indicate the parameters.

In example :

Using HyperLinkColumn with parameter ORDN40 in the DataNavigateUrlFormatString : 

<

 

telerik:GridHyperLinkColumn DataTextFormatString="Detalle" DataNavigateUrlFields="ORDN40"

 

 

UniqueName="detalleP" DataNavigateUrlFormatString="pedidos_detalle.aspx?p={0}"

 

 

DataTextField="ORDN40" AllowFiltering="False" Groupable="False">

 

 

<HeaderStyle Height="40px" />

 

 

</telerik:GridHyperLinkColumn>

 


Using ImageButton  I don' know how to pass the parameter ORDN40.

<

 

telerik:GridTemplateColumn UniqueName="ExternalLink" AllowFiltering="False" Groupable="False">

 

 

<ItemTemplate>

 

 

<asp:ImageButton ID="ImageButton1" runat="server" PostBackUrl="pedidos_detalle.aspx?p={0}"

 

 

ImageUrl="img/info.jpg" />

 

 

</ItemTemplate>

 

 

<HeaderStyle Height="40px" />

 

 

</telerik:GridTemplateColumn>

 


Thanks A lot!

Alex Jimenez
Top achievements
Rank 1
 answered on 12 Feb 2010
1 answer
98 views
HI,
      I am using  a RadList box .
      When the Item in the list box gets changed by scrolling I want to fill a grid.I can achiev this by clicking the item in the list box.
      But , I want to do it on scrollbar changed event of list box .I jsut  want to fire a javascript on Scrollbar click event of a radlist box.
      Is this possible? Please suggest me a solution for the same.
Thanks.
  
Genady Sergeev
Telerik team
 answered on 12 Feb 2010
1 answer
71 views
Hi
Please!!!!!!!!!!

CAN ANY ONE ANSWER THIS THREAD TO SOLVE MY PROBLEM.

http://www.telerik.com/community/forums/aspnet-ajax/general-discussions/element-not-known-error.aspx

i AM GETTING IT AFTER UPGRADING TO NEWER VERSION. 2009. Q3 1314.35

THANK YOU
Pavlina
Telerik team
 answered on 12 Feb 2010
3 answers
187 views
 
how can i stop the timer. timer is controled within radajaxmanager. but timer1.enabled = false is not working.
i controlled RadAjaxManager1 instead of Timer1 in AjaxControlID . but page gets refreshed...
what i do.. plz help me...



<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest">
        <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="Timer1">
        <UpdatedControls >
        <telerik:AjaxUpdatedControl ControlID="HiddenField1"/>
        </UpdatedControls>
        </telerik:AjaxSetting>
        </AjaxSettings>
        </telerik:RadAjaxManager>
        <asp:HiddenField ID="HiddenField1" runat="server" />
        <asp:HiddenField ID="HiddenField2" runat="server" />
        <br />
        <asp:Timer ID="Timer1" runat="server" Interval="3000" OnTick="Timer1_Tick">
        </asp:Timer>
 <telerik:RadScriptBlock runat="server" ID="sctblk">
        <script type="text/javascript">
 function checkval() {
 
  if (document.getElementById("HiddenField1").value == "ajax") {
        var result = confirm("Are you sure accept the users?");
        if (result) {
        var ajaxManager = $find("<%=RadAjaxManager1.ClientID %>");
        ajaxManager.ajaxRequest('yes');
            return ;
            
        }
        else {
            var ajaxManager = $find('<%= RadAjaxManager1.ClientID %>');
             ajaxManager.ajaxRequest('no');
            return;
        }
        }
    }
</script>


 function checkval() {
 alert("check");
  if (document.getElementById("HiddenField1").value == "ajax") {
        var result = confirm("Are you sure accept the users?");
        if (result) {
       // alert("if");
       //var ajaxManager="<%=RadAjaxManager1.ClientID %>";
          var ajaxManager = $find("<%=RadAjaxManager1.ClientID %>");

          //  alert(ajaxManager);
            //document.getElementById("HiddenField2").value="if";
            document.getElementById("HiddenField1").value ="kkk";
            ajaxManager.ajaxRequest('yes');
            return ;
            
        }
        else {
     //   alert("else");
        
            var ajaxManager = $find('<%= RadAjaxManager1.ClientID %>');
           // alert(ajaxManager);
          //  document.getElementById("HiddenField2").value="else";
                      document.getElementById("HiddenField1").value ="kkk";

            ajaxManager.ajaxRequest('no');
            return;
        }
        }
    }
</script>

protected void Timer1_Tick(object sender, EventArgs e)
    {
        
        HiddenField1.Value = "ajax";
        string loadscript2 = "function f(){checkval()} Sys.Application.add_load(f);";
        ScriptManager.RegisterStartupScript(this, this.GetType(), "loadscript2", loadscript2, true);
}
protected void RadAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e)
    {
        Timer1.Enabled = false;
        if (e.Argument == "yes")
        {          
          MessageBox.Show("yes");
          }
 else
        {
            MessageBox.Show("no");
          
        }





Iana Tsolova
Telerik team
 answered on 12 Feb 2010
5 answers
641 views
Hello Telerik-Team,

I have to hide some controls in the edit mode but show them in the insert mode:
<telerik:GridTemplateColumn DataField="Kennwort" EditFormHeaderTextFormat="Kennwort*:" HeaderText="" HeaderStyle-Width="0"   
    Visible="false" UniqueName="Kennwort">  
    <EditItemTemplate> 
        <asp:TextBox runat="server" ID="tbKennwort" Width="300" MaxLength="30" Text='<%# Bind("Kennwort") %>'></asp:TextBox> 
        <span style="color: Red">  
        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" ControlToValidate="tbKennwort" ErrorMessage="*" runat="server">  
        </asp:RequiredFieldValidator> 
        </span> 
    </EditItemTemplate> 
 </telerik:GridTemplateColumn>   
 
<telerik:GridTemplateColumn DataField="Kennwort" EditFormHeaderTextFormat="Kennwort-Wiederholung*:" HeaderText="" HeaderStyle-Width="0"   
    Visible="false" UniqueName="Kennwort2">  
    <EditItemTemplate> 
        <asp:TextBox runat="server" ID="tbKennwort2" Width="300" MaxLength="30" ></asp:TextBox> 
        <span style="color: Red">  
        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" ControlToValidate="tbKennwort2" ErrorMessage="*" runat="server">  
        </asp:RequiredFieldValidator> 
        </span> 
    </EditItemTemplate> 
 </telerik:GridTemplateColumn>      

How can I manage this?

I hav tried it with:
        protected void RadGrid1_ItemCreated(object sender, Telerik.Web.UI.GridItemEventArgs e)  
        {  
            if (e.Item.IsInEditMode == true)  
            {  
                GridEditableItem editItem = e.Item as GridEditableItem;  
 
 
                TextBox tbKennwort = editItem["Kennwort"].FindControl("tbKennwort"as TextBox;  
                tbKennwort.Visible = false;  
 
                TextBox tbKennwort2 = editItem["Kennwort2"].FindControl("tbKennwort2"as TextBox;  
                tbKennwort2.Visible = false;  
 
            }  
        } 

but then the 2 controls are hidden in the edit und in the insert mode.

Can anybody help?

Regards Christian





Christian
Top achievements
Rank 1
 answered on 12 Feb 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
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
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?