Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
185 views
I am having the hardest time trying to get the value of a rad treenode when i'm using the radcontextmenu.  When I right click the item, I'm using the OnClientContextMenuShowing event to be able to capture this information in javascript.  How can I get the value of the treenode that the context menu is associated with.  Also, if I view source on the page with the rad treeview, I can't see the value stored anywhere in the html like I would if I set the value of a ASP.Net treeview control.  Any help would be appreciated as this should be a relatively easy and common scenario.  I don't want to use server side options just to be clear.  Thanks in advance for your help.
Princy
Top achievements
Rank 2
 answered on 19 Aug 2009
1 answer
205 views
Hello,

I have created a custom skin.  It was derived from a classic version skin, changed to match Ajax version taxonomy.  Unfortunately, the default skin (RadPanelBar.css) still overrides many of my settings.  I know my custom skin is working because the results show my images and some of my settings that are not contained within the default Css.  How do I stop the CssClass reference from being added, or how do I add an empty default Css?

Here is my page registration:

 <link href="/_skins/RadPanelBar/SoEasy/PanelBar.SoEasy.css" rel="stylesheet" type="text/css" runat="server" />

(The structure is as indicated within the documentation whereby there is also a PanelBar directory within .../SoEasy that contains my images.)

Here is my control callout:

     <telerik:radpanelbar runat="server" ID="RadPanelbar1" ExpandMode="MultipleExpandedItems" ExpandDelay="3000" CollapseDelay="3000" EnableEmbeddedSkins="false" Skin="SoEasy" DataSourceId="QuickLaunchSiteMap" OnClientLoad="panelLoad" OnClientItemClicking="OnClientItemClickingHandler" OnClientMouseOver="OnClientMouseOverPanHandler" OnPreRender="RadControl_PreRender" PersistStateInCookie="false" ToolTip="">
     
      <ExpandAnimation Type="Linear" Duration="300" />
      <CollapseAnimation Type="Linear" Duration="100" />     
     </telerik:radpanelbar></div>

Here is the resulting output showing the default RadPanelBar having precedence over my custom skin:

<div class="RadPanelBar RadPanelBar_SoEasy nothing" id="ctl00_PlaceHolderLeftNavBar_RadPanelbar1">
  <ul class="rpRootGroup">
   <li class="rpItem rpFirst rpLast"><a class="rpLink rpExpandable rpExpanded" href="/sites/master/site%20pages/go_nowhere.aspx"><span class="rpOut"><span class="rpText">Community Access</span></span></a><div class="rpSlide" style="height: auto; display: block;">
    <ul class="rpGroup rpLevel1" style="overflow: auto; display: block; width: 100%;">
     <li class="rpItem rpFirst rpLast"><a class="rpLink rpExpandable" href="/sites/master/community/default.aspx"><span class="rpOut"><span class="rpText">Enter Private Site</span></span></a><div class="rpSlide">
      <ul class="rpGroup rpLevel2">
       <li class="rpItem rpFirst"><a class="rpLink" href=" class="rpOut"><span class="rpText">Recover Password</span></span></a></li><li class="rpItem rpLast"><a class="rpLink" href=" class="rpOut"><span class="rpText">Create Account</span></span></a></li>
      </ul>
     </div></li>
    </ul>
   </div></li>
  </ul><input type="hidden" name="ctl00_PlaceHolderLeftNavBar_RadPanelbar1_ClientState" id="ctl00_PlaceHolderLeftNavBar_RadPanelbar1_ClientState" autocomplete="off" value='{"expandedItems":["0"],"logEntries":[],"selectedItems":[]}'/>
 </div>

Your help would be appreciated.

Thank you,

Doug
Alex Gyoshev
Telerik team
 answered on 19 Aug 2009
1 answer
631 views
I am having a problem with the onkeyup event when using a RadTextBox.  Its seems to fire ok, however the changes to the text field are not reflected before the event fires.  So when it fires, any text entered that causes the event is not being seen in my javascrip fuction.  Has anyone seen this before?  If so, how do i rectify it?

Thanks in advance.
Michael
Shinu
Top achievements
Rank 2
 answered on 19 Aug 2009
4 answers
141 views
Hello,

I am attempting to evaluate the Telerik suite for purchase.  I am currently going through the RadControl for ASP.net ajax courseware .pdf. (794 Pages).   I am trying to get client side databinding to work for the grid.  I am using the tutorial on page 501 titled client side databinding.

I went through the tutorial and I also simply ran the packaged code of the very same tutorial and I am getting the same error in both my application and the example that was distributed with the tutorial.

I am getting the following error:  'Null" is null or not an object.

This error happens when the following line of code is called from within the javascript function updateGrid(result)

error happens here ---> tableView.set_dataSource(result);

when I break into the c# code, my customer objects are getting populated and when I check what "result" is in the javascript updateGrid() function just before calling the set_dataSource(result) line it shows a populated object.  Not sure why the above line of code keeps bombing. 

Can someone who has worked with these tools please verify to me that the sample project works for this tutorial. Any suggestions?

I am currently evaluating version 2008.3..1125.35 and using VS 3.5 SP 1
elmosi
Top achievements
Rank 2
 answered on 19 Aug 2009
1 answer
202 views
Hi:
 In this sample Radcombox with checkboxes

How can I select the first option in the codebehind, so Its text can appear in the textbox and its correspondent checkbox is checked.

Thanks in advance.
Princy
Top achievements
Rank 2
 answered on 19 Aug 2009
1 answer
103 views
I keep getting an error when trying to view the design of a radpanelbar on a form. The control is fine when typing the code and during run time, but cannot be viewed in the Design mode.

The error that is displayed:
"Error Creating Control - telerik:radpanelbar"
Failed to create designer 'Telerik.Web.UI.RadPanelBar, Telerik.Web.UI, Version=2009.2.701.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4'

I am using Visual Studios 2008 Version 3.5 SP1 and RadControl for ASP.NET AJAX Q2 2009.

Any help would be greatly appreciated.


Shinu
Top achievements
Rank 2
 answered on 19 Aug 2009
9 answers
271 views
Hi,

In my current project, I have to implement a grid which looks like http://www.gouw.ws/SmartGrid.pdf where the user has to enter the min and max values for each month of the next 8 quarters.

On the grid:
- each row represent 24 columns (the min and max for each month of type integer)
- the shaded areas are read only
- the user can only enter values on the non shaded areas

Can you please show me :
- how to display multi level grid header text as shown on the grid
- how to dynamically display the correct number of rows on the grid depending on today's date
- how to dynamically set the appropriate cells on the grid to read only depending on today's date
- any samples which are relevant to the grid above?

Thank you for your help.

Kind regards,
Herman Gouw
Skype: hermangouw
Herman Gouw
Top achievements
Rank 2
 answered on 19 Aug 2009
3 answers
273 views
Hello,

I have a radgrid i want to filter with a custom template, i'm using a linq datasource but i get the following error: "Expression expected".
The property "EnableLinqExpressions" is false.
Here is my code:


aspx:
<telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="LinqDataSource1"   
            AutoGenerateColumns="False" AllowAutomaticUpdates="True"   
            AutoGenerateEditColumn="True" GridLines="None" Skin="Forest" 
            AllowFilteringByColumn="True"  EnableLinqExpressions="False">  
            <MasterTableView cellspacing="-1"   
                        datasourceid="LinqDataSource1" datakeynames="Ge_ID" EditMode="PopUp">  
            <RowIndicatorColumn> 
            <HeaderStyle Width="20px"></HeaderStyle> 
            </RowIndicatorColumn> 
 
            <ExpandCollapseColumn> 
            <HeaderStyle Width="20px"></HeaderStyle> 
            </ExpandCollapseColumn> 
                <Columns> 
                    <telerik:GridBoundColumn DataField="GeEmail" HeaderText="GeEmail"   
                        SortExpression="GeEmail" UniqueName="GeEmail"   
                        CurrentFilterFunction="Contains" ShowFilterIcon="false"   
                        FilterListOptions="VaryByDataTypeAllowCustom">  
                        <FilterTemplate> 
                            <asp:TextBox runat="server" ID="FiltEmail"></asp:TextBox> 
                            <asp:Button runat="server" ID="BtnFilEmail" Text="Filter"  CommandArgument="Email" CommandName="Filter2" /> 
                        </FilterTemplate> 
                    </telerik:GridBoundColumn> 

 

 


Hier is CodeBehind(VB):

 

 Protected Sub RadGrid1_ItemCommand(ByVal source As Object, ByVal e As GridCommandEventArgs) Handles RadGrid1.ItemCommand  
        If e.CommandName = "Filter2" Then 
 
            Dim sField As String = e.CommandArgument.ToString  
 
            Select Case sField  
                Case "Email" 
                    Dim txt As TextBox = e.Item.FindControl("FiltEmail")  
                    Dim sVal As String = txt.Text.ToString  
 
                    RadGrid1.MasterTableView.FilterExpression = "([GeEmail] Like %'" & sVal & "'%)" 
 
                      
                    RadGrid1.Rebind()  
 
                    ' RadGrid1.MasterTableView.Rebind()  
 
                    Exit Select 
                Case Else 
                    Exit Select 
            End Select 
        End If 
    End Sub 
 


I even wan't to filter more colums.
I hope someone could help me.

 

 

 

 

 

 

Vlad
Telerik team
 answered on 19 Aug 2009
1 answer
89 views
is there any posible to change that message which appears when we click and resize column? e.g. 'Width: 200 pixels'. i have to set polish language
Princy
Top achievements
Rank 2
 answered on 19 Aug 2009
4 answers
343 views
I am trying to do a simple example like the online wizard, but with a datagrid
the problem is that the datagrid_needdatasource is not firing at the right time
it only fires if i go to the 3rd tab (grid is on the second tab),

here is the code i am using, simple example.

<

 

telerik:RadTabStrip ID="tsRes" runat="server" SelectedIndex="0" AutoPostBack="true"

 

 

MultiPageID="mpRes">

 

 

<Tabs>

 

 

<telerik:RadTab Text="Step 1" Value="1">

 

 

</telerik:RadTab>

 

 

<telerik:RadTab Text="Step 2" Value="2" Enabled="false">

 

 

</telerik:RadTab>

 

 

<telerik:RadTab Text="Step 3" Value="3" Enabled="false">

 

 

</telerik:RadTab>

 

 

<telerik:RadTab Text="Step 4" Value="4" Enabled="false">

 

 

</telerik:RadTab>

 

 

</Tabs>

 

 

</telerik:RadTabStrip>

 

 

<telerik:RadMultiPage runat="server" ID="mpRes" RenderSelectedPageOnly="true" SelectedIndex="0">

 

 

<telerik:RadPageView ID="pvStep1" runat="server">

 

Step 1

 

</telerik:RadPageView>

 

 

<telerik:RadPageView ID="pvStep2" runat="server">

 

 

<telerik:RadGrid ID="dgCustomers" runat="server" AutoGenerateColumns="false" OnNeedDataSource="dgCustomers_NeedDataSource">

 

 

<MasterTableView>

 

 

<Columns>

 

 

<telerik:GridTemplateColumn>

 

 

<ItemTemplate>

 

<%

#Eval("Text") %>

 

 

</ItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

 

</Columns>

 

 

</MasterTableView>

 

 

</telerik:RadGrid>

 

 

</telerik:RadPageView>

 

 

<telerik:RadPageView ID="pvStep3" runat="server">

 

Step 3

 

</telerik:RadPageView>

 

 

<telerik:RadPageView ID="pvStep4" runat="server">

 

Step 4

 

</telerik:RadPageView>

 

 

</telerik:RadMultiPage>

 

 

<asp:Button ID="btnNext" runat="server" Text="Next" OnClick="btnNext_Click" /></telerik:RadAjaxPanel>

 

{

 

if (Page.IsValid)

 

{

 

RadTab selected = tsRes.SelectedTab;

 

 

int val = Convert.ToInt32(selected.Value);

 

 

//change the caption

 

 

 

 

 

if (val + 1 == tsRes.Tabs.Count)

 

{

btnNext.Text =

"Finish";

 

}

 

if (val < tsRes.Tabs.Count)

 

{

 

//get the next tab

 

 

 

 

 

RadTab nextTab = tsRes.FindTabByValue((val + 1).ToString());

 

nextTab.Enabled = nextTab.Selected =

true;

 

mpRes.SelectedIndex = nextTab.Index;

}

 

else

 

 

 

 

{

 

int save = 0;

 

}

}

}

 

protected void dgCustomers_NeedDataSource(object source, GridNeedDataSourceEventArgs e)

 

{

 

dgCustomers.DataSource = GetCustomers();

}

 

private ListItemCollection GetCustomers()

 

{

 

ListItemCollection custs = new ListItemCollection();

 

 

for(int i =1;i<10;i++)

 

{

 

ListItem li = new ListItem("Customer " + i.ToString());

 

custs.Add(li);

}

 

return custs;

 

}

Louis
Top achievements
Rank 1
 answered on 19 Aug 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?