Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
165 views

Please refer to this sample below
http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/usercontroleditform/defaultcs.aspx

As you can see that there is postback on add new button or edit button or delete button

I want to render the controls selectively and do some processing on postback generated from grid.
When i check form's eventargument or target it is null.

Is there a way i can figure out which button generated event from the grid in user control?

regards
Mac
Yavor
Telerik team
 answered on 07 Apr 2010
1 answer
221 views
Hi there,

im trying to do something similar to what is listed in the demo here except that i don't want return the values onclientclose. i need to make the parent window refresh without closing the radwindow.

So i currently have a Radwindow which has a save button on it. When the save button is clicked in the radwindow it will save some values in the code-behind and then it must refresh the parent window.

Can this be done? Im really stuck
Shinu
Top achievements
Rank 2
 answered on 07 Apr 2010
7 answers
306 views
I have the following in my columns tag of my grid, however, nothing happens when I click ok in the confirm window.  The grid doesnt delete the row and the datasource doesnt either.  Is there something else needed to wire this up when using automatic CRUD and an entity datasource?

<telerik:GridButtonColumn CommandName="Delete" Text="Delete" ConfirmDialogType="RadWindow" ConfirmText="Delte this?" ConfirmTitle="Are you sure?" UniqueName= "DeleteColumn"></telerik:GridButtonColumn>

      <telerik:RadGrid ID="rgRequirements" runat="server" AllowAutomaticDeletes="True"  
            OnItemCommand="RadGrid1_ItemCommand" OnItemInserted="RadGrid1_ItemInserted" 
            AllowAutomaticInserts="True" AllowAutomaticUpdates="True"   
            AutoGenerateColumns="False" OnItemUpdated="RadGrid1_ItemUpdated" OnItemDeleted="RadGrid1_ItemDeleted" 
            DataSourceID="edsRequirement" GridLines="None" Width="550px"> 
        <MasterTableView AutoGenerateColumns="False" DataSourceID="edsRequirement" DataKeyNames="requirementID" EditMode="PopUp" CommandItemDisplay="Top"> 
            <RowIndicatorColumn> 
            <HeaderStyle Width="20px"></HeaderStyle> 
            </RowIndicatorColumn> 
            <ExpandCollapseColumn> 
            <HeaderStyle Width="20px"></HeaderStyle> 
            </ExpandCollapseColumn> 
            <commanditemsettings addnewrecordtext="Add new Requirement" /> 
             
            <Columns> 
                <telerik:GridBoundColumn DataField="requirement" HeaderText="Support Requirement"  ItemStyle-Width="300" SortExpression="requirement" UniqueName="requirement"> 
                    <ItemStyle Width="300px"></ItemStyle> 
                </telerik:GridBoundColumn> 
                <telerik:GridEditCommandColumn  ButtonType="LinkButton" EditText="Edit" HeaderStyle-Width="30" /> 
                <telerik:GridButtonColumn CommandName="Delete" Text="Delete" ConfirmDialogType="RadWindow" ConfirmText="Delte this?" ConfirmTitle="Are you sure?" UniqueName= "DeleteColumn"></telerik:GridButtonColumn> 
            </Columns> 
             
            <EditFormSettings EditFormType="Template" InsertCaption="New Requirement" CaptionFormatString="Requirement"  
            PopUpSettings-Modal="true" PopUpSettings-Height="200"> 
                <FormTemplate> 
                <EditColumn UniqueName="EditCommandColumn1"></EditColumn> 
                <div class="formContent"> 
                        <telerik:RadTextBox runat="server" ID="tbCreated" Text='<%#Bind( "dateCreated") %>' Visible="false"></telerik:RadTextBox> 
                        <telerik:RadTextBox runat="server" ID="tbModified" Text='<%#Bind( "dateModified") %>' Visible="false"></telerik:RadTextBox>                         
                        Requirement: <cc1:HelpToolTip ID="HelpToolTip3" runat="server" HelpNode="Support Requirement"/><br />    
                           <telerik:RadTextBox runat="server" ID="requirement" Text='<%#Bind( "requirement") %>' 
                               Width="280px"  Rows="5" TextMode="MultiLine"/> 
                        <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator2" ControlToValidate="requirement"  Text="*" Display="Dynamic"/>     
                </div> 
                <div class="clear"/> 
                <div style="float:right;padding:10px;"> 
                    <asp:Button ID="Button1" Text='<%# (Container is GridEditFormInsertItem) ? "Insert" : "Update" %>' 
                        runat="server" CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>'> 
                    </asp:Button>&nbsp; 
                    <asp:Button ID="Button2" Text="Cancel" runat="server" CausesValidation="False" CommandName="Cancel"> 
                    </asp:Button>    
                </div>    
                <div class="clear"/> 
                </FormTemplate>    
            </EditFormSettings> 
             
        </MasterTableView> 
        <ClientSettings> 
            <ClientEvents OnPopUpShowing="PopUpShowing" /> 
        </ClientSettings>         
      </telerik:RadGrid> 
       
        <asp:EntityDataSource ID="edsRequirement" runat="server" 
            ConnectionString="name=LSTDev_Entities" DefaultContainerName="LSTDev_Entities"  
            EnableDelete="True" EnableInsert="True" EnableUpdate="True"  
            EntitySetName="FormsLDPRequirement"> 
        </asp:EntityDataSource> 

Iana Tsolova
Telerik team
 answered on 07 Apr 2010
1 answer
81 views

I have a combox with ShowMoreResults and LoadOnDemand Enabled:

<

 

telerik:RadComboBox ID="AccountIndustryTypeId" runat="server" DataTextField="TypeName" DataValueField="AccountIndustryTypeId" EnableLoadOnDemand="True" ShowMoreResultsBox="true" EnableVirtualScrolling="true" OnItemsRequested="AccountIndustryTypeId_ItemsRequested" MarkFirstMatch="True" Width="400">  

</telerik:RadComboBox> 
And and ItemsRequested event to retrieve some results : 

protected

 

void AccountIndustryTypeId_ItemsRequested(object o, RadComboBoxItemsRequestedEventArgs e)  

 

{ 

 

DataTable types = AccountIndustryTypesDA.AccountIndustryTypesSelectList(e.Text, false);

 ((

RadComboBox) o).Items.Clear();

 

 

 

try
{

 

 

 

 

 

int itemOffset = e.NumberOfItems;   

 

int endOffset = itemOffset + 15;  

 

if (endOffset > types.Rows.Count)  

{

endOffset = types.Rows.Count;

} 

 

for (int i = itemOffset; i < endOffset; i++)  

{ 

 

RadComboBoxItem item = new RadComboBoxItem(types.Rows[i]["TypeName"].ToString(), types.Rows[i]["AccountIndustryTypeId"].ToString());

((

RadComboBox)o).Items.Add(item);

 

 

}

e.Message = types.Rows.Count > 0 ?

 

String.Format("Items <b>1</b>-<b>{0}</b> out of <b>{1}</b>", endOffset.ToString(), types.Rows.Count.ToString()) : "No matches";

} 

 

catch

 

 

{

 

e.Message =

 

"No matches";  

}

}

 


When the ShowMoreResults image is clicked but no more results are actually retrieved the ShowMoreResults box is adding blank space.  How can I stop this??

 

Veronica
Telerik team
 answered on 07 Apr 2010
2 answers
65 views
In my app, we have a RadGrid with a Master Table showing Purchase Orders (associated with a Project), plus a Detail Table showing the allocation of funds (Budgets) from a Purchase Order to various Subprojects

In order to add a new Purchase Order effectively, we also need to capture a Subproject, and I wondered if it's possible to have a field which is captured in the AddNew mode, but is hidden for Edit and List views?

Any ideas?

David
David Waldock
Top achievements
Rank 1
 answered on 07 Apr 2010
3 answers
105 views
editor RTL is working great but the arrow of combos are in a wrong position (combox are in tollbar)
I found this in the demo version also
Rumen
Telerik team
 answered on 07 Apr 2010
0 answers
74 views
Hello, please see the following link, it is my source code:
http://www.fronseetechnology.com/ShortSalesWeb/Default.aspx

You will notice the US map, try hovering over some states, I know it does the issue for sure on CA.  You will notice all of the pop-ups I am getting and it is just not working.  I used the sample application here:
http://www.telerik.com/community/forums/aspnet-ajax/tooltip/imagemap-with-tooltip-and-database-data.aspx

and here: http://demos.telerik.com/aspnet-ajax/tooltip/examples/imagemaptooltipmanager/defaultcs.aspx

- Im not sure what I have wrong, it looks like it is trying to work, but there are authentication issues (i imagine with the web service?).  Does anyone have any suggestions?   OH, a big thing I was thinking about, instead of using a web service (.asmx), cant I just call a [webmethod] directly in the code behind?  I have tried this with other code, but not this ImageMap and tooltipmanager.   I gave Everyone permission to the directory on the server, and still these issues.  Someone please help!!! Thank you

Joe

Joe
Top achievements
Rank 1
 asked on 07 Apr 2010
1 answer
90 views
Using RadInputManager, only the first field listed in each setting block will highlight when submitting. If there is more than one TargetInput, only the first will highlight. I need them all to display the red border and error icon.
Dimo
Telerik team
 answered on 07 Apr 2010
1 answer
76 views
Good afternoon:

I received the following complaint from an end-user using the image gallery pop-up from the RadEditor.

"One thing that I have noticed is that [our website] doesn’t like to upload two photos in a row.  I’ll upload one, then insert it.  When I go back to upload another to insert, the photo editor stops working.  My solution has been to just close the photo editor, save the draft, then re-open and start all over again.  While this works, it’s not the most productive of methods."

Has anyone else experienced any similar problems?  Any workarounds?

Thanks,

Brad
Rumen
Telerik team
 answered on 07 Apr 2010
2 answers
112 views
Hello Admin & all
I have two combobox used checkbox select muliti items.
- Combo 1: containing the items of the combo of the two groups. when one or several items of the group is selected in combo 1, combo 2 will automatically select that group.
ex:
Combo 1 contains A1, A2, A3 (group A), B1, B2, B3 (group B), C1, C2 (Group C).
Combo 2 contains A, B, C
When choosing A2 in Combo 1 Combo 2 in the A well chosen, I choose to C1 (select multiple items), the C of Combo 2 is also selected ...
Can you help me?
Thanks,
Brgs,
Veronica
Telerik team
 answered on 07 Apr 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?