Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
140 views
We've been running the RadEditor for sharepoint version 4.5 for a few months now, and recently our marketing has asked us to create a new domain by which to access the site. We set up all of the alternate access mappings, however, it appears that all of the links on the site are pointing to the old domain name even when the site is being accessed by via the new domain.

For example, if I have site1 and site2 and both are pointing at my MOSS implementation all of the links say:

<a href=http://site1/somelink>some text</a>

regardless of if it's being accessed via site2.

I tried changing the StripAnchors... Property and it didn't seem to make a difference. Can anyone help or are we going to have to redo several thousand links?
George
Telerik team
 answered on 23 May 2008
3 answers
202 views
Hi,
I have just upgraded my applicaiton to use version 2008.1.415.35 (I was previously using Prometheus) then the column filters stop working anymore if you specify the DataSourceID attribute of the RadGrid to the id of a XmlDataSource. It just always display all items in the datasource.

Also, the selected filter option is not highlighted in the two new skins. (Sunset and Hay)

Regards,
Kathy
Bodevain Svensson
Top achievements
Rank 1
 answered on 23 May 2008
2 answers
152 views
I have a customer control with several RadTextBoxes all set to Autopostback and a common TextChanged event wired to each.

If I change the text in a single text box, each RadTextBox fires the TextChanged event instead of just the one where the text was actually changed.

In fact, each RadTextBox fires the TextChanged event on all submits, including a button despite the fact that no text was actually changed.

Any idea how to prevent this happening?

Doug Beard
Top achievements
Rank 2
 answered on 23 May 2008
1 answer
100 views
Where can i state the start date of the schedular please?
By default it takes the actual month, i would like to set it at run time.
Thank you in advance.
al
Top achievements
Rank 1
 answered on 23 May 2008
6 answers
206 views
Hi guys,

I am doing manual updates/inserts on the RadGrid using OnUpdateCommand event.
I am using a EditForm template to achieve this.
Now, I have several columns coming as part of a select statement in a Stored proc; which returns a DataTable, which then forms the DataSource of the grid.
Many of these columns are not being used while editing. For instance if 10 columns are coming in, I am editing only 5.
In the OnUpdateCommand event, I am able to get hold of the items on the EditForm, using the following code:

protected void RadGrid_Bank_UpdateCommand(object sender, GridCommandEventArgs e)
    {
        RadGrid grid = (RadGrid)sender;
        int itemIndex = e.Item.ItemIndex;

        GridEditableItem editedItem = e.Item as GridEditableItem;

        
        GridNestedViewItem nestedEditForm = grid.MasterTableView.Items[itemIndex].ChildItem;

        RadComboBox accUsageTypeEditor = (RadComboBox)editedItem.FindControl("accUsageTypeEditor");
        RadDatePicker effBankDateEditor = (RadDatePicker)editedItem.FindControl("effBankDateEditor");
        RadDatePicker effToBankDateEditor = (RadDatePicker)editedItem.FindControl("effToBankDateEditor");

// So now, get the corresponding value from the editors
string s = accUsageTypeEditor.SelectedValue;
}

But I have not been able to get hold of the other columns which are not a part of my EditForm. Is there any way I can hold of the current DataRow object or a DataSource object from which the row could be extracted using the ItemIndex??

Regards,



Iana Tsolova
Telerik team
 answered on 23 May 2008
5 answers
207 views

I have a Radgrid, when editing, a column changes to RadEditor within a RadPageView.  Part of the aspx as follows:

<EditItemTemplate>
<asp:Label ID="BrandLogoFileNameLabel" runat="server" Text='<%# Eval("BrandLogoFileName") %>'
        Visible="false" />
   <div style="float: left; width: 200px">
    <div style="padding: 2px;">
   <b style="width: 70px; float: left">
          Brand ID:</b>
       <asp:Label ID="BrandIDLabel" runat="server" Text='<%# Eval("BrandID") %>' /><br />
       <b style="width: 70px; float: left">
          Name:</b>
       <asp:TextBox ID="BrandNameTextBox" runat="server" Text='<%# Bind("BrandName") %>'
          Width="180px" MaxLength="255" /><br />
       <b style="width: 70px; float: left">
          Active:</b>
       <asp:CheckBox ID="ActiveCheckBox" Width="40px" Checked='<%# Bind("Active") %>'
          runat="server" />
     </div>
     <div style="padding: 2px; margin-top: 10px">
      <b>
          Logo:</b><br />
       <asp:Image ID="BrandLogoImageEdit" runat="server" />
     </div>
     </div>
      <div style="padding: 2px; width: 380px">
       <telerik:RadTabStrip ID="ts1" runat="server" Skin="Telerik" MultiPageID="mpage1"
         SelectedIndex="0">
         <Tabs>
          <telerik:RadTab runat="server" Text="Default Short Description">
          </telerik:RadTab>
          <telerik:RadTab runat="server" Text="Default Long Description" Selected="True">
          </telerik:RadTab>
         </Tabs>
        </telerik:RadTabStrip>
        <telerik:RadMultiPage ID="mpage1" runat="server" SelectedIndex="0">
         <telerik:RadPageView ID="pvShort" runat="server">
          <telerik:RadEditor ID="editorDefaultShortDesc" runat="server" Skin="Telerik"
           Height="250px" Width="360px" ToolsFile="~/Common/CustomizedRadXML/ToolsFile2.xml"
           EditModes="Design">
           <ImageManager SearchPatterns="*.gif,*.jpg" MaxUploadFileSize="200000" />
           <FlashManager SearchPatterns="*.swf" MaxUploadFileSize="200000" />
           <DocumentManager SearchPatterns="*.pdf,*.doc" />
           <Content>
            
           </Content>
          </telerik:RadEditor>
         </telerik:RadPageView>
         <telerik:RadPageView ID="pvLong" runat="server">
          <telerik:RadEditor ID="editorDefaultLongDesc" runat="server" Skin="Telerik"
           Height="250px" ToolsFile="~/Common/CustomizedRadXML/ToolsFile2.xml"
           EditModes="Design" Width="360px">
           <ImageManager SearchPatterns="*.gif,*.jpg" MaxUploadFileSize="200000" />
           <FlashManager SearchPatterns="*.swf" MaxUploadFileSize="200000" />
           <DocumentManager SearchPatterns="*.pdf,*.doc" />
           <Content>
           </Content>
          </telerik:RadEditor>
         </telerik:RadPageView>
        </telerik:RadMultiPage>
       </div>
      </EditItemTemplate>

My problem: when I call Image Manager (clicking the image button in the Editor), the pop-up dialog box is very short, only the upper part of the dialog box can be seen.  Is there anything I can check?

Thanks

Rumen
Telerik team
 answered on 23 May 2008
3 answers
157 views
I am using a RadEditor in a radgrid. When updating, the content of the RadEditor is lost in Firefox only.

Why is it happening. How can I fix it?
Rumen
Telerik team
 answered on 23 May 2008
2 answers
105 views
Hello everybody!
I have a simple contextmenu inside my radtree:
<contextmenus>
                                                <telerik:RadTreeViewContextMenu ID="cmAdministration"
                                                    runat="server" Skin="Outlook">
                                                    <Items>
                                                        <telerik:RadMenuItem ImageUrl="~/Img/New.png" PostBack="false" Value="NewGroup" meta:resourcekey="newGroup">
                                                            <groupsettings expanddirection="Auto" flow="Vertical" />
                                                        </telerik:RadMenuItem>
                                                        <telerik:RadMenuItem ImageUrl="~/Img/New.png" PostBack="false" Value="NewUser" meta:resourcekey="newUser">
                                                            <groupsettings expanddirection="Auto" flow="Vertical" />
                                                        </telerik:RadMenuItem>
                                                        <telerik:RadMenuItem ImageUrl="~/Img/Delete.png" PostBack="false" Value="DeleteGroup" meta:resourcekey="deleteGroup">
                                                            <groupsettings expanddirection="Auto" flow="Vertical" />
                                                        </telerik:RadMenuItem>
                                                        <telerik:RadMenuItem ImageUrl="~/Img/Delete.png" PostBack="false" Value="RemoveUser" meta:resourcekey="removeUser">
                                                            <groupsettings expanddirection="Auto" flow="Vertical" />
                                                        </telerik:RadMenuItem>
                                                        <telerik:RadMenuItem ImageUrl="~/Img/Delete.png" PostBack="false" Value="DeleteUser" meta:resourcekey="deleteUser">
                                                            <groupsettings expanddirection="Auto" flow="Vertical" />
                                                        </telerik:RadMenuItem>
                                                    </Items>
                                                    <expandanimation type="OutQuart" />
                                                    <collapseanimation duration="200" type="OutQuint" />
                                                    <defaultgroupsettings expanddirection="Auto" flow="Vertical" />
                                                </telerik:RadTreeViewContextMenu>
                                            </contextmenus>

The first item in the menu is  a single line, all other menuitems are two lines, in the first line there is the image, in the second one there is the text

kind regards
Markus
Top achievements
Rank 2
 answered on 23 May 2008
3 answers
160 views

Hi,
    I am using RadGrid control for grouping but i dont want the sorting to be done.I want to display as it is in collection i am getting the data but unfortunately it is getting sorted on "PacName". I dont know where to change the code as i am psating the code here. So please can you suggest me how to remove sorting for this code as i want only grouping with the "PacName" not the sorting with the "PacName".Just i want to display the data as it is in collection which i am binding to grid.Waiting for your reply

ASPX  Page:
-------------------------------------------------------------------------------------------------------<radg:radgrid id="gridManagerItems" runat="server" CellSpacing="0" GroupingEnabled="True" ShowGroupPanel="False" CellPadding="3" AutoGenerateColumns="False" ToolTip="Reconciliation Statement List" Skin="None">

<MasterTableView AllowCustomPaging="False" AllowSorting="True" GroupsDefaultExpanded="False" AllowMultiColumnSorting="True" AllowPaging="False" GridLines="Both">

<HeaderStyle CssClass="Table_Header_Row_Blue"></HeaderStyle>

<GroupHeaderItemStyle CssClass="PACGroupRow ReceiptsGroupHeader"></GroupHeaderItemStyle>

<Columns>

<radg:GridTemplateColumn UniqueName="TemplateColumn" HeaderText="">

<ItemStyle HorizontalAlign="Center"></ItemStyle>

<HeaderStyle HorizontalAlign="Left" Wrap="false" Width="1%"></HeaderStyle>

<ItemTemplate>

<asp:ImageButton id="imgEditbtn" CommandName="EditStatementItem" ToolTip="Edit" AlternateText="Edit"

Runat="server" ImageUrl="/_WebControlsResources/Images/edit.gif"></asp:ImageButton>

</ItemTemplate>

</radg:GridTemplateColumn>

<radg:GridTemplateColumn UniqueName="TemplateColumn">

<ItemStyle HorizontalAlign="Center"></ItemStyle>

<ItemTemplate>

<asp:ImageButton id="imgDeletebtn" CommandName="DeleteStatementItem" ToolTip="Delete" AlternateText="Delete"

Runat="server" ImageUrl="/_WebControlsResources/Images/delete.gif"></asp:ImageButton>

</ItemTemplate>

<HeaderStyle HorizontalAlign="Left" Wrap="false" Width="1%"></HeaderStyle>

</radg:GridTemplateColumn>

<radg:GridBoundColumn UniqueName="startDate" DataFormatString="{0:MM/dd/yyyy}" HeaderText="Begin Date" DataField="startDate">

<HeaderStyle HorizontalAlign="Left" Wrap="false" Width="70px"></HeaderStyle>

<ItemStyle HorizontalAlign="Left" Wrap="false"></ItemStyle>

</radg:GridBoundColumn>

<radg:GridBoundColumn UniqueName="endDate" DataFormatString="{0:MM/dd/yyyy}" HeaderText="End Date" DataField="endDate">

<HeaderStyle HorizontalAlign="Left" Wrap="false" Width="70px"></HeaderStyle>

<ItemStyle HorizontalAlign="Left" Wrap="false"></ItemStyle>

</radg:GridBoundColumn>

<radg:GridBoundColumn UniqueName="startingBalance" DataFormatString="{0:$#,###.00}" HeaderText="Starting Balance"

DataField="StartingBalance">

<HeaderStyle HorizontalAlign="Left" Wrap="false" Width="100px"></HeaderStyle>

<ItemStyle HorizontalAlign="Right" Wrap="false"></ItemStyle>

</radg:GridBoundColumn>

<radg:GridBoundColumn UniqueName="EndingBalance" DataFormatString="{0:$#,###.00}" HeaderText="Ending Balance"

DataField="EndingBalance">

<HeaderStyle HorizontalAlign="Left" Wrap="false" Width="100px"></HeaderStyle>

<ItemStyle HorizontalAlign="Right" Wrap="false"></ItemStyle>

</radg:GridBoundColumn>

<radg:GridBoundColumn UniqueName="Status" HeaderText="Status" DataField="Status">

<HeaderStyle HorizontalAlign="Left" Wrap="false" Width="1%"></HeaderStyle>

<ItemStyle HorizontalAlign="Left"></ItemStyle>

</radg:GridBoundColumn>

<radg:GridBoundColumn UniqueName="ReconciliationStatementID" HeaderText="ReconciliationStatementID" Visible="False" DataField="ReconciliationStatementID"></radg:GridBoundColumn>

<radg:GridBoundColumn UniqueName="BankAccountID" HeaderText="Bank AccountID" Visible="False" DataField="BankAccountID"></radg:GridBoundColumn>

<radg:GridBoundColumn UniqueName="BankAccountName" HeaderText="Bank Account Name" Visible="False" DataField="BankAccountName"></radg:GridBoundColumn>

</Columns>

<EditFormSettings>

<EditColumn UniqueName="EditCommandColumn"></EditColumn>

</EditFormSettings>

<ExpandCollapseColumn ButtonType="ImageButton" UniqueName="ExpandColumn" Visible="False">

<HeaderStyle Wrap="False" HorizontalAlign="Left" Width="19px" VerticalAlign="Middle" BackColor="#D3D3F1"></HeaderStyle>

</ExpandCollapseColumn>

</MasterTableView>

<GroupPanel Visible="False"></GroupPanel>

<ClientSettings AllowGroupExpandCollapse="True" ReorderColumnsOnClient="False" AllowDragToGroup="False" AllowColumnsReorder="False">

</ClientSettings>
</radg:radgrid>

ASPX.CS File :
----------------------------------------------------------------------------

This is how i am grouping : -

private

void GroupAndSortFields()

{

gridManagerItems.MasterTableView.AllowSorting =

false;

gridManagerItems.AllowSorting =

false;

gridManagerItems.MasterTableView.SortExpressions.AllowMultiColumnSorting =

true;

//************** Group By Logic *******************

GridGroupByExpression expression = new GridGroupByExpression();

GridGroupByField gridGroupByField = new GridGroupByField();

//Add select fields (beforne the "Group By" clause)

//ADD PAC Name grouping

expression =

new GridGroupByExpression();

gridGroupByField =

new GridGroupByField();

gridGroupByField.FieldName =

"PACName";

gridGroupByField.HeaderText =

"";

gridGroupByField.HeaderValueSeparator =

"";

expression.SelectFields.Add( gridGroupByField );

expression.GroupByFields.Add( gridGroupByField );

gridGroupByField.SortOrder =

GridSortOrder.None;

gridManagerItems.MasterTableView.GroupByExpressions.Add( expression );

//ADD Bank Account grouping

expression =

new GridGroupByExpression();

gridGroupByField =

new GridGroupByField();

gridGroupByField.FieldName =

"BankAccountID";

gridGroupByField.HeaderText =

"";

gridGroupByField.HeaderValueSeparator =

"";

gridGroupByField.SortOrder =

GridSortOrder.None;

expression.GroupByFields.Add( gridGroupByField );

gridGroupByField =

new GridGroupByField();

gridGroupByField.FieldName =

"BankAccountName";

gridGroupByField.HeaderText =

"";

gridGroupByField.HeaderValueSeparator =

"";

gridGroupByField.SortOrder =

GridSortOrder.None;

expression.SelectFields.Add( gridGroupByField );

gridManagerItems.MasterTableView.GroupByExpressions.Add( expression );

//ADD Year grouping

expression =

new GridGroupByExpression();

gridGroupByField =

new GridGroupByField();

gridGroupByField.FieldName =

"Year";

gridGroupByField.HeaderText =

"Year";

gridGroupByField.HeaderValueSeparator =

": ";

gridGroupByField.SortOrder =

GridSortOrder.None;

expression.SelectFields.Add( gridGroupByField );

expression.GroupByFields.Add( gridGroupByField );

gridManagerItems.MasterTableView.GroupByExpressions.Add( expression );

}

The above method I am calling in Page_Load()

Regards,
Srikanth.

Shinu
Top achievements
Rank 2
 answered on 23 May 2008
11 answers
267 views
Hi

I am trying to use the javascript function as given in "Changing grid ScrollHeight at runtime to fill its container height"

I am getting an error that "GridDatDiv" is null or not an object".

Can you help?

The script is given below.

function

GridCreated(sender, args)

{

var scrollArea = sender.GridDataDiv;

var parent = $get("gridContainer");

var gridHeader = sender.GridHeaderDiv;

scrollArea.style.height = parent.clientHeight - gridHeader.clientHeight +

"px";

}

Prabhu
Top achievements
Rank 1
 answered on 23 May 2008
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?