Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
141 views

 

Hi,
I just installed trial version of the ASP.NET AJAX controls and after running Toolbox Configurator still unable to see controls in the toolbox.
(Windows 7 ultimate, Visual Studio 10 professional)
Any advice will be greatly appreciated.


Eugene.

Sebastian
Telerik team
 answered on 16 Feb 2011
4 answers
384 views
Hi Telerik,

My scenario: (All of these controls are dynamically created/restored) I have a RadSplitter w/ 2 RadPanes and a RadSplitBar. Each RadPane has a RadDockZone. Each RadDockZone has a RadDock on it. Each RadDock has a control on it. 

I capture the pane's OnClientResized event and pass back to the server the new height/width of the panes affected so that I may restore their state properly on the next page reinit.

On page reinit I restore all the Rad controls. On page load I restore the controls located on the RadDocks and then I change the controls height/width to reflect the changes made to the RadPane's height/width. 

I do not see these changes immediately. I have to refresh the entire page before I see the changes made. This seems slightly odd to me as I hadn't had any issues seeing the RadDock's control's resizing when I initially drop them onto the page. 

I tried creating conditionally-updating UpdatePanels for each of the RadDocks, adding the UpdatePanel to the RadDock, and then adding the control to the UpdatePanel. I'm not sure where I would call Update, though. I tried calling update in Page_LoadComplete, but was given an error stating that the control could not be found -- curious, because Page.FindControl was able to track it down.

I tried wrapping all the Rad controls in a static UpdatePanel w/ UpdateMode = Always, but it seems to be conflicting heavily with RadAjaxManager. 

I am at a complete loss. I feel extremely close to having this all working, but at the same time maybe the problem is extremely deep-seated. I can provide any/all code necessary, but perhaps a formal ticket might be in order.

Regardless, if Telerik has any idea why I wouldn't be seeing these changes reflected I would be really interested in knowing. I am not convinced I even need an update panel -- the page reinitalizes whenever I care about seeing the changed graph (OnClientResized is firing and thus causing the page to reinit after). 

Thanks!
Maria Ilieva
Telerik team
 answered on 16 Feb 2011
1 answer
57 views
I have RadGrid inside RadAjaxPanel. I have MyUserControl with RadToolTipManager inside.
MyUserControl inside Grid ItemTemplate.
Sometimes after refresh RadGrid (using Refresh button) I don't have any resporse. Only loading panel is working and working...
Can you help?
Iana Tsolova
Telerik team
 answered on 16 Feb 2011
4 answers
209 views
Hi,

      I am using a RadGrid control (Rad Controls for ASP.NET AJAX Q3 2009 NET20) to display data. I am not sure why my  control is not displaying data at all when I navigate from my first page. Below is the sample I am working with. Please help me understand what I am missing and how to rectify.

Thanks in advance.

Regards,
Krishna Chaduvula.

WEB.CONFIG (HTTP Handler)
<add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" validate="false" />

ASPX Page:

<%

@ Page Language="VB" AutoEventWireup="false" CodeFile="testRadGrid.aspx.vb" Inherits="testRadGrid" %>

 

 

<%

@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

 

<!

 

DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

 

 

<

 

html xmlns="http://www.w3.org/1999/xhtml">

 

 

<

 

head runat="server">

 

 

<title></title>

 

 

</

 

head>

 

 

<

 

body>

 

 

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

 

 

<div>

 

 

 

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

 

 

</asp:ScriptManager>

 

 

 

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">

 

 

<AjaxSettings>

 

 

<telerik:AjaxSetting AjaxControlID="grdPayStatements">

 

 

<UpdatedControls>

 

 

<telerik:AjaxUpdatedControl ControlID="grdPayStatements" />

 

 

</UpdatedControls>

 

 

</telerik:AjaxSetting>

 

 

 

</AjaxSettings>

 

 

</telerik:RadAjaxManager>

 

 

<telerik:RadGrid runat="server" ID="grdPayStatements" AllowPaging="True"

 

 

 

AutoGenerateColumns="False" GridLines="None" GroupingEnabled="False"

 

 

 

HorizontalAlign="Center" >

 

 

<MasterTableView>

 

 

<RowIndicatorColumn>

 

 

<HeaderStyle Width="20px"></HeaderStyle>

 

 

</RowIndicatorColumn>

 

 

<ExpandCollapseColumn>

 

 

<HeaderStyle Width="20px"></HeaderStyle>

 

 

</ExpandCollapseColumn>

 

 

<Columns>

 

 

<telerik:GridHyperLinkColumn AllowFiltering="False"

 

 

 

DataNavigateUrlFields="SEQNR" DataNavigateUrlFormatString="test.aspx?id={0}"

 

 

 

DataTextField="PayDate" HeaderText="Pay Date" UniqueName="column1">

 

 

</telerik:GridHyperLinkColumn>

 

 

<telerik:GridBoundColumn AllowFiltering="False" AllowSorting="False"

 

 

 

DataField="TotalGross" DefaultInsertValue="" HeaderText="Total Gross"

 

 

 

UniqueName="column2">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn AllowFiltering="False" AllowSorting="False"

 

 

 

DataField="NetPay" DefaultInsertValue="" HeaderText="Net Pay"

 

 

 

UniqueName="column3">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn AllowFiltering="False" AllowSorting="False"

 

 

 

DataField="SEQNR" DefaultInsertValue="" HeaderText="SEQNR" UniqueName="column"

 

 

 

Visible="False">

 

 

</telerik:GridBoundColumn>

 

 

</Columns>

 

 

</MasterTableView>

 

 

</telerik:RadGrid>

 

 

</div>

 

 

</form>

 

 

</

 

body>

 

 

</

 

html>


CODE BEHIND

 

 

 

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

 

 

 

 

If Not Page.IsPostBack Then

 

 

 

 

 

 

 

LoadData()

 

 

 

End If

 

 

 

 

 

 

 

 

 

End Sub

 

 

 

 

 

 

 

 

 

Private Sub LoadData()

 

 

 

 

Dim dt As DataTable = New DataTable()

 

 

dt.Columns.Add(

 

"SEQNR")

 

 

dt.Columns.Add(

 

"PayDate")

 

 

dt.Columns.Add(

 

"TotalGross")

 

 

dt.Columns.Add(

 

"NetPay")

 

 

 

 

Dim t As Double = 0

 

 

 

 

For i As Integer = 0 To 29

 

 

 

 

Dim dr As DataRow = dt.NewRow()

 

 

dr(

 

"PayDate") = DateTime.Today().AddDays(i)

 

 

dr(

 

"NetPay") = 2000

 

 

t += 2000

 

dr(

 

"TotalGross") = t

 

 

dr(

 

"SEQNR") = i + 1

 

 

dt.Rows.Add(dr)

 

 

 

Next

 

 

 

 

 

 

 

grdPayStatements.DataSource = dt

 

grdPayStatements.DataBind()

 

 

 

End Sub

 

 

Pavlina
Telerik team
 answered on 16 Feb 2011
1 answer
116 views
Hopefully this is an easy one.

I have two related grids on a form and I am using a Master/Detail setup as described in one of the demos and this works great.

Here is my ASPX Code

<telerik:RadGrid ID="rgd_UserJobRoles" runat="server" DataSourceID="sds_UserJobRoles" 
    GridLines="None" Width="245px">
    <clientsettings allowkeyboardnavigation="true" enablepostbackonrowclick="true">
            <Selecting AllowRowSelect="true" />
    </clientsettings>
    <MasterTableView DataKeyNames="DbRole" AutoGenerateColumns="False" DataSourceID="sds_UserJobRoles">
        <RowIndicatorColumn>
        <HeaderStyle Width="20px"></HeaderStyle>
        </RowIndicatorColumn>
        <ExpandCollapseColumn>
        <HeaderStyle Width="20px"></HeaderStyle>
        </ExpandCollapseColumn>
            <Columns>
                <telerik:GridBoundColumn DataField="DbRole" HeaderText="Job Roles" 
                    SortExpression="DbRole" UniqueName="DbRole">
                </telerik:GridBoundColumn>
            </Columns>
    </MasterTableView>
</telerik:RadGrid>
  
  
<telerik:RadGrid ID="rgd_UserTaskRoles" runat="server" DataSourceID="sds_UserTaskRoles" 
    GridLines="None" Width="245px">
    <MasterTableView AutoGenerateColumns="False" DataSourceID="sds_UserTaskRoles">
    <RowIndicatorColumn>
    <HeaderStyle Width="20px"></HeaderStyle>
    </RowIndicatorColumn>
    <ExpandCollapseColumn>
    <HeaderStyle Width="20px"></HeaderStyle>
    </ExpandCollapseColumn>
        <Columns>
            <telerik:GridBoundColumn DataField="UserName" HeaderText="UserName" 
                SortExpression="UserName" UniqueName="UserName" Visible="False">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="RoleName" HeaderText="Task Roles" 
                SortExpression="RoleName" UniqueName="RoleName" HeaderStyle-HorizontalAlign="Center">
            </telerik:GridBoundColumn>
        </Columns>
    </MasterTableView>
</telerik:RadGrid>
  
  
<asp:SqlDataSource ID="sds_UserJobRoles" runat="server" 
ConnectionString="<%$ ConnectionStrings:AeriesAdmin_ConnectionString %>" 
SelectCommand="SELECT [MemberName], [DbName], [DbRole] FROM [Aeries_RoleMembers] WHERE (([DbName] = @DbName) AND ([MemberName] = @UserName)) AND [DbRole] LIKE '%jr_%'">
<SelectParameters>
    <asp:ControlParameter ControlID="rcb_Database" Name="DbName" PropertyName="SelectedValue" Type="String" />
    <asp:ControlParameter ControlID="rcb_Users" Name="UserName" PropertyName="SelectedValue" Type="String" />
</SelectParameters>
</asp:SqlDataSource>
  
  
<asp:SqlDataSource ID="sds_UserTaskRoles" runat="server" 
    ConnectionString="<%$ ConnectionStrings:AeriesAdmin_ConnectionString %>" 
    SelectCommand="SELECT DISTINCT [UserName], [RoleName] FROM [vw_AA_Users] WHERE ([UserName] = @DbRole)">
    <SelectParameters>
        <asp:ControlParameter ControlID="rgd_UserJobRoles" Name="DbRole" PropertyName="SelectedValue" Type="String" />
    </SelectParameters>
</asp:SqlDataSource>
  
  
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    <ajaxsettings>
        <telerik:AjaxSetting AjaxControlID="rgd_UserJobRoles">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="rgd_UserJobRoles" />
                <telerik:AjaxUpdatedControl ControlID="rgd_UserTaskRoles" />
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="rgd_UserTaskRoles">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="rgd_UserTaskRoles" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </ajaxsettings>
</telerik:RadAjaxManager>

And here is my VB code

Protected Sub Page_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.PreRender
    If rgd_UserJobRoles.SelectedIndexes.Count = 0 AndAlso rgd_UserTaskRoles.SelectedIndexes.Count = 0 Then
        rgd_UserJobRoles.SelectedIndexes.Add(0)
        rgd_UserTaskRoles.SelectedIndexes.Add(0)
    End If
End Sub

Rather than have the user select a row from the master grid, what I would like to accomplish is to not require the user to select anything in the master grid. I would prefer that when the master grid has data in it, the details grid automatically displays the related data.

Example Data

User Job Role - OfficeAssistant    has the related TaskRolls - BasicUsage, StudentView, and ViewAllTables
User Job Role - AttendanceClerk  has the related TaskRolls - AbsenceLetters, CurrentClasses, Contacts, Disipline

When a user selects a UserName from a Dropdown list, the master grid would populate with the user's Job Roles and the related grid would automatically populate with the Task Roles for both Job Roles.

   Job Roles                          Task Rolls
------------------                ------------------
OfficeAssistant                  BasicUsage,
AttendanceClerk                StudentView
                                       ViewAllTables
                                       AbsenceLetters
                                       CurrentClasses
                                       Contacts
                                       Disipline

I hope this makes sence.

Princy
Top achievements
Rank 2
 answered on 16 Feb 2011
3 answers
133 views
In our application we are using radgrid where we are going to select  three things like a,b,c from combo box where 'b' depends on 'a' and 'c' depends on 'b' (selected change event of combobox) after clicking on add it should add to grid but not to database. And i should be able to delete, edit rows.When i Save my page then all the rows should be read and stored in the table.
Sunil
Top achievements
Rank 1
 answered on 16 Feb 2011
1 answer
79 views

Hi

How can I restrict the user to select only a docx file for upload and to catch it if it’s not?

Thanks

Regards

Shinu
Top achievements
Rank 2
 answered on 16 Feb 2011
3 answers
97 views
Hello,

Often I have a form that has these values:

RadTextBox
RadNumericTextBox
RadDatePicker
RadComboBox
RadMaskedTextBox

I often use a CustomValidator control to validate the form to ensure at least one value has been provided in the form.  Rather than write code to check each an every control to see if it has a value, is there one JQuery condition I can write to check to see if any of the controls have a value?  I tried using a CSS class to identify each control, and then target that control by doing something like:

$("#wrapper").find(".TelerikControl[value != null && value != '']").length > 0

To determine if there is any value present, but this doesn't quite work.  Can anyone share if they did this and how?

Thanks.
Maria Ilieva
Telerik team
 answered on 16 Feb 2011
1 answer
56 views
I have hooked into OnClientNodeDragStart to remove the event hookup of a  jQuery Tools Tooltip, but it appears there is no client side event that I can hook in to to add these events back if I don't complete the Drag/Drop or decide that I want to cancel and drop the item onto its self.

This removes the jQuery functionality, but if I cancel the drag, i'm not sure there is an event that will wire it back up...

function ClientNodeDragStart(sender, eventArgs) {
        $(".someTrigger,.someOtherTrigger").each(function () {
            $(this).original_show = $(this).data("tooltip").show;
            $(this).data("tooltip").show = function () { };
        });
    }

Nikolay Tsenkov
Telerik team
 answered on 16 Feb 2011
2 answers
95 views
hi i tried retriving the gridboundcolumn values as below
foreach (GridDataItem item in RadGrid1.EditItems)
                    {
                        str = "";
                        if (item["Users"].Text != null)
                        {
                            strID = item["ID"].Text;
                            StrLicenseType = item["AppliedFor"].Text;
                            UnderLicenseeID = item["UnderLi"].Text;
                            msg = item["LiName"].Text;
                            RadGrid2.Visible = false;
                        }
and i am getting &nbsp as the value is there any other alternative ??
abinav
Top achievements
Rank 1
 answered on 16 Feb 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?