Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
219 views
I have an interesting scenario here that I could use some assistance with.

I have a RadGrid that is bound to the values from one database. One of the columns is an Employee ID. I actually display the Employee Name in the column, but I have to do a lookup to a completely different database to get the Employee Name. This works fine...I just do it in the ItemDataBound event using the Employee ID as DataKeyValue.

My problem comes when I turn this column into a filterable column. The dropdown used for filtering brings back the Employee ID and Employee Name from the outside database and the filtering process works fine. What happens after the column is filtered though is that the filter dropdown displays the Employee ID instead of the Employee Name. This is because the RadComboBox has its Text property set to <%# (Container as GridItem).OwnerTableView.GetColumn("ReqEmpID").CurrentFilterValue %> which of course is the Employee ID that I just filtered on.

What I need to do is after the grid is filtered, I need the dropdown to display the filter text, not the value. Or I need a way to put the Employee Name in that text property after the grid is filtered.

Can you maybe point me in the right direction on how to do that? Thanks!
Philip Senechal
Top achievements
Rank 1
 answered on 23 Jul 2010
4 answers
71 views
I have problems to get RadChart work in asp.net mvc projects. Errors show ChartImage.axd not found. Does any of you know how to resolve this problem? My asp.net ajax RadControl version is 2009.1.402.35. The mvc version is asp.net mvc2.
Jenny
Top achievements
Rank 1
 answered on 23 Jul 2010
4 answers
169 views
I have a radSplitter setup that has an orientation set to Vertical. It takes up 100% of the width and height of the page. Inside is a pane set to the following:

<telerik:RadPane ID="paneAlphaTabs" runat="server" Width="90px" Scrolling="Y"
            <telerik:RadTabStrip ID="tabAlpha" runat="server" DataTextField="letter" DataValueField="letter" 
                Orientation="VerticalLeft" CausesValidation="False" ClickSelectedTab="True" 
                Height="100%" Width="40px" AutoPostBack="True" Skin="Vista"
            </telerik:RadTabStrip>&nbsp; 
</telerik:RadPane> 

The TabStrip simply shows the letters A to Z. When the browser window height is smaller than the TabStrip, I am not seeing a vertical scrollbar in the paneAlphaTabs. I do see the scrollbar in other panes with the same setting.

Anyone have any idea how to get the scrollbars to show in this case?

Thanks!
Tangium
Top achievements
Rank 1
 answered on 23 Jul 2010
3 answers
174 views
Hello,

I have a RadComboBox using EnableLoadOnDemand="true" and I do not want the user to be able to type custom text into this combo box. Looking around I came across this article. These changes work, however when the user clicks a button I need to retrieve the SelectedValue in the combo box. It appears that it does not know an item was selected as the SelectedValue property never changes. Is there a way to handle this?

I could change this to allow the user to type custom text into the combo box, however according to this article the "In load-on-demand scenario the user will be able to type anything into the input area and if no item matches - the input area will be reset to blank." statement does not see to be true because whatever they type in is staying in the box and not being cleared out if the the item is not in the list.

I can go either way, except neither seem to be fully working for me.

Thanks!
Simon
Telerik team
 answered on 23 Jul 2010
3 answers
147 views
Hi support,

Having an issue with the ASP.NET AJAX RadGrid pager style that is hopefully and simple fix.  Have a pager on a grid set to alwaysvisible=true.  When there is more then one page the style is correct set (notice in source class="rgPager Pager").  However, when there is only one page, the pager style is different and hard to read (using the Vista skin).  The source class for the pager is class="Pager".  Is there an easy solution to this issue.  

BTW, just download the ASP.NET 2010 Quarter 2 and that did not fix the problem.  

Thanks

-Wayne
Michael Murman
Top achievements
Rank 1
 answered on 23 Jul 2010
3 answers
189 views

 Hi Everybody!

 I want to set focus to the first GridBoundColumn while a Inserting/Editing process. Searching for a while, I found this Topic, and It helped me a lot. In that topic there are 2 options to achieve what I want. The second option ddn't work in my case, and I suspect that is due to my RadGrid is inside a RadAjaxPanel. But I guess I can solve that if I use the RadScriptManager's method "SetFocus()".

Thus far, I have been using the Topic's first option without a problem, until I tried to do the same thing with the "PopUp" EditMode property value, and I'm getting the following JS message error:

Message: Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus.
Line: 50781009
Char: 1
Code: 0

So, I'm wondering if it's possible to do the same thing illustrated on the Topic, but in the PopUp version of the Edit Mode?


Thanks!
Carlos Contreras
Top achievements
Rank 1
 answered on 23 Jul 2010
2 answers
328 views
I recently downloaded an internal build (00688Telerik.Web.UI_2010_2_722_Dev_hotfix). It has /Skins and /Script folders just like ASP.NET controls. Do I need to add these to my project in order to run Telerik.Web.UI.dll properly, or can I simply replace the DLL in my project?

Thanks in advance.
David
Top achievements
Rank 2
 answered on 23 Jul 2010
1 answer
126 views
Hi,

Is it possible to arrange the inner nodes in two columns rather than default one column? For example,

Rather than following default look, 

Node1
        InnerNode1
InnerNode2
InnerNode3
Node2 
       InnerNode1
       InnerNode2
       InnerNode3
       InnerNode4

Is it possible to have it re-arranged so that child nodes will be repeated horizontally into 2 coulmns as we can do in CheckboxList?

Node1
       InnerNode1  Inner Node2 
       InnerNode3
Node2
      InnerNode1  InnerNode2
      InnerNode3  InnerNode4


Any help is highly appreciated.

Many thanks.

M G
Nikolay Tsenkov
Telerik team
 answered on 23 Jul 2010
3 answers
173 views
Hi,

Can anybody explain how can we restore the expressions from database to radfilter control.
i can restore the expressions in radgrid.but how can we restore in radfilter control

Thanks

Vikas
Anne
Top achievements
Rank 1
 answered on 23 Jul 2010
1 answer
370 views
Hi All,
    Is it possible to change the value of custom attribute on the client side then access it on the server side?
Because I'm trying to change some value of custom attribute on the client side and try to get it during post back, but the value that I get is still the initial value when i created the attribute.

below is my sample code
client script

<script type="text/javascript">
   var activenode = null;
   function $(id){return document.getElementById(id);}
   function AppySetting(){
      if (activenode!=null){
          activenode.setAttribute('AllowAdd'   ,(($('AllowAdd'   ).checked)? 'True':'False'));
          activenode.setAttribute('AllowEdit'  ,(($('AllowEdit'  ).checked)? 'True':'False'));
          activenode.setAttribute('AllowDelete',(($('AllowDelete').checked)? 'True':'False'));
      }
   }
   function OnClientNodeClicked(sender, args)
   {  
        activenode = args.get_node().get_attributes();
        $('AllowAdd'   ).checked = activenode.getAttribute('AllowAdd'   )=='True';
        $('AllowEdit'  ).checked = activenode.getAttribute('AllowEdit'  )=='True';
        $('AllowDelete').checked = activenode.getAttribute('AllowDelete')=='True';
   }
 </script>

server code :
aspx page
<telerik:RadTreeView id="RadTreeViewBackOffice" runat="server" CheckBoxes="True" TriStateCheckBoxes="true" CheckChildNodes="true" OnNodeDataBound="OnNodeDataBound"  OnClientNodeClicked="OnClientNodeClicked" OnClientNodeChecking="OnClientNodeClicked" />

code behind :

 

protected

 

void OnNodeDataBound(object sender, RadTreeNodeEventArgs e ){

           e.Node.Attributes.Add("AllowAdd" ,"True");         

           e.Node.Attributes.Add("AllowEdit" ,"True");

           e.Node.Attributes.Add("AllowDelete" ,"True");

protected void OnClick(object sender, EventArgs e )

 {
  foreach(RadTreeNode Node in RadTreeViewBackOffice.CheckedNodes){
         Response.Write(Node.Attributes["AllowAdd"]);
  }

}
when I call the method Onclick the value of the Attribute is still the same ("True")  even i set "False" in the client side.
regards
Nikolay Tsenkov
Telerik team
 answered on 23 Jul 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?