Telerik Forums
Community Forums Forum
1 answer
253 views
This is my first post so I am sorry ahead of time if this is the wrong forum.....

I am trying to hide the edit button in a radgrid if the field LOCKED is set to 1 but it is not working - any ideas?

Thanks
Julie


private void RadGrid1_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)
{
    if (e.Item is GridDataItem)
    {
        GridDataItem dataItem = e.Item as GridDataItem;
        GridEditManager manager = dataItem.EditManager;
        IGridColumnEditor editor = manager.GetColumnEditor("Locked");
        TextBox box = (editor as GridTextBoxColumnEditor).TextBoxControl;
        if (box.Text == "1")
        {
            dataItem["EditCommandColumn"].Controls[0].Visible = false;
        }
        else
        {
            dataItem["EditCommandColumn"].Controls[0].Visible = true;
        }
    }
}
Andrey
Telerik team
 answered on 18 Aug 2011
1 answer
76 views
Hi Telerik Team,

I got an error like 'Please specify valid webservice and mothod' while executing the code below.
   

 

<form id="form1" runat="server">

 

 

<asp:ScriptManager ID="ScriptManager1" runat="server">

 

 

</asp:ScriptManager>

 

 

<script type="text/javascript" language="javascript">

 

 

function OnClientSelectedIndexChanged(sender, args) {

 

 


var
item = args.get_item();

 

 

var Panel = $find("<%=RadXmlHttpPanel2.ClientID%>");

 

Panel.set_value(item.get_value());

 


var
value = sender.get_value();

 

 

var Panel1 = $find("<%= RadXmlHttpPanel1.ClientID %>");

 

Panel1.set_value(value);//this code has the problem specified above

}

 

 

</script>

 

 

<div>

 

 

<telerik:RadSplitter ID="RadSplitter1" runat="server" Orientation="Vertical" Height="100%"

 

 

Width="100%">

 

 

<telerik:RadPane ID="RadPane1" runat="server">

 

 

<uc1:ucXml1 ID="ucXml1" runat="server" />//radcombobox

 

 

</telerik:RadPane>

 

 

<telerik:RadSplitBar ID="RadSplitBar1" runat="server">

 

 

</telerik:RadSplitBar>

 

 

<telerik:RadPane ID="RadPane2" runat="server">

 

 

<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Height="200px" Width="300px">

 

 

<telerik:RadXmlHttpPanel ID="RadXmlHttpPanel1" runat="server" LoadingPanelID="RadAjaxLoadingPanel1" EnableClientScriptEvaluation="true">

 

 

<uc2:ucXml2 ID="ucXml21" runat="server" />//radcombobox

 

 

</telerik:RadXmlHttpPanel>

 

 

</telerik:RadAjaxPanel>

 

 

</telerik:RadPane>

 

 

<telerik:RadSplitBar ID="RadSplitBar2" runat="server">

 

 

</telerik:RadSplitBar>

 

 

<telerik:RadPane ID="RadPane3" runat="server">

 

 

<telerik:RadAjaxPanel ID="RadAjaxPanel2" runat="server" Height="200px" Width="300px">

 

 

<telerik:RadXmlHttpPanel ID="RadXmlHttpPanel2" runat="server" LoadingPanelID="RadAjaxLoadingPanel1"

 

 

OnServiceRequest="RadXmlHttpPanel2_ServiceRequest">

 

 

<uc3:ucXml3 ID="ucXml31" runat="server" />//label

 

 

</telerik:RadXmlHttpPanel>

 

 

</telerik:RadAjaxPanel>

 

 

</telerik:RadPane>

 

 

</telerik:RadSplitter>

 

 

<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Windows7">

 

 

</telerik:RadAjaxLoadingPanel>

 

 

</div>

 

 

</form>

 


Pero
Telerik team
 answered on 11 Aug 2011
1 answer
101 views
Hi Telerik support,

We have been evaluating your WPF controls on and off over the last year or so with a view to putting together a large app that would use a large number of them. I have to say that as of the last update we are on the verge of throwing in the towel in frustration at incessant changes to interfaces, class depreciations and general usage changes to the controls.
From a quick search in this forum:
May 2007, in answer to exactly the same complaint:
It is a general policy at Telerik to only introduce breaking changes when the
benefits of the new version significantly outweigh the disadvantages of not
having a straightforward upgrade process. Nevertheless, in the rare cases when
breaking changes are introduced we do our best to thoroughly document all
changes and encourage customers to go through the "Changes and backwards
compatibility" articles before upgrading to a new major version

Well, sorry, but as far as I can see you have introduced breaking changes on pretty much every single release.
I had assumed when we first started the trial that the product line was young and thus the interfaces might take a little time to settle down, but the changes show no sign of settling down over a year later (and 4 years after your comment!) and require our code to be rewritten, often in non-trivial ways. 
  1. Solutions to relatively simple problems often rely on overriding templates which then get radically changed
  2. Properties become 'read only' - presumably the thinking is that this softens the blow. It does not.
  3. Properties get renamed (I can live with this one so long as it's just a rename and semantics not changed as well)
  4. Class depreciated. Not much fun if you were overriding these or using the events.
  5. etc.

We all appreciate the need for change, but there are limits and there has to be a balance between functionality and interface stability. I think there has been plenty of time to get much of this right by now, surely?
How does everyone else justify additional code fix/rewrite and QA time to the business every time they need to upgrade the telerik controls to fix a bug or implement a new feature released in the telerik control set? Am I to assume that we cannot upgrade the telerik controls without major rewrites of our code?

You guys have a great product and I hope you take this as constructive criticism but you have more competitors now than ever and I actually want to go on and purchase from you; but we are reviewing competitors again because you are giving us no choice. Given your statement before and what we have seen since I hope you can offer something more concrete than 'general policy' statements.

I would love to hear what telerik and other forum users feel about this.
Hristo
Telerik team
 answered on 10 Aug 2011
1 answer
61 views
Hi,
telerik radchart dynamic filter(on parameter passing) when silverlight button click.
please give me the help.

Thanks in advance...
Yavor
Telerik team
 answered on 01 Aug 2011
1 answer
176 views
Hi,

Somebody help me please.I am stuck with this.
<script type="text/javascript">
        function openPrompt() {
            radprompt("please enter the file name", CallBackFn);
          
        }
        function CallBackFn(arg) {
            document.getElementById("<%=hdnField1.ClientID%>").value = arg;
        }
        
    </script>
I have specified onClientClick="openPrompt()" in the button control.But this directly executes the serverside code.but it should execute server side code only after i enter the file name and click ok.please help.

Thanks.

Marin Bratanov
Telerik team
 answered on 29 Jul 2011
0 answers
85 views

I need a C# WPF programmer who is familiar with Rad controls for WPF to do various user controls. I have more work than I can handle and I am running out of time to complete application. Please help. If you are interested please contact me @ chris@northkeysystems.com .

Will pay top dollar for well qualified motivated individual and if work is good I will keep you busy.

Chris
Top achievements
Rank 1
 asked on 23 Jul 2011
1 answer
53 views
When will the rest of the Q2 2011 videos be posted?
Vladi
Telerik team
 answered on 22 Jul 2011
9 answers
97 views
Hi Telerik Team,
We are using Radajaxmanger in one page and set EnableHistory="true" in scriptmanager and in radajaxmanager.But some times back button is not working.Please give me a solution for it.We are using IE:8

By
Dayana

 

Genti
Telerik team
 answered on 19 Jul 2011
1 answer
60 views
What was the name/e-mail of the speaker of today's (July 18th/2011) webinar "What's new Q2 Overview & Data Tools"?
Vassil Petev
Telerik team
 answered on 19 Jul 2011
2 answers
134 views
Faster items render above the slower items, however they're actually behind the slower items when you try to hit them

...if that makes sense...

Like if I have a dollar coming down (enters the game first), and it's about to fall out of the pane, and a $20 starts to fall really fast and overlaps the $1 on the way down.  If I hit that with a star on the overlap it registers $1, not the visible (closer z-index) $20....and it's almost impossible to throw a second to get both

Just FYI :)
Inga Bemman
Top achievements
Rank 1
 answered on 06 Jul 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?