Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
128 views
I have an ItemCommand for my grid which is "RowClick", which updates a group of labels via ajax when a row is clicked.

On the PreRender event of the grid I am selecting the first row on page load, how can I fire off the "RowClick" ItemCommand?

Thanks,
Craig Mellon
Top achievements
Rank 1
 answered on 25 Jan 2012
1 answer
37 views
HI,

I have another drop down before the field to choose the object. Is is possible.

Please see the attachment for more info.

Thanks
Praveen Tomar
Marin
Telerik team
 answered on 25 Jan 2012
0 answers
64 views
hi,

iinstalled WSS and sharepoint in my system but in services Windows sharepoint services are always stopping if i start service immediately with in 1 min service is stopping


please give me any solution


Thanks
Abu
Top achievements
Rank 1
 asked on 25 Jan 2012
1 answer
53 views
I chose a filename with an underscore in the string, e.g. "Primary_menu"; and in do so, I noticed that the colors and other properties I changed--and incidentally saved--were not actually saved, but rather ignored. I thought I may be doing something wrong or a problem with Visual Style Builder was occurring. Well, it appears that by removing the underscore to: "PrimaryMenu", caused everything to save and update properly.

This is not an issue for me, but I thought I'd ask the Forum if I missed something, the Forum had in fact encountered this, or let others know that this exists and that they simply need to do as I did--remove the underscore to proceed as expected. I hope this helps others out there from losing valuable time running down this nuisance.

-Don
Bozhidar
Telerik team
 answered on 25 Jan 2012
2 answers
75 views
hi,

i am using the 3 level grid i wrote same code for all three as follows
CommandItemDisplay="Bottom"
   <MasterTableView EditMode="InPlace" Name="product" DataKeyNames="PKProductID" CommandItemDisplay="Bottom">
                                            <Columns>
                                                                <telerik:GridBoundColumn DataField="PKProductID" HeaderText="PKProductID" Visible="false" />
                            
                                                 <telerik:GridEditCommandColumn UniqueName="Edit" ButtonType="ImageButton" CancelText="cancel"
                        EditText="edit" InsertText="insert"></telerik:GridEditCommandColumn>
                                                <telerik:GridTemplateColumn HeaderText="Style #">
                        <ItemTemplate>
                           <%#Eval("SourceID")%>
                        </ItemTemplate>
                        <EditItemTemplate>
                            <asp:TextBox ID="txtProSourceId" Text='<%# Eval("SourceID") %>' runat="server"></asp:TextBox>
                             <asp:RequiredFieldValidator ID="rfvProductSourceId" ControlToValidate="txtProSourceId" ErrorMessage="Cannot be empty" Text="*"
                                runat="server" Display="Dynamic" ></asp:RequiredFieldValidator>
                        </EditItemTemplate>
                    </telerik:GridTemplateColumn>
                                                <telerik:GridTemplateColumn HeaderText="Title">
                        <ItemTemplate>
                           <%#Eval("Language1Title")%>
                        </ItemTemplate>
                        <EditItemTemplate>
                            <asp:TextBox ID="txtProTitle" Text='<%#Eval("Language1Title") %>' runat="server"></asp:TextBox>
                             <asp:RequiredFieldValidator ID="rfvProductTitle" ControlToValidate="txtProTitle" ErrorMessage="Cannot be empty" Text="*"
                                runat="server" Display="Dynamic" ></asp:RequiredFieldValidator>
                        </EditItemTemplate>
                    </telerik:GridTemplateColumn>
                    
                                               
                                                <telerik:GridBoundColumn DataField="Language1SubTitle" HeaderText="Sub Title" />
                                                <telerik:GridDropDownColumn HeaderText="Clearance" UniqueName="StyleClearance" DataSourceID="SourceCheck"
                                                    ListTextField="Text" ListValueField="Text" SortExpression="Text" DataField="ClearanceItem" />
                                                <telerik:GridDropDownColumn HeaderText="Active" UniqueName="StyleActive" DataSourceID="SourceCheck"
                                                    ListTextField="Text" ListValueField="Text" SortExpression="Text" DataField="Active" />
                                              
                                                <telerik:GridTemplateColumn HeaderText="Price">
                        <ItemTemplate>
                           <%#Eval("Price")%>
                        </ItemTemplate>
                        <EditItemTemplate>
                            <asp:TextBox ID="txtProPrice" Text='<%#Eval("Price") %>' runat="server"></asp:TextBox>
                             <asp:RegularExpressionValidator ID="regprice" runat="server" ControlToValidate="txtProPrice" Display="Dynamic"  ValidationExpression="^([0-9]*)(\.[0-9]{2})?$"></asp:RegularExpressionValidator>
                        </EditItemTemplate>
                    </telerik:GridTemplateColumn>
                    

                                                <telerik:GridTemplateColumn HeaderText="SalePrice">
                        <ItemTemplate>
                           <%#Eval("SalePrice")%>
                        </ItemTemplate>
                        <EditItemTemplate>
                            <asp:TextBox ID="txtProSalePrice" Text='<%#Eval("SalePrice") %>' runat="server"></asp:TextBox>
                             <asp:RegularExpressionValidator ID="regSalePrice" runat="server" Display="Dynamic"  ControlToValidate="txtProSalePrice" ValidationExpression="^([0-9]*)(\.[0-9]{2})?$"></asp:RegularExpressionValidator>
                        </EditItemTemplate>
                    </telerik:GridTemplateColumn>
                                                
                                                
                                            </Columns>
                                            <DetailTables>
                                                <telerik:GridTableView DataMember="colors" CommandItemDisplay="Bottom"  HierarchyLoadMode="ServerOnDemand"  Name="Colors"
                                                    DataKeyNames="pkproductid"  Width="300px" >
                                                    <Columns>
                                                    <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn1">
                                                    <HeaderStyle Width="80px" />
                                                    <ItemStyle CssClass="MyImageButton" />
                                                </telerik:GridEditCommandColumn>
                                                        <telerik:GridBoundColumn DataField="PKProductid" HeaderText="PKProductid" Visible="false" />
                                                        <telerik:GridTemplateColumn HeaderText="Title">
                                                        <ItemTemplate>
                                                        <%#Eval("Language1Title")%>
                                                        </ItemTemplate>
                                                        <EditItemTemplate>
                                                        <asp:TextBox ID="txtColorTitle" runat="server" Text='<%#Eval("Language1Title") %>' ReadOnly="true"></asp:TextBox>
                                                        </EditItemTemplate>
                                                        </telerik:GridTemplateColumn>
                                                       
                                                       <telerik:GridTemplateColumn HeaderText="Color Id">
                                                        <ItemTemplate>
                                                        <%#Eval("SourceID")%>
                                                        </ItemTemplate>
                                                        <EditItemTemplate>
                                                        <asp:TextBox ID="txtColorId" runat="server" Text='<%#Eval("SourceID") %>' ReadOnly="true"></asp:TextBox>
                                                        </EditItemTemplate>
                                                        </telerik:GridTemplateColumn>
                                                        <telerik:GridTemplateColumn HeaderText="colors">
                                                        <ItemTemplate>
                                                        <%#Eval("ScaleLanguage1Name") %></ItemTemplate>
                                                        <EditItemTemplate>
                                                        <asp:DropDownList ID="ddlColors" runat="server" DataSourceID="SourceColors" DataValueField="PKGroupScaleItemID" DataTextField="ScaleLanguage1Name"
                                                        OnSelectedIndexChanged="ddltemp_SelectedIndexChanged" SelectedValue='<%#Eval("PKGroupScaleItemID") %>' AutoPostBack="true"></asp:DropDownList>
                                                        </EditItemTemplate>
                                                        </telerik:GridTemplateColumn>
                                                       
                                                        <telerik:GridDropDownColumn HeaderText="Active" UniqueName="ColorActive" DataSourceID="SourceCheck"
                                                            ListTextField="Text" ListValueField="Text" SortExpression="Text" DataField="Active" />
                                                    </Columns>
                                                    <DetailTables>
                                                        <telerik:GridTableView DataMember="Sizes" HierarchyLoadMode="ServerOnDemand" Width="300px" CommandItemDisplay="Bottom"
                                                            Name="sizes" DataKeyNames="pkproductid">
                                                            <Columns>
                                                            <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn1">
                                                    <HeaderStyle Width="80px" />
                                                    <ItemStyle CssClass="MyImageButton" />
                                                </telerik:GridEditCommandColumn>
                                                                <telerik:GridBoundColumn DataField="PKProductid" HeaderText="PKProductid" Visible="false" />
                                                               <telerik:GridTemplateColumn HeaderText="Title">
                                                        <ItemTemplate>
                                                        <%#Eval("Language1Title")%>
                                                        </ItemTemplate>
                                                        <EditItemTemplate>
                                                        <asp:TextBox ID="txtSizeTitle" runat="server" Text='<%#Eval("Language1Title") %>' ReadOnly="true"></asp:TextBox>
                                                        </EditItemTemplate>
                                                        </telerik:GridTemplateColumn>
                                                                <telerik:GridTemplateColumn HeaderText="Size Id">
                                                        <ItemTemplate>
                                                        <%#Eval("SourceID")%>
                                                        </ItemTemplate>
                                                        <EditItemTemplate>
                                                        <asp:TextBox ID="txtSizeId" runat="server" Text='<%#Eval("SourceID") %>' ReadOnly="true"></asp:TextBox>
                                                        </EditItemTemplate>
                                                    </telerik:GridTemplateColumn>
                                                           <%--         <telerik:GridTemplateColumn HeaderText="Sizes">
                                                        <ItemTemplate>
                                                        <%#Eval("ScaleLanguage1Name") %></ItemTemplate>
                                                        <EditItemTemplate>
                                                        <asp:DropDownList ID="ddlSizes" runat="server" DataSourceID="SourceSizes" DataValueField="PKGroupScaleItemID" DataTextField="ScaleLanguage1Name"
                                                        OnSelectedIndexChanged="ddltemp_SelectedIndexChanged" SelectedValue='<%#Eval("PKGroupScaleItemID") %>' AutoPostBack="true"></asp:DropDownList>
                                                        </EditItemTemplate>
                                                        </telerik:GridTemplateColumn>--%>
                                                                <telerik:GridDropDownColumn UniqueName="SizeSourceID" DataSourceID="SourceSizes"
                                                                    HeaderText="Sizes" DataField="pkgroupscaleitemid" SortExpression="ScaleLanguage1Name" ListTextField="ScaleLanguage1Name"
                                                                    ListValueField="pkgroupscaleitemid"  />
                                                                    <telerik:GridTemplateColumn HeaderText="Back Order Days">
                                                                    <ItemTemplate>
                                                                    <%#Eval("BackOrderDays") %>
                                                                    </ItemTemplate>
                                                                    <EditItemTemplate>
                                                                    <asp:TextBox ID="txtbackorderdays" runat="server" Text='<%#Eval("BackOrderDays")%>'></asp:TextBox>
                                                                    <asp:RegularExpressionValidator ID="regValidatordays" runat="server" ControlToValidate="txtbackorderdays" ValidationExpression="\d+" Text="*" ErrorMessage="Enter only numerics" Display="Dynamic" ></asp:RegularExpressionValidator>
                                                                    </EditItemTemplate>
                                                                    </telerik:GridTemplateColumn>
                                                                 <telerik:GridTemplateColumn HeaderText="SKU">
                                                                    <ItemTemplate>
                                                                    <%#Eval("SKU") %>
                                                                    </ItemTemplate>
                                                                    <EditItemTemplate>
                                                                    <asp:TextBox ID="txtsku" runat="server" Text='<%#Eval("SKU")%>'></asp:TextBox>
                                                                    </EditItemTemplate>
                                                                    </telerik:GridTemplateColumn>
                                                               <telerik:GridTemplateColumn HeaderText="QuantityAvailable">
                                                                    <ItemTemplate>
                                                                    <%#Eval("QuantityAvailable") %>
                                                                    </ItemTemplate>
                                                                    <EditItemTemplate>
                                                                    <asp:TextBox ID="txtQuantityAvailable" runat="server" Text='<%#Eval("QuantityAvailable")%>'></asp:TextBox>
                                                                    <asp:RegularExpressionValidator ID="regValidatorqty" runat="server" ControlToValidate="txtQuantityAvailable" ValidationExpression="\d+" Text="*" ErrorMessage="Enter only numerics" Display="Dynamic"></asp:RegularExpressionValidator>
                                                                    </EditItemTemplate>
                                                                    </telerik:GridTemplateColumn>
                                                                 <telerik:GridDropDownColumn HeaderText="Active" UniqueName="SizeActive" DataSourceID="SourceCheck"
                                                                    ListTextField="Text" ListValueField="Text" SortExpression="Text" DataField="Active" />
                                                            </Columns>
                                                        </telerik:GridTableView>
                                                    </DetailTables>
                                                </telerik:GridTableView>
                                            </DetailTables>
add button is appear in the first level and third level in the second level that is missing and one more thing is i didn't get get any image here why?

Thanks & Regards,
M.Koteswara Rao
koteswararao
Top achievements
Rank 1
 answered on 25 Jan 2012
0 answers
93 views
    
Aditya
Top achievements
Rank 1
 asked on 25 Jan 2012
2 answers
88 views
Hello there,
I am working with radschedular where i want to show Meetings, tasks, Calls in the radschedular. When I am putting radschedular in separate page it is working fine.. but whenever i am putting Radschedular in rad tab in another page.. Events are displaying 2-3 hours before...
It is showing correct time when i'm removing theme from the page... But If i'm applying theme to page and EnableTheming="false" to radschedular then also it is not working...
Please check attachment .. In this image my task is starting at 3.00 pm but it is showing in front of 12.00 pm..

Please help me... its an urgent
Abhi Shinde
Top achievements
Rank 1
 answered on 25 Jan 2012
1 answer
51 views
Hi,
I have a rad masked text box in my page.Mask is ######.In IE 9 i enter the value into the text box.Then i will select the whole content and delete.The content clears.But after the pointer is positioned away the deleted value fill the text box.

IE-> Browser Mode:IE 9 & Document Mode:IE 9 standards 
I use telerik version:File version-2010.1.519.40




Princy
Top achievements
Rank 2
 answered on 25 Jan 2012
1 answer
270 views
Hi,
 I am using rad window , it display the textbox which creates dynamically.

I am using the below code.

 
function openWin() {
          var docId = document.getElementById('cpEditor_hdnDocId').value;
          var oWnd = $find("<%= radPropertyInspector.ClientID %>");
          oWnd.setUrl("NZFPropertyInspector.aspx?docId=" + docId);
          oWnd.show();
      }
it works well.

But, my problem is , once i close the window with some value in text box in in rad window,

again i open the rad window, it shows the previous value of text boxes, then reload the new text box values.

Text boxes are created dynamically.

i need to empty the textbox before showing the rad window.

How to clear the values of item before loading?

Thanks,
Uma
Princy
Top achievements
Rank 2
 answered on 25 Jan 2012
1 answer
49 views
I have a RadGrid that is bound in the code behind, on on ItemDataBound I'm doing binding to a RadComboBox that is within a TemplateColumn inside the grid:
 
<tel:RadGrid runat="server" ID="rgCounties" OnItemCommand="rgCounties_ItemCommand"
    AutoGenerateColumns="False" OnItemDataBound="rgCountes_ItemDataBound" AllowMultiRowEdit="True"
    CellSpacing="0" GridLines="None">
    <MasterTableView>
        <Columns>
            <tel:GridBoundColumn Display="false" DataField="ID" UniqueName="SectionCountyID"  />
            <tel:GridTemplateColumn HeaderText="County" UniqueName="CountyColumn">
                <InsertItemTemplate>
                    <tel:RadComboBox runat="server" ID="rgrcCounty" DataTextField="CountyName" DataValueField="ID" />
                </InsertItemTemplate>
                <ItemTemplate>
                    <tel:RadComboBox runat="server" ID="rgrcCounty" DataTextField="CountyName"
                        DataValueField="ID" />
                </ItemTemplate>
            </tel:GridTemplateColumn>
        </Columns>
    </MasterTableView>
</tel:RadGrid>

So they can edit the County Dropdown at will, and click a save button below.
The county dropdown is being populated from a database table, but only has entries that are not currently in the grid.

For instance, Suppose i have 5 Counties:
{Lancaster, York, Berks, Adams, Allegheny}
the Grid has 3 entries for the counties "York, Adams, Allegheny".  Therefore, each combo box should have the two that are not present anywhere in the grid (Lancaster, Berks), as well as one entry for that grid row

So the grid would look like this:
Row 1: Combo with options {Lancaster, Berks, York}
Row 2: Combo with options {Lancaster, Berks, Adams}
Row 3: Combo with options {Lancaster, Berks, Allegheny}

However, the results I'm getting are:
Row 1: Combo with options {Lancaster, Berks, York}
Row 2: Combo with options {Lancaster, Berks, York, Adams}
Row 3: Combo with options {Lancaster, Berks, York, Adams, Allegheny}

Even though on Each row I'm rebinding the combobox and adding the missing one.
protected void rgCountes_ItemDataBound(object sender, GridItemEventArgs e)
{
    if (e.Item is GridDataItem)
    {
        var ditem = e.Item as GridDataItem;
        var combo = ((RadComboBox)ditem["CountyColumn"].FindControl("rgrcCounty"));
        var sectionCountyID = int.Parse(ditem["SectionCountyID"].Text);
        var sectionCounty = Model.SectionCounties.Where(sc => sc.ID == sectionCountyID).FirstOrDefault();
 
        combo.Bind(Model.Counties, false);
        if (sectionCounty != null)
        {
            combo.AddOrSelectByValue(sectionCounty.CountyID.ToString(), sectionCounty.County.CountyName);
            rnt.Text = sectionCounty.Percentage.ToString();
        }
    }    
}
        public static bool AddOrSelectByValue(this RadComboBox combo, string value, string text)
        {
            bool tf = combo.SelectByValue(value);
            if (!tf)
            {
                combo.Items.Add(new RadComboBoxItem(text, value));
                combo.SelectByValue(value);
            }
            return tf;
        }


You can see I'm rebinding each combo and then adding a new value on a per-row basis. But it seems that on each row, thecombo.Items.Add() is being applied additively.

Any idea what I'm doing wrong or how to fix it?

thanks!
Iana Tsolova
Telerik team
 answered on 25 Jan 2012
Narrow your results
Selected tags
Tags
+124 more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?